Sensors update

Hi,

The sensors are only updated when the app is open. When do they put the update option in the background? Or is there already a way to update without opening the app? I really need this option.

Thank you.

Which sensors? What integration are they using. That’s not a lot to go on.

HA runs in the background and logs state changes immediately as they come in regardless what your companion app is doing. The companion app sends it’s own sensor data back to HA depending on how you’re setup. So I’m not exactly sure what sensor data you want updates for.

Also… what device is the app running on? If it’s a mobile phone there may be issues around battery saving, particularly if it’s Android.

Check the topic category, iOS.

Ah… Not reading the post properly. Again. :roll_eyes: The troubleshooting link is still valid, though.

1 Like

I also am experiencing this issue… mine stopped working a few days ago. Prior, my sensor from my phone update even if the phone (Pixel 7 Pro) was active or not.

See my post. Tell me if you see the same error re-opening your app after the phone has been sitting for awhile: Error writing to log when after waking up Phone

Sorry for the very very late response.
I’m referring to the sensors that the app provides, such as battery, battery status (whether it’s charging or not), wifi, etc.
Thank you in advance for the answers you have given.

Hi, did you figure this out @Filipe_Leite ? :slight_smile: I’m wondering the same

1 Like

While not Apple, I have a similar problem so could be app related rather than OS related. I have Samsung S22, Android 14. HA Core 2024.2.2, HA Supervisor 2024.01.1. I have an automation setup that turns off some lights when my phone Battery State changes from discharging to charging. This used to work without any problems. Now the automation only runs if I start the HA app on my phone. The automation used to run as soon as my phone started charging, there was no need to open the app.

Solved - in the HA app - Settings - Companion App - Background Access - Enable

I’m having the same issue on iOS, but there is not the setting option @jonathonp mentions in the companion app. Any ideas here?

  1. Open iOS Settings
  2. Scroll down to the list of apps at the bottom and find ‘Home Assistant’
  3. Enable ‘Background App Refresh’

You’ll probably want all these turned on, including ‘Location’ set to Always (and inside Location, enable ‘Precise Location’)