Profile "CELL NEAR" not work anymore in Android Pie - Tasker Tips & Tricks

Hi ,
For those we upgrade to Andoid Pie should experience the Profile state : CELL NEAR no more work as previous Android version and it requires location must be turn on prior.
My situation is that , I have from my old phone profile , STATE , CELL NEAR .
This CELL NEAR state containing 10+ GSM or LTE cell info in it.
I want to copy all those into the task so that I can make it like :
A1: Location on
A2: If %CELLID ~ GSM xxxxx
A3: do this
A4: do that
So that I get rid of the location mode "ON" requirement to save more battery.
Thank you very much.
edmond.

Related

[HELP] use array on WiFi near

Hi
Is it possible to use array on WiFi near SSID matching field?
I'm storing all the SSID i connect to in an array and trying to check if any of the value of the array matches wifi near scan so it would turn on wifi automatically otherwise it will be turned off...
I am trying putting the SSIDS() but it is not working
dreamsayer said:
Hi
Is it possible to use array on WiFi near SSID matching field?
I'm storing all the SSID i connect to in an array and trying to check if any of the value of the array matches wifi near scan so it would turn on wifi automatically otherwise it will be turned off...
I am trying putting the SSIDS() but it is not working
Click to expand...
Click to collapse
I believe a the use of a For loop will be needed:
Code:
A1. For %match Items %SSIDS()
A2. Wifi on If %WIFII ~R %match
A3. Variable set %success To 1 If %WIFII ~R %match
A4. End For
A5. Wifi off If %success !Set
svampsson said:
I believe a the use of a For loop will be needed:
Click to expand...
Click to collapse
Hi mate
Thanks for reply
Do I have to make a new task on that and use the variable %success on wifi near SSID match?
dreamsayer said:
Hi mate
Thanks for reply
Do I have to make a new task on that and use the variable %success on wifi near SSID match?
Click to expand...
Click to collapse
Not sure if I'm understanding what you're asking but, the %success variable is only there to check if a match was found. If if it was it will turn on Wifi, if not it will turn off Wifi.
svampsson said:
Not sure if I'm understanding what you're asking but, the %success variable is only there to check if a match was found. If if it was it will turn on Wifi, if not it will turn off Wifi.
Click to expand...
Click to collapse
Aha i got you... But what I understand is a task won't activate itself if I don't run it inside a profile... And there is a wifi near state where I can check if my phone is near a wifi network, so I am trying to use that state and use an array to check if that array contains any SSID that matches the wifi near SSID, so it will activate wifi on task. Is that possible somehow? I'm new to tasker and trying to learn new things and playing around with it.. so it will be really good if you can help me, i appreciate that ?
I guess I can use your method and create a wifi near state profile using a wild card... I guess that will work too, I'll try doing that too..

New to using tasker ..In need of some help

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.

How Turn off mobile networks and Wi-Fi when turning off screen?

My battery is quickly consumed because Wifi and mobile networks are on all the time. I would like a Tasker auto that will allow me to turn off Wifi and mobile networks when I turn off my phone screen
Use a State -> Display State (off) context in your profile.
Then, in your task, you can either:
Code:
Use the action Net -> Airplane Radios [ Bluetooth: Off Cell: Off NFC: Off Wifi: Off Wimax: Off ] # this will set what radios are DISABLED when airplane mode is turned on.
Plus use Net -> Airplane Mode [ Set: On ]
Or, you can:
Code:
Use the action Net -> WiFi [ Set: Off ]
Plus use the action Net -> Mobile Data [ Set: Off ]
Both methods have positives and negatives. Turning the cell radio off will also affect calls. Turning mobile data off doesn't work on all devices, and Google apps may turn it back on.

Tasker Near cell

Hi all
I created trigger for near cell to make vibration mode to activate.. But it will activate when I unlock device..
How can I resolve it? Or what is the issue?
Thanks
So what your saying is even if your not near the cell, the profile activates any time you unlock your phone?
Or are you saying that the profile only activates when near the cell AND you unlock the device? It won't properly activate if the device is locked?
What is the device? What android version? Posting the description of the profile here might allow other eyes to see a problem.
There is a sticky thread at the top of this forum explaining how to post the description of a profile.
Yes I mean to say.. Profile only activates when near the cell and after unlocking device.. If I don't unlock device even in near cell it will not activate..
And this issue is with only near cell profile all other profile works properly irrespective of device lock
Description
Profile: Office (11)
State: Cell Near [ Cell Tower / Last Signal:GSM:2.1879576 / 0
GSM:34374.28688717 / 8
LTE:405.861.1879576 / 0
LTE:405.861.268435455 / 4
GSM:34374.28682495 / 0
LTE:405.861.4595749 / 0
LTE:405.861.1879579 / 6 Ignore Cells:* ]
Enter: @office (12)
A1: Media Volume [ Level:0 Displayff Soundff ]
A2: Ringer Volume [ Level:0 Displayff Soundff ]
A3: Vibrate Mode [ Mode:Vibrate ]
Thanks
What is the device? Android version?
Xperia xa1 plus
Android 8.0
In tasker preferences -> monitor tab enable cell workaround. If that doesn't help, then enable Net/Cell wake screen which is just below the cell workaround entry.

