iOS
iOS copied to clipboard
iPhone location sensor routinely fails to detect entering home geofence
iOS device model, version and app version
Model Name: iPhone XR Software Version: 14.7.1 App version: 2021.216
Home Assistant Core Version
2021.7.3
Describe the bug
I have an automation setup that arms Blink when the last person leaves home, and disarms it when the first person arrives home.
I have found that around 40% of the time the disarm trigger fails because entering the home geofence is not picked up.
I've just been out and the iPhone sensor picked up that I was away. It still hasn't detected I'm at home now, though.
This has occurred in the last few versions - as far back as I can remember.
Full location permissions have been granted in iOS.
Please first confirm there's only 1 device_tracker on the user in question, since if there's more than 1 they could be competing. If that's the case, you'll want to consult the location history to see what may be going on.
In App Configuration > Debugging, go to Location History and try and compare when you thought you should be reported home/away with where the location updates occur. If they look correct, consult Debugging's Event Log to see if any errors were reported submitting the location. If both of these look correct, you can submit the Location History update events (using the share button in the bottom) here -- please include any relevant information about timing.
There's definitely only one device tracker.
The location change is not included in Location History. It shows Geographic Region Exited
followed by several Significant Location Change
s, but no Geographic Region Entered
. It doesn't record me as at home for another 6 hours when Background Fetch
runs.
How far from your zone did you go approximately, and for how long? Did you enable airplane mode at all? When you return, do you enter any underground garage or other structure?
Probably 200-300 hundred metres, for about 20 minutes. No airplane mode, underground garage or anything similar.
Same issue, background location update slow or missing - Used to work without issues. Suspect IOS update has something to do with this. I am a NAbu Casa subscriber
This happened to me twice today. Alarm was set when I left, but never disarmed when I arrived back at home.
Please add the "location" label to this issue.
These are the notifications from the first instance occurring today. I will investigate the automation logs and see if I can determine more about what went wrong.
In my case (comment above), it seems that even after I arrived at home, the alarm was re-armed because of a poor GPS location that was a few hundred meters from my home. The logs show several bad locations (>100m error) recorded even though I was at home in the garage, so the alarm armed itself because it appeared that I had left the Home Zone, though in fact I had not. Seems like app should be confirming all significant location changes with GPS location check (w <50m accuracy location points).
Possibly related to issues #2156 or #1836