I'm rebuilding all my Tasker profiles into Automagic. So far so good except for one litle glitch which also exists in Tasker.
Im rebuilding a flow (or chain of flows) to switch from Mobile Data to Wifi when it detects i'm at home based on Cell Tower connection.
This works quite good for most of the time but when the connection is dropped for a short time, it will change from Wifi to Mobile data for the time the connection is dropped.
The moment it reconnects it switches back from Mobile Data to Wifi.
This happens because once the flow is triggered, there is no way back and it's excuted all the way.
Q: Is there a way around this behaviour?
Preventing flows getting executed by short disconnections
Moderator: Martin
Re: Preventing flows getting executed by short disconnection
You could add a Sleep action right after the trigger and let the flow sleep for a few seconds. After that you can re-check if the trigger condition is still valid and only proceed if it is.
For example:
trigger: WiFi disconnected
action: Sleep(5s); sleep 5 seconds
condition: WiFi connected; false: still disconnected, continue with original flow; true: WiFi has reconnected, do nothing (don't connect true branch to anything)
For example:
trigger: WiFi disconnected
action: Sleep(5s); sleep 5 seconds
condition: WiFi connected; false: still disconnected, continue with original flow; true: WiFi has reconnected, do nothing (don't connect true branch to anything)
Re: Preventing flows getting executed by short disconnection
Thx, i'll give that a shot