New to using tasker ..In need of some help - Tasker Tips & Tricks

So I'm new to tasker was wondering if someone could possibly help me ..I wanna have it so that when I'm connected to wifi it will turn my cell radio off and when I lose wifi cell radio is back on and if I have no service it turns cell radio off and wifi on then again when I lose wifi cell radio back on..Is this possible and if so perhaps someone could help me out
Thanks a bunch

hammmersmashface said:
So I'm new to tasker was wondering if someone could possibly help me ..I wanna have it so that when I'm connected to wifi it will turn my cell radio off and when I lose wifi cell radio is back on and if I have no service it turns cell radio off and wifi on then again when I lose wifi cell radio back on..Is this possible and if so perhaps someone could help me out
Thanks a bunch
Click to expand...
Click to collapse
I have one that will turn off data when Wi-Fi connected.
Create profile with a state context and name it "when Wi-Fi connected",then create action called "turn data off" . Create a wait action and set it to what time interval you want, then make another action under code and type
su;
setenforce permissive;
svc data disable;
setenforce enforcing
Check use root ,and that's it.

Related

[Q] Tasker cannot turn off phone radio

I have low cellular signal in my house so i want to disable the phone's radio when on house wifi, but that option is "unavailable" in tasker.
Is there a work around to this? i know you can turn on airplane mode then turn back on wifi, but i want to know if there is a solution to just disable the radio.
Would this help? http://forum.xda-developers.com/showthread.php?t=1217038
Thanks.
bump 10char
I thought there was a plugin released recently that allowed something like this, sorry I can't find it though.
I have bad signal at home too so I just change over to 2g and battery does pretty well.
Why would you want to turn the radio off though? You won't receive calls/sms/anything.
Going to 2G and turning data off should be better surely?
signal is so weak that you can assume no signal at all in the house, so i'm not sure if just changing to 2g data is good enough since the phone will still continue to search for cellular signal which drains the battery.
i will try that at least for now and see if it helps, but ultimately, i do want to turn off the radio and leave on wifi.
i am able to receive calls via wifi through use of voip, receive sms via google voice.

Auto Turn Off Mobile Data When Connected to WiFi

Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
If you're not happy with that, Automate It should be able to do something for you. I have Automate It Pro set to turn off wifi & data at midnight, for example, to avoid the nuisance of emails pinging me in the middle of the night. And it switches wifi & sync on at 09:00 each day. Very useful tool, simpler than Tasker, so no tutorial from me...
There are a few Automate apps in the Play Store - it's this one:
https://play.google.com/store/apps/details?id=AutomateIt.mainPackage
This free version allows you 3 (as I recall) triggers - if you need more it's not too expensive to buy Pro.
I use RadioControl to handle that for me.
https://play.google.com/store/apps/details?id=com.nikhilparanjape.radiocontrol&hl=en
It requires root, and it's not perfect. But it works well enough for me.
[NG]Owner
Try smart radio xposed module.
pr0ndigy said:
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
Click to expand...
Click to collapse
Tasker does it pretty simply, but it needs root access..
Set up (2) tasks - I called mine Data Off & Data On. You will need to select "Net/Mobile Data" and then set "On" or "Off" respectively. Next set up your profile. Select "State/Net/Wifi Connected", and leave everything empty and save. This will trigger the profile when any wifi is connected. (Optionally, you could set it to your home or work wifi, etc). Your "task" will be "Data Off", then add an "exit task" for "Data On" (by long pressing the Data On and selecting "exit task").
dahawthorne said:
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
Click to expand...
Click to collapse
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Pkt_Lnt said:
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Click to expand...
Click to collapse
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
jbaumert said:
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
Click to expand...
Click to collapse
Do you have a ROM that has that option and it is enabled?
Pkt_Lnt said:
Do you have a ROM that has that option and it is enabled?
Click to expand...
Click to collapse
Running SIX ROM - Just checked, that option is disabled in the Dev Settings / connected to good wifi / and cellular is active...
¯\_(ツ)_/¯
Now it is a question for that rom dev.

wifi off when there is no wifi around, or wifi is disconnected

