hmmm, thats a great and simple solution.Is there a reason you aren't using a single profile with a Wifi Near context to turn wifi on and off???
Context: Wifi Near (home wifi)
Task: Wifi On
Exit Task: Wifi Off
This is basically what I use. Make sure you check the "Toggle Wifi" option. Your phone will turn on Wifi briefly every few minutes to look for your home wifi, and if not found, turn off.
Maybe i'll set when near cell, turn on profile toggle wifi, when connected turn off near cell and toggle wifi, when disconnected turn on near cell and toggle wifi?