You can use Tasker and sharptools to set your presence when you connect to your wifi. It will lag due to time for connection and cloud.
I also combine presence inputs using this smart app. Currently I’m using a smartthings FOB, phone presence, and connection to WiFi (via tasker)