• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Home profile - disable wifi

SarNowak

Lurker
Hello,
would you please kindly help me resolve Tasker issue I have on my rooted MIUI Mi4c running MIUI 7 by xiaomi.eu 6.1.21, 5.1.1 android.
I made a Home profile, that enables itself, when I'm connected to my home wifi (based on my SSID).
So I have "State" type profile - Wifi Connected.
I have following action to be performed when profile is activated:
1. Pattern Lock Disabled (via Secure settings) - So I don't have to unlock my phone while at home.

I have following actions to be performed when profile is deactivated (I disconnect from WIFI), when leaving home:
1. Pattern Lock Enable.
2. Disable WIFI (to save battery, when I'm away from my home wifi).

The problem is though, that since 2 weeks ago, it seems as the "disable" actions of my home profile is randomely from time to time activated - meaning, wifi keep switching itself off. I thought there is some problem with my router, but as soon as I removed wifi off action from profile, wifi no longer keep switching itself off.

I cannot see anything from with my profile, nor can I see anything in Tasker log.

Any idea what's wrong? Or how to mend this?
Thanks in advance !
 
Welcome to Androids Forumns.

I had a similar problem a long time ago and someone helped me with a solution. It works.

Profile: tlaOfficeFar
State: Not Wifi Connected [ SSID:XXXXXXXX/YYYYYYYY MAC:* IP:* ]
Enter: tlaOfficeFarEnter
A1: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ]
A2: Variable Split [ Name:%WIFII Splitter: Delete Base:Off ]
A3: Perform Task [ Name:tlaWiFiOff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ] If [ %WIFII2 !~ CONNECTION ]

Profile: tlaOfficeNear
State: Wifi Near [ SSID:XXXXXXXX/YYYYYYYY MAC:* Capabilities:* Min. Activate Signal Level:4 Channel:0 Toggle Wifi:Off ]
Enter: tlaOfficeNearEnter
A1: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ]
A2: Perform Task [ Name:tlaWiFiOn Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]

The one minute waits assure that it isn't dropped too soon.

... Thom
 
Hi, didn't work for me :(
It seems, as soon as the wifi change triggers profile and it simply goes on. Wait parameter doesn't help :(
 
Back
Top Bottom