Edge lighting while charging S24U - SOLVED

KDG

Member
I don't see a way to build a macro that when I plug in (or attach to a charging) I can have the S24u edge lighting turn on while it's charging while the screen is off.

Thoughts?
 

KDG

Member
On Samsung phones there's a lighting method that goes all the way around the very edges of the screen. This can be customized in many many ways (colors, style, thickness, pattern, etc).
 

Attachments

  • SmartSelect_20240203_063846_Chrome.png
    SmartSelect_20240203_063846_Chrome.png
    33.7 KB · Views: 7

hsurB

Well-known member
There are few ways to achieve it.
Create routine in modes and routines app - notification recieved from macrodroid contains charging - edge lightning once.
Create macro in macrodroid that will display and clear notification that contains charging in loop

I am sure you can achieve the same thing using only macrodroid, I am just not sure how to set display notification action properly.
It has to be set to notification action (high priority) or notification action and you need to enable something in phone's settings then you would display notification in loop but it would also display that notification pop up at the top center of the screen so first method seems better looking
 
Last edited:
  • Like
Reactions: KDG

KDG

Member
Thanks! I'd like to just stick to Macdroid app. I'm not interested in this enough to have multiple apps to run the function if I can't do it in macdroid I won't do it but I do appreciate the insight on an alternate method 👍
 

hsurB

Well-known member
But you already have this app installed on your phone anyway (its samsung's modes and routines app) and it won't cause any more battery drain + it works flawlessly, but I understand your point
 
  • Like
Reactions: KDG

KDG

Member
My bad, you're correct. I only use Macdroid to do all these kinds of routines I've created so I wasn't even aware of that modes and routines app 😂
 

KDG

Member
But you already have this app installed on your phone anyway (its samsung's modes and routines app) and it won't cause any more battery drain + it works flawlessly, but I understand your point
Ok, your tip got me 75% there. And it works. BUT, it only allows the lighting to be triggered 1x. Which is odd. You can pick the style, color, animation method, but it will only trigger 1x (lasts a few seconds) & can't be modified to last any longer.
 

Attachments

  • Screenshot_20240203_070504_Modes and Routines.png
    Screenshot_20240203_070504_Modes and Routines.png
    73 KB · Views: 3

hsurB

Well-known member
Thats right. Now try to create macro in macrodroid using action called 'Repeat actions'.
Loop should look something like:
Repeat actions (while/do here you could use system's notification specific to charging phone - notification present, contains: whatever notification says)
1. Display notification - charging
2. Wait 100ms
3. Clear notification - macrodroid - charging
4. Wait 1s

If screen lightning lasts few seconds, it should be enough to keep it up this entire time and when you unplug the phone, system notification specific to charging is gone so loop should stop.
 
  • Like
Reactions: KDG

Endercraft

Moderator (& bug finder :D)
Thats right. Now try to create macro in macrodroid using action called 'Repeat actions'.
Loop should look something like:
Repeat actions (while/do here you could use system's notification specific to charging phone - notification present, contains: whatever notification says)
1. Display notification - charging
2. Wait 100ms
3. Clear notification - macrodroid - charging
4. Wait 1s

If screen lightning lasts few seconds, it should be enough to keep it up this entire time and when you unplug the phone, system notification specific to charging is gone so loop should stop.
I've tried the same a while ago and clearing the notification quickly seems to prevent this lighting (at least on MIUI).
 

KDG

Member
Thats right. Now try to create macro in macrodroid using action called 'Repeat actions'.
Loop should look something like:
Repeat actions (while/do here you could use system's notification specific to charging phone - notification present, contains: whatever notification says)
1. Display notification - charging
2. Wait 100ms
3. Clear notification - macrodroid - charging
4. Wait 1s

If screen lightning lasts few seconds, it should be enough to keep it up this entire time and when you unplug the phone, system notification specific to charging is gone so loop should stop.
Like this?
 

Attachments

  • SmartSelect_20240203_072020_MacroDroid.png
    SmartSelect_20240203_072020_MacroDroid.png
    261 KB · Views: 9

hsurB

Well-known member
I've tried the same a while ago and clearing the notification quickly seems to prevent this lighting (at least on MIUI).

It shouldn't in this case cause lightning is routine's action and not based on appearing notification but it could if we used another method - based on macrodroid's notification. I am not sure tho - has to be tested.
 

KDG

Member
I figured the loop was closing too early but I honestly didn't know how to move the end function (click arrows) to the actual end of the action. But now I do so I made that change.
 

Attachments

  • SmartSelect_20240203_072532_MacroDroid.png
    SmartSelect_20240203_072532_MacroDroid.png
    258.6 KB · Views: 8

KDG

Member
Ok so... With the routine in Modes & Routines setup & running as previously mentioned + this macro in Macdroid, the edge lighting won't stay on beyond what's set by the Modes & Routines. The process acts like it's ignoring the Macdroid macro.
 

hsurB

Well-known member
You are missing action to display notification in your loop that containst the phrase you used in routine's trigger(if) and I am not sure how did you configure 'clear notification' action in macro cause it says something about the trigger
 
  • Like
Reactions: KDG

KDG

Member
You are missing action to display notification in your loop that containst the phrase you used in routine's trigger(if) and I am not sure how did you configure 'clear notification' action in macro cause it says something about the trigger
Isn't that covered with this?

WHILE/DO
notification present
Contains; "charging"
 

hsurB

Well-known member
No. Its a condition that ensures the loop is still going (based on systems notification).
 

KDG

Member
You are missing action to display notification in your loop that containst the phrase you used in routine's trigger(if) and I am not sure how did you configure 'clear notification' action in macro cause it says something about the trigger
Oh wait... You're saying the "contains" in Macdroid needs to be the title of the action in Modes & Actions? So you're triggering that action to loop?
 
Top