Page 1 of 1

Wi-Fi On/Off depending on Location

Posted: 15 Oct 2017 05:00
by rturro4real
I cannot figure out a simple flow. I want this to happen: when I enter a location (e.g. my home) I want Wi-Fi to switch ON, and when I exit the location I want Wi-Fi to go OFF. Simple as I sounds, I can't get my phone to do it. Wi-Fi goes ON and OFF seemingly at random, i.e. when I enter the location Wi-Fi would not go ON, and instead would go ON when I exit the location, and vice versa.
I take it i can create two flows, one flow to switch Wi-Fi ON when I enter a location, and a different flow to switch Wi-Fi OFF when I exit a location.

However, I'd like to do it in ONE single flow, how can I do that?

I've been looking for tutorials on YouTube, but there's very few of them.

Any pointers would be appreciated indeed.

Re: Wi-Fi On/Off depending on Location

Posted: 15 Oct 2017 08:25
by Desmanto
What Trigger do you use? Most likely it is Location. There is a checkbox for entering and exiting. You should create two trigger in the same flow, one with entering, the other with exiting. (to add second trigger, tap trigger and tap 5 line icon on top of it).

Then use condition expression to check the trigger.

Code: Select all

trigger == Location: entering 0.000000/0.000000 (r: 100)
Replace the coordinate with your location and radius. Easiest way is to uncheck the default name and copy the trigger name for entering.

In true branch, use action turn wifi on. In false branch, use action turn wifi off.