Yes. This works for me - but I'm fine with presence detection that uses an app on my phone. I use the OwnTracks app. OwnTracks sends encrypted location data to my own MQTT server, which is not exposed to the internet. However, WireGuard is always on on my phone.
OwnTracks is accurate to within 100 meters at the default settings. Although higher accuracy modes can be selected.
There are a few things I like about this setup:
- My location data is kept private
- Location is very accurate
- I can setup multiple locations/regions in OwnTracks: home, work, grocery, gym etc. - and based on these locations trigger automations.