Proper Sleep Mode setup?

Post your questions and help other users.

Moderator: Martin

Post Reply
leadhex
Posts: 10
Joined: 01 Jul 2015 20:18

Proper Sleep Mode setup?

Post by leadhex » 01 Jul 2015 20:32

I've just recently started moving to Automagic from Tasker and have moved several complex profiles over. Some are intertwined nicely, but I'm still tweeking them.

However, it seems a simple Flow has me a bit stumped.

My main concern is the False loop would cause unnecessary battery drain.
Attachments
Screenshot_2015-07-01-13-29-03.png
Screenshot_2015-07-01-13-29-03.png (113.27 KiB) Viewed 12263 times

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Proper Sleep Mode setup?

Post by kintrupf » 02 Jul 2015 05:45

I assume you want to switch the audio settings when a power source is connected between 8 and 9 am?

Why don't you simply use a trigger Power source connected followed by the condition Time Range?
This would accomplish the same with absolutely no battery drain...

leadhex
Posts: 10
Joined: 01 Jul 2015 20:18

Re: Proper Sleep Mode setup?

Post by leadhex » 02 Jul 2015 12:55

I attempted that method, however the issue I run into is what if I plug in the phone at 7:55PM? The phone will not go on vibrate then.

Edit: The time range is supposed to be 8PM-9AM.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Proper Sleep Mode setup?

Post by Wibbly » 02 Jul 2015 15:47

If the time isn't completely critical, you could use your existing flow but include a sleep action in the loop set to, say, 5 min. The flow would only 'wake up' to execute the loop once every 5 min.

You could instead write a flow that only ran whilst the power was connected, so when on battery power the flow didn't run at all...

leadhex
Posts: 10
Joined: 01 Jul 2015 20:18

Re: Proper Sleep Mode setup?

Post by leadhex » 02 Jul 2015 16:54

Wibbly wrote:If the time isn't completely critical, you could use your existing flow but include a sleep action in the loop set to, say, 5 min. The flow would only 'wake up' to execute the loop once every 5 min.

You could instead write a flow that only ran whilst the power was connected, so when on battery power the flow didn't run at all...

I decided to go with the Power Connected trigger then a condition to check if it is in the 8PM-9AM time range. If not, sleep for 10m and check again.

Post Reply