My current person state depends on two device tracker entities. My router and gps device tracker from the Android app.
This setup works good but I would love to improve it.
Is there a possibility to create a device tracker based on the access URL of Android app? I mean if the app uses the external URL to connect to Home Assistant, my person status should change to “not home”.
I think a lot of people create an internal A record for the external URL of their HA instance so that they can access it via HTTPS without certificate errors from the inside. Thus, determining a connection URL would be pointless since the URL is the same.
I would suggest you use a device tracker that keeps track of if you are connected to your wireless network or not. The Ubiquiti integration does a wonderful job of this, I’m sure there are other integrations for other types of network gear as well.