Tile card not updating the "remaining" (time) when using timers #20138
Replies: 7 comments
-
I'll argue this isn't really a bug, but just a quirk of how the It is not an accurate count of the time remaining, as it only updates when the timer changes state (like changes from running to paused). It does not continually update as it counts down, as that would generate a lot of unnecessary recorder events. So the tile card is correct in showing this attribute as it really exists in the state machine. Some other frontend cards (like entities) do generate a live countdown, but that's not the same thing as displaying the One could ask for tile card to generate a similar countdown, but that's more of a feature request. |
Beta Was this translation helpful? Give feedback.
-
I understand your standpoint. I think there are two ways to look at this: from the perspective of a user this looks like "bad design" as it doesn't act like the name and setting might imply. (Remember I am able to select "remaining" here and it doesn't do anything at all except displaying the "duration", but nothing else). From a programmers perspective the solution itself works (although I only can image how the inner workings are - maybe it's "one solution fits all", which might be clean in itself, but takes casualities as the programming doesn't cover edge cases like "remaining"). Adding code (or recorder events, as you wrote) makes it more complicated, bloated and maybe error prone. |
Beta Was this translation helpful? Give feedback.
-
Keen to follow this as I'm using the tile card to monitor the timer state (and hopefully remaining time) but the remaining, as described, stays at the initial value as of the state change from Idle to Active. The workaround for now is I click in to the tile for more details and the remaining time is visible there. |
Beta Was this translation helpful? Give feedback.
-
I thought I would share that the Entities Card does show the remaining time for Timers when the state moves away from Idle: |
Beta Was this translation helpful? Give feedback.
-
Thank you. Good to know there are alternatives, yet I like a visual consistency thus I am using a lot of tile cards in my dashboards. Would be great to see a similar functionality (as in entity cards) here as well. |
Beta Was this translation helpful? Give feedback.
-
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Beta Was this translation helpful? Give feedback.
-
The issue is still unsolved |
Beta Was this translation helpful? Give feedback.
-
Checklist
Describe the issue you are experiencing
After setting up a tile card for a "timer" in the dashboard, the "state content" attribute "remaining" never gets updated in the tile card. Clicking the tile card brings up a dialogue which displays the remaining just fine - and also updates it as time moves along.
Describe the behavior you expected
The remaining time should be updated in the tile card until the timer is up.
Steps to reproduce the issue
...
What version of Home Assistant Core has the issue?
2023.11.2
What was the last working version of Home Assistant Core?
2023.11.2
In which browser are you experiencing the issue with?
Firefox 119.01
Which operating system are you using to run this browser?
macOS Sonoma 14.0
State of relevant entities
Problem-relevant frontend configuration
Javascript errors shown in your browser console/inspector
No response
Additional information
Beta Was this translation helpful? Give feedback.
All reactions