rianadon / timer-bar-card

A progress bar display for Home Assistant timers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

idle_state or inverted active_state

clinta opened this issue · comments

I have an entity that simply sends a duration in seconds. I use the last_changed attribute as my start time. Whenever this entity is 0 the timer is inactive.

I have this almost working, except I cannot get it to detect the timer as active. I need something like idle_state that I can set to 0, or some way to say > 0 for active_state.

This is a really niche set of constraints you have! This situation is what guess_mode is designed to handle, but since you don't have an end time, guess mode will not work.

I think what you're really looking for is templates, and I probably won't ever include a templating library in the card as there's much better templating stuff out there. You could either create a new template entity within Home Assistant or use another card to do the templating.

Sorry there is no solution involving just the card, but I hope that this helps!