Creating a pfofile that get triggered by other profile

Hi there,
I'm looking to create a profile that will trigger every time I'm having my weekly train commute and will compile different useful tasks for train riding like launching the Wi-Fi hotspot (so I can go online on my laptop) and mute the ringer, and some other stuff. I'm looking for some aid about about how to manage this through.
I thought about triggered this profile by using the speed data, but in that case it will launch on every ride I have, even when I'm riding my motorbike. So now I'm looking for something more sophisticated. Because I depart and arrive on regular stations and on regular times each week I want to have four new profiles - two for the the each of the two station I'm getting to and from of, for each commute occasion, setting one for the time window when I'm usually departure and one for arriving occasion. Those four will be used only as a platform. The train ride profile (a fifth one) will triggered by both of the departure profiles when I'll get to the station at the desired time and will turned off by the arriving stations profiles when I'll reach my destination station at the right time.
Doe's it make any sense? How can I pull this through?
Try WiFi near if the stations have a specific WiFi. That way, you don't need a time context.
You can use location with a time window you describe. That way, the device isn't trying to identify your location continuously outside of the time window you set.
ktmom said:
Try WiFi near if the stations have a specific WiFi. That way, you don't need a time context.
You can use location with a time window you describe. That way, the device isn't trying to identify your location continuously outside of the time window you set.
Click to expand...
Click to collapse
Thanks for the answer but you didn't got me. completely. I don't have a problem to detect the station location, the problem starts when the train leave the station and I want the profile to keep going on until I arrive at my destination station.
So use a speed evaluation combined with having the WiFi in proximity.
ktmom said:
So use a speed evaluation combined with having the WiFi in proximity.
Click to expand...
Click to collapse
It makes no sense, two reasons why:
1) When the train leave the station I'm loosing contact with any Wi-Fi
2) One of the reason I'm using Tasker to begin with is that I want my Wi-Fi to operate only when I'm in my home or in my workplace. The profile I want to operate on my train ride includes turning on my phone's hotspot (so I can use my laptop online during the ride). So I can't use any Wi-Fi network even if I want to.
3) I simply need to figure out a way how to trigger the "train ride" profile I want to have by other profile (station location profile in this case).
Yoghev
You can detect whether a WiFi network is nearby without connecting to it. You can use the WiFi's presence as the initial step to your process. Set a variable, them the exit task waits some time and a second profile looks for the variable to be set and some movement to be achieved.
Or not ¯\_(ツ)_/¯
You could always use a shortcut, or an NFC tag or location as I suggested before.
Create four profiles based on time and location.
One that's triggered at the train station A and in the average departure time of your commute to work.
Add an enter task which sets the variable $TrainStationCommute to A.
One that's triggered at the train station B and in the average arrive time of your commute to work.
Add an enter task which sets the variable $TrainStationCommute to B.
One that's triggered at the train station B and in the average departure time of your commute to home.
Add an enter task which sets the variable $TrainStationCommute to B.
One that's triggered at the train station A and in the average arrive time of your commute to home.
Add an enter task which sets the variable $TrainStationCommute to A.
Add another profile which is triggered as soon as variable $TrainStationCommute is set.
Add an new task "Commute" to this profile. Start with an IF action and check if variable $CommuteSettingsActive is not 1. Add your actions (enable hotspot, enable silent mode, etc.) to the IF loop and at the end, set the variable $CommuteSettingsActive to 1.
Add an IF ELSE action and check if variable $CommuteSettingsActive is not 0. Add your actions (disable hotspot, disable silent mode, etc.) to the IF ELSE loop and at the end, set the variable $CommuteSettingsActive to 0.
So every time the variable $TrainStationCommute is set, the task "Commute" will be executed. Based on variable $CommuteSettingsActive it will enable or disable your favorite settings.

Categories

Resources