1. Are you ready for the Galaxy S20? Here is everything we know so far!

Home profile - disable wifi

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

  1. SarNowak

    SarNowak Lurker
    Thread Starter

    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 !
     


  2. 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

    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. Did you modify it XXXXXXXX/YYYYYYYY to reference your SSIDs?

    ... Thom
     

Tasker

Tasker Forum

net.dinglisch.android.taskerm

⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

READ MORE
February 15, 2020
Last Updated
4.4
Rating
1M+
Installs
Loading...

Share This Page

Loading...