How to check when toggles are manually pressed

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
mechrekt
Posts: 51
Joined: 21 Oct 2013 10:11

How to check when toggles are manually pressed

Post by mechrekt » 01 Nov 2013 20:12

I'm doing some "battery saving" flows used in certain conditions.
I'm trying to provide "override mode" to that flows using variables.
For example in specific location I've wifi turned off by flows because I think to not use it, but sometimes I need it, so I manually use the wifi toggle to activate it. The problem is that flows every "periodic time" set wifi to off again because I'm in the "right" location.

Is that a way to individuate when (for example) wifi is turned on (or off) by me (not by other flows or other apps)? Doing this I can manage (for example) a "periodic time" override mode.

thank you

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

Re: How to check when toggles are manually pressed

Post by Martin » 02 Nov 2013 18:26

Hi,

There is no built-in feature to detect when wifi is turned off manually or by Automagic. You could add a condition to check the wifi state before switching it on/off in Automagic and use a variable to remember whether you changed the state in Automagic.

Perhaps you could create an override mode by disabling flows in certain situations (or manually using a shortcut/notification/toggle widget).
You could do this using an action Set Flow State: Disable <flows>. This will also deregister the triggers from the system so it's a good way to save battery.

Regards,
Martin

Post Reply