I have an iPhone I use for presence detection via the iOS companion app (latest update). It is set to “always” allow location data. Unfortunately the device tracker entity for this phone never changes to “away”. Everything else about the app works as expected, no problems reaching the front end, receiving notifications, viewing cameras, toggling switches, etc.
What’s interesting is I have two physical locations with two separate HA installs. At the other location home/away status works as expected. Everything is installed and configured exactly the same so that’s why I’m stumped.
Digging into location history in the app. It seems accurate. It’s tracking my location and updating “geographic region entered” correctly. It’s just not being processed by home assistant at the second location.
Check your person in the settings to see what device trackers are linked to it. I frequently had my ipad register itself as my device. But since that usually stays at home, it messes up my location. Removing it from the person helps. And of course, if the phone is not listed there, it also won’t work.
Thanks for the suggestion. I should have mentioned that the iPhone is the only device being tracked for my Person. It’s the same at both physical locations.
In that case I would suggest to also add a wifi/router based device tracker to see if the phone is connected to wifi. If your router has no integration, you could use a ping sensor.
Is the tracker also home if you are at neither home, and does it change when you switch the companion app to the other instance? I would not be surprised if only one instance receives sensor updates at a single time. But you said your location history is correct at both instances?