Home Assistant app iPhone background updates?

I’m new to home assistant but can’t seem to find a great answer to this.

I’ve got the home assistant app on my iPhone. But it seems it doesn’t update things like battery state unless the app is open. Is this just a limitation? Or is there a way to make this work?

Send the same with location. Even though I have location Permission to “always”.

1 Like

It should work in the background. Do iPhones have battery saving features like Android?

They do, yes. I’m wondering if maybe the app is force closed -? It won’t work. Or if the phone is restarted and I don’t open the app?

But I’m pretty sure I don’t see phone battery levels on my dashboard unless I open yet app. I test some more. Maybe I’m wrong.

This is a common problem with Android - partly because there are so many different flavours.

I’m on iPhone. And it seems it just stops updating sometimes. Even though location is set to always. I know battery info might not be related to location. But just hopes it would report all the time.

I have the same, iOS 17.6.1, HA 2024.9.1.

Hi all,

I am experiencing the same. It is now three days since my location last updated and automations based on location are simply not working.

Are there any reasons why this happens? Even a reboot of the phone and then the app does not work or kick location into life.

Do you have Background App Refresh enabled for the Home Assistant app?

Yes I do. I have everything I can think of switched on! I have made some changes tonight but cannot test them until Monday (when I next move from home to work).

Thanks for responding so quickly. I have a question you may or may not be able to answer.

When I click on my personal entity in my dashboard it opens and gives a map with my location. Alongside my name is my location and tells me (I assume) that it was 3 days ago that I last changed?

If I touch the 3 days ago message it opens further and gives me two items:

Last changed: 3 days ago
Last updated: 32 minutes ago (I forced a location update from the companion app location settings).

Do you know what the difference between the two is and why they report different time delays?

To be clear, in the last three days I have gone from home to work each day but the app has not changed.

If you are as lost as me, don’t worry, I will keep testing!

Geoff

My understanding is that last “updated” means when the state was last pushed from the app to HA. Last “changed” means when it actually changed (e.g. from Home to away).

Yes. That is what I thought. It appears that something is preventing my location from being changed (so all location based actions do not work. I will keep trying to resolve it. May come back Monday night with some more questions after I test the changes I have made tonight.

Thanks again.