rianadon / timer-bar-card

A progress bar display for Home Assistant timers
Other
385 stars 15 forks source link

[Question] Is a numer as active_state possible? #177

Closed g1za closed 6 days ago

g1za commented 2 weeks ago

Hello, I would like to show the time until an automation is set to run and then show if it's running when the timer is over. Automation entities have an attribute ("current") that changes from 0 to 1 when running. But I guess active_state only accepts text. Am I correct? Is there a workaround? (as alternative to creating a template sensor that catches the automation status) Thank you

` entities:

g1za commented 6 days ago

I discovered that the right syntax that works with numbers coming from attributes is the following one:

state_attribute: current
active_state:
  - 1