Sleep or Global Value Date/Time?
Moderator: Martin
Sleep or Global Value Date/Time?
I have a flow that asks the user to do something (click "Yes" in the confirm dialog) or wait 15 minutes and ask again (click "No"). Currently I just have a sleep action in a loop to do the delay. Would it be better (for battery, processing, whatever) to put a Global Value Date/Time trigger on the flow and have the flow set the value of the global variable to 15 minutes from now and then exit?
Re: Sleep or Global Value Date/Time?
Using trigger Global Variable Date/Time and action Sleep: 15m (allow device sleep) both allow the device to go into deep sleep and wake the device at the appropriate time using an alarm so both options consume almost no battery.
I slightly prefer the trigger for longer durations since it does not highlight the flow in red in the flow list. Maybe you could even use a trigger Periodic Timer: 15m to show the dialog and enable/disable the trigger when required.
I slightly prefer the trigger for longer durations since it does not highlight the flow in red in the flow list. Maybe you could even use a trigger Periodic Timer: 15m to show the dialog and enable/disable the trigger when required.