android icon indicating copy to clipboard operation
android copied to clipboard

Sensor values from Wear OS are not updated unless app is opened when bedtime mode is enabled

Open R1DEN opened this issue 2 years ago • 9 comments

Home Assistant Android app version(s): 2023.10.2-full (phone) 2023.10.2-11484 (watch) Android version(s): 13 Device model(s): Samsung Galaxy S23 Ultra Samsung Galaxy Watch 4

Home Assistant version:

2023.10.5 Last working Home Assistant release (if known):

Description of problem, include YAML if issue is related to notifications:

The sensors (in this case Theater mode) is being upated in HA only when I open the HA app on my watch. Even if I change the mode right after going back "home" - I still need to reopen the app. I have reinstalled the apps both on my phone and watch multiple times and made 100% sure that all the battery optimizations were disabled.

Companion App Logs: Wear OS LogCat: log.txt HA Companion app logs: homeassistant_companion_log_9-27-2023_13-51-20.txt

I have enabled the mode, went to HA app on my watch, went back "home", disabled the Theater mode and went back again into HA app.

Screenshot or video of problem:

Additional information:

R1DEN avatar Oct 27 '23 10:10 R1DEN

The theater mode sensor does not update instantly, but only during the scheduled sensor updates (~every 15 min, or when a sensor that receives instant updates is updated, or when the app is opened), so what you're describing sounds like it is working as expected.

Do you have issues with other sensors?

jpelgrom avatar Oct 27 '23 11:10 jpelgrom

@jpelgrom this also reproduces with Sleep mode (it triggered bedtime scene) And before the latest Wear OS update (or HA app update) it (bedtime mode) updated instantly

R1DEN avatar Oct 27 '23 11:10 R1DEN

No need to @ mention me.

The same applies to the bedtime mode sensor.

Changing bedtime/theater mode usually changes do not disturb mode, which would trigger an update. Any chance you already have DND enabled perhaps?

Wear OS 4 might also be limiting background updates for apps more than previous versions, that is outside the app control. I don't believe anything changed for these sensors recently that could be causing it.

jpelgrom avatar Oct 27 '23 11:10 jpelgrom

Enabled the DnD sensor and tested with Bedtime mode - it works, but only if I do it right after opening/closing the HA app. If I lock the watch and unlock it - the bedtime sensor is not updated right away and works just as with Theater mode. DnD mode wasn't enabled 100%, but I don't enable it in theater mode.

Sorrry for mentioning, that's a mechanical thing I'm used to doing at my workplace :)

R1DEN avatar Oct 27 '23 11:10 R1DEN

This is a behavior change that I don't think we can work around.

dshokouhi avatar Oct 27 '23 13:10 dshokouhi

This is the issue being tracked with Google

https://issuetracker.google.com/issues/306580609

dshokouhi avatar Oct 27 '23 14:10 dshokouhi

I dont see anything in the logs that will be of use here :( I think we need to follow through with Google and hope they will fix it in an upcoming version of Wear OS 4.

dshokouhi avatar Oct 27 '23 14:10 dshokouhi

@jpelgrom this also reproduces with Sleep mode (it triggered bedtime scene) And before the latest Wear OS update (or HA app update) it (bedtime mode) updated instantly

How did you do your bedtime routine? with home assistant? if so how can I do it thanks

Lewis-house avatar Mar 15 '24 17:03 Lewis-house