Low Battery Usage Wifi Enabling Profile Using Wifi Near

To do this I created 2 profiles that are used to turn it on and two to turn it off.
You have to do this near your house (or wherever you want to connect to WIFI regularly) and scan for several cell towers

The first I named Home
New - (Type Home for the Name) - Ok
State - Cell Near - Scan (do this near your house and get several towers) - Done
New Task - "+" - Variable - Variable Set - %Home to 1 - Done - Done
Add a context to that profile - State - Airplane Mode - Invert - Done
Add exit task - "+" - Variable - Variable Set - %Home to 0 - Done - Done

New - (Type Wifi On for the Name) - Ok
State - Variable Value - %Home for the Name and Value to 1 Op is Matches - Done
New Task - "+" - Net- Wifi - On - Done Done
Add a context to that profile - State - Wifi Near - Long Click the SSID box, it will autofill (do this when in range of your router) - Long Click the Mac box (it will auto fill) - Select Toggle Wifi - Done - Done
Add an exit task - New Task - ok - "+" - Net - WiFi - Off - If %WIFIC matches 0 - Done - Done

New - type: Wifi Off - Ok
State - Wifi Connected - Invert - Done
Tasker - Wait - 30 seconds - Done
"+" - Net - Wifi - Off - If %WIFIC matches 0 - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose: Wifi Off - Set: Off - Done
Set the priority of this task to 1

New - type: Connected? - Ok
State - Wifi Connected - Done
New Task - "+" - Variable - Variable Set %WIFIC to 1 - Done
"+" - Tasker - Wait - 1 Minute - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose Wifi Off - Set: On - Done - Done
Add Exit Task
New Task - "+" - Variable - Variable Set - %WIFIC to 0 - Done - Done
Set the priority of this task to 9

The reason to do it this way is to prevent the WIFI Near function to search all the time. With this configuration it won't search until you are in the correct Cell area. And if you live in a small village or city like me it won't keep your wifi connected while you aren't in range of your router (though it may be using wifi near during that time)

The airplane mode invert is to ensure its not scanning for cell towers when in airplane mode.
If you have any issues post them here:
http://www.droidforums.net/forum/droid-applications/66195-what-have-you-done-tasker.html

If you want to have multiple WIFI connect points, you only need to set up the first two profiles for each access point. Just change the names of the profiles so you know what they are and scan for the new towers and the new SSID and MAC.

If You have poor GSM coverage at home (concrete bunker?), You can add to WiFi On profile two steps into entry task:
"+" - Tasker - While %WIFIC matches 1 - Wait 10 Sec - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose Home - Set: Off - Done - Done
and couple another into exit task:
"+" - Tasker - While %WIFIC matches 0 - Wait 10 Sec - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose Home - Set: On - Done - Done
This should prevent turning off WiFi when Your Cell is unreachable even for a 10 seconds.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License