There’s a really good community profile which uses phone presence (geolocation) to trigger events.
Using WiFi Connected can cause unexpected triggers as the phone disconnects and reconnects to the WiFi. Using WiFi Near is a step in the right direction as it just depends on being in the proximity of the WiFi, but it’s still subject to the phone losing visibility of the WiFi for a blip of time and causing a retrigger.
Geofences take that a step further and check to see if you are in a particular area before being triggered. Quality geofences use a fused location provider which combines WiFi, Cellular Towers, and GPS to balance accuracy with battery life.
The profile that @destructure00 put together takes it a step further with concentric geofences that fine tune accuracy and battery life for a really effective presence solution. The beauty of this is he has done the heavy lifting, so you just need to follow his instructions to create the profiles.