Open pickonedev opened 2 months ago
Yup (see documentation). This recently got added.
Uhhh... I think is hard for me to find exactly how to do this, even with the documentation for which I thank you pointing to me. If I don't ask too much, can you please show me a card code which do this without entity? Let's say that I have a value of 300 seconds and I want them to decrese, how, more exactly, the code of the card, will look like?
Thank you in advance!
No one knows? :-(
I'm pretty much the only one who answers questions in these issues, except for when multiple people have the same problem and help each other out. So you're stuck with me 😈 .
This is the configuration I used:
type: custom:timer-bar-card
entities:
- name: Mystery
icon: mdi:help
state:
fixed: active
start_time:
fixed: '2024-04-26T03:05:54.416Z'
duration:
fixed: '00:20:00'
Instead of duration
you can also use end_time
to specify the end.
Hope that helps! I should probably add this one to the examples.
I should also add that the card requires the start time to be fixed when configuring it this way. This ensures that the timer is still counting down from where it left off if you reload the page or open Home Assistant on another device. However, if you really want a timer that restarts whenever you load the dashboard, you can use the Templatable Configuration Card and set start_time
to ${new Date().toISOString()}
.
Hi!
Can this addon be used without any entities? I just want to add a start time and an end time, with no entity, just a simple countdown.
Thanks