timer-bar-card
timer-bar-card copied to clipboard
Can I use this without entity/entities?
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
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. Just wondering if you could help.
I'm trying to do something similar. I've installed timer-bar-card and Templatable Configuration Card that you linked using HACS.
I'm trying to get a simple 4 hour timer working where I tap the button and it starts the 4 hour timer.
I currently have
entities:
- name: 4H timer
icon: mdi:medication
state:
fixed: active
start_time:
fixed: ${new Date().toISOString()}
duration:
fixed: '04:00:00'
But I get the error "No entity provided for more info dialogue" when I try and run it.