Wear OS app gets put to sleep
See original GitHub issueHome Assistant Android version: 2022.3.0-full (phone) 2022.3.0 (watch)
Android version: 10 (phone) Wear OS 2.34
Phone model: Samsung Galaxy S9+ TicWatch Pro 2020
Home Assistant version: 2022.4.7
Last working Home Assistant release (if known): n/a
Description of problem: Watch sensors (especially battery levels) stop being sent overnight while watch is not on wrist. This means that battery level info is not sent, so HA automations to switch on/off a USB charging outlet do not work. This behaviour is not consistent, leading me to believe that the Wear OS app is not setting the appropriate wake-locks or requesting the correct power modes in order to ensure data is sent.
Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs): n/a
Screenshot of problem:
Additional information: There is a developer-mode option “stay awake while charging” which I have enabled, that provides some relief for the issue. However the HA companion app still appears to be put to sleep by Wear OS in some situations.
Edit: I should add that this is not always an “overnight” issue - sometimes the battery level info is not updated during the day while the watch is being worn. Opening the HA app on the watch then causes the sensor data to be updated immediately. This is expected if Wear OS is putting the app to sleep while it is not “active” however the app needs to remain in-memory in order to send updated sensor data to HA periodically.
Issue Analytics
- State:
- Created a year ago
- Comments:16 (5 by maintainers)
Sorry, missed a part of the question; yes the settings persist across restarts.
Yeah it’s been working really well. I think battery life is affected a little, I have difficulty quantifying the impact though - so maybe something like 2-5% extra drain across the course of a 17-hour day (7am - 10pm).