Person state and Android app access URL

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”.

You could use the WiFi sensor for that. That’s what I do with an automation and an MQTT device tracker.

1 Like

Thanks for your feedback.

That means there is no out-of-the-box device tracker based on the access URL? Perhaps this is worth a feature request!?

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.

1 Like

True.

Thanks for you help. I’ll try to improve my current setup.

1 Like