WTH: why does my iPhone not update my location for presence detection?

Not sure how long this has been the case, but I tried to make an automation based on my iPhone’s location.

Then I noticed that the location doesn’t update unless I pull down to reload.
I’ve verified that the privacy settings are set to “Always” allow location access.

WTH am I doing wrong?

This seems odd - what version of HA and the iOS companion app are you using?

Newest app release (had to sign back in). HA is 0.114.1

All the location settings are enabled

go into your app settings --> sensors -> pull to refresh ?

I have the same issue though and it is Really starting to bothering me

There is nothing listed as “pull to refresh”, unless you are asking me to physically “pull to refresh”; I’ve done it.

It says Periodic Update: 5 min and properly has my Geocoded location (my address).

Interestingly, I cannot get it to update my current location to HA at the moment.

Any thoughts, @zacwest or @robbiet480 ?

1 Like

Periodic updates are only for when the app is open and visible on-screen, it’s not for background updates.

How frequently the app updates in the background is managed by iOS I believe. You can turn on Background Refresh for the app (Settings → General → Background App Refresh). And you can try launching / using it more often, as the operating system prioritizes recently and frequently used apps when it comes to background updates.

Thanks for the explanation. I have had the app open for a bit now and no updates all day. I believe all the settings are correct (?). I even tried force quitting. Any thoughts?

It’s clearly connected…

Update… I uninstalled and reinstalled and it’s updated the location already. *shrug* Not sure. I’ll mark this as solved I suppose!

Thanks guys for your hard work. Truly appreciated.

Nope. Still broken. :frowning:

I am having the same issue with Android. It’s really frustrating. When I reinstall the app on both my wifes and my phones it will work for approx 24 hours before it gets stuck and won’t update further.

@jschwalbe @Criticalan Do either of you have multiple devices in the integration->mobile app?

Also, as a side note, iphones GPS accuracy is based on the overall GPS use on the phone. Less gps use, less accuracy. My phone works great because I use alot of gps abilities. My wifes phone is much worse because she only uses it for HA. And she doesn’t use the app often.

Either way, to force a location update (to verify it’s working), pull down inside the app. It will refresh and send a location update. If that’s not working, a setting in your phone is wrong or you’re looking at the wrong device in the integration/mobile app. I’ve noticed that when I have to reenter credentials, a second mobile app device is created and I have to delete the ‘old’ one and rename the ‘new’ one to the old entity id’s.

EDIT: Lastly, there’s an option “Significant location change”, if that’s on, updates are less frequent if the location change from your last position isn’t large enough. I’ve also noticed that when my wife doesn’t connect to wifi, the location update on the iphone doesn’t happen all the time (I.e. she ends up being close to home, but not in the boundaries). So we have wifi on and whenever it connects to our network via wifi, the update is pretty much instantaneous.

1 Like

That’s very helpful!

The settings part especially so. My “update sources” section was all messed up and I also enabled the motion permission & background refresh (not sure if those made a difference), but today which was a few days later I got an iOS alert that HA was using my location info and am I ok with that… I was in Menards and did a little dance bc I knew it was working! According to the logbook (which I cannot search from my browser :wink: ) it indeed seems to be working again.

I’ve also just turned off the Signif location change option as well, to see if that helps make it more granular.

Thanks @petro & @SeanM & others for the assistance!