Sleep or Global Value Date/Time?

Post your questions and help other users.

Moderator: Martin

Post Reply
98b427af

Sleep or Global Value Date/Time?

Post by 98b427af » 29 Apr 2014 03:31

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?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Sleep or Global Value Date/Time?

Post by Martin » 29 Apr 2014 17:44

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.

Post Reply