OK . i need a bit of help with this wifi.
what im tyring to do is enable wifi when i get near the house, and when i leave it turns off.
context: wifi near - toggle - done
enter: wifi on
paired with
context: location - net/gps
wifi connected - wifi sleep - never
i use net and gps cause jsut net puts me at like 3000km from my house while gps helps to get 6.0m. any way to help with that?
and this also seems to be iffy at times. itll go into search mode (when im at the house) connect. then disconnect. turn off wifi. turn back on. and if im conected and go off far away from the set location. wifi is still turned on just not connected to a network.
any tips?
Considering that GPS is such a battery hog, I think you would be better off just leaving Wifi on all the time, or just removing the location context from the profile. But, to continue with your approach (which is good in theory, by the way)...
About Wifi turning off when you leave... when the display is off, the default is for Tasker to check the things it checks (location, wifi, etc) every 10 minutes. Also, it takes two checks before Takser will accept the fact that the Wifi you're looking for is no longer near. So with the default settings it will take 10-20 minutes for Wifi Near to deactivate after leaving the area.
I've done something similar to the following, but I'm currently experimenting with the beta, so I'm doing something different right now. But here's what I was doing:
Profile: Home Near
Context: Location <home>
Enter Task:
Variable Set %HomeNear 1
Exit Task:
Variable Subtract %HomeNear 1
Profile: Home Wifi
Context: Variable Value %HomeNear > 0
Context: Wifi Near <home> [toggle wifi]
Enter Task:
Variable Add %HomeNear 1
Wifi On
Exit Task:
Variable Subtract %HomeNear 1
Profile: Wifi Fast Off
Context: Wifi Connected <any>
Exit Task:
Wifi Off
Profile: Reset Variables
Context: Device Shutdown
Variable Clear %HomeNear
What this does is the Home Near profile sets %HomeNear to 1 when you're near home, which activates the first context in the Home Wifi profile. This allows Tasker to start checking Wifi Near, and when your home Wifi is found, it turns on Wifi and increases the %HomeNear variable. Increasing the variable is the key, as it prevents fluctuations in the Home Near profile from affecting the Home Wifi profile after Home Wifi has become active.
The Wifi Fast Off profile turns off Wifi as soon as it's disconnected.
The Reset Variables profile is necessary in Tasker 1.0.8 and earlier because if you turn off your device while either Home Near or Home Wifi profiles are active, the variable values will get screwed up. Later versions should not require this.