im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Do I link these profiles or run them all seperate?
This is what I have set up from the xml you sent me
Or like this?
Do these profiles supposed to turn WiFi off? As in, turning it off in settings too? I tried these and it don't work that way. I did change cell near as you suggested.
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Could you quote my post so I can get the notification for this o.p? Tyvm
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
---------- Post added at 12:34 PM ---------- Previous post was at 12:20 PM ----------
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
Yes use all 3 at same time, make sure your variables are getting set. The one profile sets wifilocation variable when your near your cell towers, then the second one will see that wifilocation is set and activate causing it to turn on wifi and wait for 20 sec and if its not connected will turn wifi off. you may need a profile that turns wifi off when screen is off or go into wifi settings on phone and set it to not stay on when screen is off. Also you may need to turn on cell workaround and/or use new cell api under taskers preference depending on the model of your phone. You may not need the If WiFi connected profile, I think I used that for another project.
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Honestly this is a complicated way of doing something very simple.
The most accurate and low battery way to accomplish this is to have 1 profile with a state context of "cell near" and set it to scan while you walk around your house for 5 min and then set it down and let it scan for another 10 min. (This ensues all available cell towers in your area are accounted for) and make tier entry task enable wifi. So when you're close to home, tasker will enable WiFi and Android will handle reconnecting.
In the exit task,Turn wifi off so whenever you leave your area WiFi will be deactivated and you are using nearly 0% battery to achieve it
loogielv said:
Honestly this is a complicated way of doing something very simple.
The most accurate and low battery way to accomplish this is to have 1 profile with a state context of "cell near" and set it to scan while you walk around your house for 5 min and then set it down and let it scan for another 10 min. (This ensues all available cell towers in your area are accounted for) and make tier entry task enable wifi. So when you're close to home, tasker will enable WiFi and Android will handle reconnecting.
In the exit task,Turn wifi off so whenever you leave your area WiFi will be deactivated and you are using nearly 0% battery to achieve it
Click to expand...
Click to collapse
Yeah. I have already used that task before. The cell near profile. I just want a profile that turns WiFi off completely when I'm not connected to any WiFi.
Tmobilefan906 said:
Yeah. I have already used that task before. The cell near profile. I just want a profile that turns WiFi off completely when I'm not connected to any WiFi.
Click to expand...
Click to collapse
How about a wait time, then afterwards switch wifi off if not connected?
HatchetEgg said:
How about a wait time, then afterwards switch wifi off if not connected?
Click to expand...
Click to collapse
Yes
Tmobilefan906 said:
Yes
Click to expand...
Click to collapse
Ok then the best thing to do is create a profile event context of WiFi disconnected and make the entry task merely set a variable %WIFITIMER to %TIMES+120
then create another profile with a time context and set if to activate on %WIFITIMER (which would be set for 120 seconds after the WiFi disconnected and make the entry task WiFi disable
Then create one more profile with an event context of WIFI CONNECTED and set the entry task to clear the Wi-Fi timer. This will ensure that if the Wi-Fi reconnects, the Wi-Fi disable profile won't be able to activate because the time will never be Null
The logic is: if the Wi-Fitimer is set then when the current time matches it, disable the Wi-Fi, but if it reconnects, the timer is disabled.
Edit
The benefits of these profiles is more than merely an elegant approach, but also the least battery impacting method to have Tasker wait until a certain time to do something. Using wait actions inside tasks might be one of the worst things for battery life

Wi-Fi Calling disables cell radio?

Starting this morning (5/8/18) whenever my device enables Wi-Fi Calling, my cellular radio shuts down causing me to have no signal once I leave the boundaries of the WiFi. Under normal circumstances your signal should automatically return, but that's not happening in my case. So far the only stopgap measure I've found is to reset the network settings which restores signal as long as I keep the calling feature disabled.
Anyone have a clue? Flashing the KDZ didn't help. Should I send the device in for a repair?
Edit - Reflashed the KDZ and all is well now. I'm starting to think the WiFi Calling app was having issues, despite being set to maintain cell service while connected.
P.S - If a mod would like to delete this thread, feel free.

WIFI on data turn off

Is there a way that when I come into my home my wifi turns on automatically and turns data off in this app? I figured out how to turn wifi on with tasker but I want to know now if it can also turn data off when wifi connects. Galaxy s10+ so no root obv
orlans21 said:
Is there a way that when I come into my home my wifi turns on automatically and turns data off in this app? I figured out how to turn wifi on with tasker but I want to know now if it can also turn data off when wifi connects. Galaxy s10+ so no root obv
Click to expand...
Click to collapse
Best option is using auto input and Tasker.
Auto input is basically a Tasker plugin that creates a virtual touch on your screen without root.
Or else you can also do this using autoTools secure settings but you will need adb for that and it won't work after reboot
manan9999 said:
Best option is using auto input and Tasker.
Auto input is basically a Tasker plugin that creates a virtual touch on your screen without root.
Or else you can also do this using autoTools secure settings but you will need adb for that and it won't work after reboot
Click to expand...
Click to collapse
So just use auto input?
orlans21 said:
So just use auto input?
Click to expand...
Click to collapse
Buy auto input and set it up according to your need using Tasker
Post If help needed .
manan9999 said:
Buy auto input and set it up according to your need using Tasker
Post If help needed .
Click to expand...
Click to collapse
Ok. One thing maybe you can help me with. I've noticed that after setting up my wifi with tasker the wifi shuts off from time to time. I don't think it's signal strength because I'm either 3 or full bars. Then like a few seconds later tasker will turn it back on. I know its triggered from the cell tower but I have no idea.
orlans21 said:
Ok. One thing maybe you can help me with. I've noticed that after setting up my wifi with tasker the wifi shuts off from time to time. I don't think it's signal strength because I'm either 3 or full bars. Then like a few seconds later tasker will turn it back on. I know its triggered from the cell tower but I have no idea.
Click to expand...
Click to collapse
I don't experience the same.
It works just perfect for me.
Are you sure you are not doing something wrong?
Try mailing the developer
It could just be my router. It's in the basement and I'm 2 floors above
As for determining your proximity to your location, one good idea is to use two different sized or two location geo fences that you can cross reference against each other

Categories

Resources