then, instead of a timed repeat , the same code will repeat when battery level falls (or rises) 1% (because of the trigger), it's simpler and with same result (saves you from going far over limits), then once you understand better what's happening you can improve it in small steps
I want a repeated alert in case I miss the first notification. I don't want to wait until the battery falls or rises another 1%. I also want to be able to snooze the alert notification if I can't charge my phone right away and want to be reminded later.
I also asked for help on reddit and someone responded with general steps on how to do it.
They said:
1. Trigger : Below 20%. Action : Turn on Macro 2
2. Trigger : Stopwatch 1. Action : If Stopwatch 1 reaches 0, display a notification to remind charging then reset the timer, keep the timer enabled. If notification is clicked then activate Macro 3.
3. Trigger : None. Action : Runs Stopwatch 2 and pauses Stopwatch 1. If Stopwatch 2 reaches 0, add another if / else to check if the phone is connected to a power source or not, if yes then reset the Stopwatches, turn all Macros related to charging notification off, else continue Stopwatch 1 and repeat.
With disconnecting charger notification, it should be the same but only with 1 timer.
I'm not sure if he made a mistake on #3 and I was supposed to add Stopwatch 2 to Trigger. This is what I've come up with but I have no way to test if it's correct because I have to wait until the battery level drops to 20%.