WearOS Template Tile does not want to update automatically
See original GitHub issue**Home Assistant Android version: latest beta 1916 **
Android version: Android 11
Phone model: Samsung Galaxy S10 + Galaxy watch 4
Home Assistant version: 2021.12.9
Last working Home Assistant release (if known): –
Description of problem: https://github.com/home-assistant/android/pull/2122
New Temple Tile widget for WearOS does not want to update automatically, updates and works only with pressing update button manually. Templated {{ now() }} and looking at the time, its freezes. Update intervals ive tried: 1, 2, 5 min
Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):
Screenshot of problem:
Additional information:
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
WearOS Tiles do not update [199061124] - Issue Tracker
Thus, I'd like to update the app once the request has returned. When creating this issue, I had only started the tile using...
Read more >Update tiles | Android Developers
The layout is fixed, and only the information inside the layout changes. For example, a tile that shows your fitness progress of the...
Read more >Check for updates - Wear OS by Google Help
Download system updates. System updates are automatic. But if a Wear OS update doesn't install on its own, you'll need to download it...
Read more >Hacks, tricks, news and updates for Wear OS smartwatches ...
You don't need to install anything on the watch, the app is an adb command emulator that can be run from an android...
Read more >Overview | Home Assistant Companion Docs
Tiles · The shortcuts tile shows up to 7 shortcuts, which can be chosen from the settings section in the Wear OS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like this is the issue: https://github.com/home-assistant/android/blob/8a8772d5e7a2bd7788a081df8c6b0ef29f7cf44b/wear/src/main/java/io/homeassistant/companion/android/tiles/TemplateTile.kt#L49-L51
The value is multiplied by 60 to convert an expected minutes value to seconds, and by 1000 to convert to millis, but the values that are used for saving are actually already in seconds: https://github.com/home-assistant/android/blob/8a8772d5e7a2bd7788a081df8c6b0ef29f7cf44b/wear/src/main/java/io/homeassistant/companion/android/home/views/RefreshIntervalPickerView.kt#L27
Edit: same for phone: https://github.com/home-assistant/android/blob/8a8772d5e7a2bd7788a081df8c6b0ef29f7cf44b/app/src/full/java/io/homeassistant/companion/android/settings/wear/views/SettingsWearTemplateTile.kt#L103
And if you do minutes * 60, you get refreshes on the hour, just like @chertvl describes
Thanks so much, now it works perfectly! Great work!