Display a timer entity remaining time #875
Replies: 3 comments 1 reply
-
Hi! Indeed Bubble Card doesn't supports timers yet (I really need to work on that), but someone did find a way to do it with custom styling and templates, here is the link: |
Beta Was this translation helpful? Give feedback.
-
Thanks. For what it's worth, the native entities card by default displays the remaining time of a timer, but the native entity card does not. You can also see the remaining time in a badge for the new heading card. |
Beta Was this translation helpful? Give feedback.
-
I created two template sensors that have the remaining time of a timer helper as value (one in MM:SS the other in %) so it can be used as a sub button within a bubble card: The problem with these template sensors is that they are not updated every second so I had to create an automation to fix that. the code for the template sensors in configuration.yaml:
The code for the automation:
When the actual timer helper is done (idle) it updates both template sensors one last time for the final state. This is the code for the bubble card that shows both template sensors:
Both template sensors are hidden when the timer helper is not active. It ain't pretty but it works.... |
Beta Was this translation helpful? Give feedback.
-
If I create an entities card, the following will show the remaining time on a timer:
Is there any way to display that information inside a bubble card? e.g. as a sub-button, template etc.
Entering timer.mytimer as the entity in a sub-button shows me Active or Idle. No combination of showing state, icon, attribute etc. gives me the same output as the entities card, i.e. simply the remaining time.
Beta Was this translation helpful? Give feedback.
All reactions