Ok newest updates to try
To your connected profile add this to the enter task
"+" - Tasker - Profile Status - Press the magnifiying glass - Choose your wifi near profile - Off - Done - Done
Your wifi off profile enter task should be cleared then enter this
"+" - Tasker - Wait Until - 1 minute - %WIFIC matches 0 - Done
"+" - Net - Wifi - Done
"+" - Tasker - Wait - 5 minutes - Done
"+" - Tasker - Profile Status - Press the magnifying glass - Choose your wifi near profile - On - Done
"+" - Tasker - Profile Status - Press the magnifying glass - Choose your wifi off profile - Off - Done - Done
Give that a whirl and let me know.
OK, by those 2 highlighted parts I assume you mean to pick my wifi on profile (which has the wifi near context in it)?
If that is true, I made the changes and this is what happened, btw I killed my router to simulate leaving the wifi near range thus disconnecting from my network.
When I killed the router obviously the connected profile deactivated and the wifi off profile kicked in and shut off my wifi
, the home and wifi on profiles stayed active with the wifi off profile for 5 minutes, then the wifi off and wifi on profiles deactivated, the home profile stayed on (obviously 'cause I was still within cell near range) but my wifi turned back on and stayed on, (it would not shut off after scanning and not connecting) even though the wifi on profile was not active anymore....close but not quite
Edit: After I turned my router back on my phone reconnected to my network but i just realized that only the home and connected profiles are now active, as my wifi on profile is now disabled (red circle with slash through it in the tasker app).