Using airplane mode and wifi at a certain location or when connected to a certain network

306 views
Skip to first unread message

tori729

unread,
Oct 16, 2015, 11:04:41 AM10/16/15
to Tasker
So I just noticed that apparently Tasker doesn't have user support anymore so my emails have been unanswered. Here's what I'm trying to do:

When home (either by location or connected to specific wifi), turn on wifi, turn on airplane mode, turn wifi back on.
Then the opposite for leaving.


If I try it as a location, the location settings aren't reliable - it will go in and out. I don't want to keep gps on all the time and when I'm in airplane mode I lose cell service so I'm thinking location isn't an option for the profile.

I can try doing it as connected to my wifi network but then when it goes into airplane mode, it disconnects from my wifi and thinks I've left so it goes into exit mode and cycles. 

So I need to figure out a variable so that it waits x amount of time after airplane mode and then if wifi doesn't come back on, it then will do exit mode.

I already have an event set up - airplane mode > wifi on - which works but then will that cycle back again with the other event?


I think if I had some variable where I have to stay disconnected from my wifi for a certain period of time before it thinks I left home, or if there is a way to make two variables in profiles with an OR between. 
I'd really like this to work - I use voip at home and get bad cell service so it eats my battery trying to find a signal that I don't even need.

I wanted to figure this out before I bought the app, but now my trial has run out and I can't test it so hopefully someone has done this before and knows how to do it.


Thanks!

Sean Williams

unread,
Oct 16, 2015, 11:16:10 AM10/16/15
to Tasker
Many ways to set something like this up however try something like,

In your exit Task,

If %AIR ~ on
Turn on WiFi
Wait 30 seconds
STOP
If %WIFII ~ *>>>CONNECTION<<<*
else
Do your exit actions

tori729

unread,
Oct 16, 2015, 11:23:55 AM10/16/15
to Tasker
Ok, so in my variable, I just put "ON"? 
And how do I put in wait 30 seconds?

The variables confuse me, I never know what values to put in to make it work right.

Sean Williams

unread,
Oct 16, 2015, 11:31:04 AM10/16/15
to Tasker
Ok, so in my variable, I just put "ON"?
And how do I put in wait 30 seconds?

The variables confuse me, I never know what values to put in to make it work right.

Aeroplane Mode - %AIR is a built in global variable its value will be 'on' or 'off'

Wait is an action when you add an action to a Task you can type 'wait' into the text box and it will find it for you.

If you're new to Tasker a good place to start is the user guide. There's a variables section which explains all of the built in Tasker variables and their different values.

Scott

unread,
Oct 16, 2015, 12:08:58 PM10/16/15
to Tasker
You can just put a wait at the beginning of your exit task and then at the beginning of your entry task put an action to stop the exit task.  So your exit task will wait 30 seconds before it does what you want and the entry task will stop the exit task if your profile becomes active during that 30 seconds.

Abdullah Alahdal

unread,
Oct 16, 2015, 4:59:45 PM10/16/15
to Tasker
If you are rooted. I would suggest to use Secure Settings to change the Airplane Radios. Just deselect the WiFi and run the task.

tori729

unread,
Oct 16, 2015, 5:07:08 PM10/16/15
to Tasker
Ok, so do this instead of just doing airplane mode? That sounds greaT!

Abdullah Alahdal

unread,
Oct 16, 2015, 5:18:38 PM10/16/15
to Tasker
Currently, when you enable airplane mode, all connectivity adaptors are switched off.

After changing the Airplane Radios all adaptors will be switched off except WiFi.

So the task you can do (as I do some time), use the WiFi near state when it is active turn on WiFi and enable airplane mode. At the profile exit turn off wifi and disable airplane mode.

Rich D

unread,
Oct 16, 2015, 5:50:20 PM10/16/15
to Tasker Google Groups Post

> If you are rooted. I would suggest to use Secure Settings to change the Airplane Radios. Just deselect the WiFi and run the task.

I have never used it but tasker has the same option. Action / net / airplane radios

Abdullah Alahdal

unread,
Oct 16, 2015, 6:04:21 PM10/16/15
to Tasker
The action is available in Tasker but for Android 4.2 and earlier.

Sean Williams

unread,
Oct 16, 2015, 6:31:23 PM10/16/15
to Tasker
Could also look into, Phone Actions - Radio

Set the status of the phone radio.

Warning: turning off the phone radio will prevent outgoing/incoming calls and mobile data transfer.

Working on Android 4.4.4 kitkat

Reply all
Reply to author
Forward
0 new messages