1. Download our Official Android App: Forums for Android!

Support Home profile - disable wifi

Discussion in 'Android Apps & Games' started by SarNowak, Mar 21, 2016.

  1. SarNowak

    SarNowak Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Mar 21, 2016

    Mar 21, 2016
    2
    0
    5
    Female
    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 !
     

    Advertisement

  2. Thom

    Thom  
    VIP Member
    Rank:
     #24
    Points:
    1,318
    Posts:
    11,899
    Joined:
    Feb 16, 2011

    Feb 16, 2011
    11,899
    4,907
    1,318
    Male
    Software Developer
    Keene, NH USA
    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
     
  3. SarNowak

    SarNowak Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Mar 21, 2016

    Mar 21, 2016
    2
    0
    5
    Female
    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 :(
     
  4. Thom

    Thom  
    VIP Member
    Rank:
     #24
    Points:
    1,318
    Posts:
    11,899
    Joined:
    Feb 16, 2011

    Feb 16, 2011
    11,899
    4,907
    1,318
    Male
    Software Developer
    Keene, NH USA
    Did you modify it XXXXXXXX/YYYYYYYY to reference your SSIDs?

    ... Thom
     

Share This Page

Loading...