You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'd like to crate a button showing 3 states from two entities for a door: open, closed and locked.
Currently that's not easy to do since state (default) --> color doesn't allow templating
Wanted states/colors:
Door open: red and blinking
Door closed & unlocked: yellow
Door closed & locked: green
Describe the solution you'd like
Allowing templating for state->color would allow the following configuration which is much shorter than what my current solution (see below) is:
Describe alternatives you've considered
I've found a solution, but it takes too much duplicated code in my oppinion.
When I change the color by using state->color, then the text/icon is automatically changed to be be still readable. With my solution I have to do this manually:
Is your feature request related to a problem? Please describe.
I'd like to crate a button showing 3 states from two entities for a door: open, closed and locked.
Currently that's not easy to do since state (default) --> color doesn't allow templating
Wanted states/colors:
Door open: red and blinking
Door closed & unlocked: yellow
Door closed & locked: green
Describe the solution you'd like
Allowing templating for state->color would allow the following configuration which is much shorter than what my current solution (see below) is:
Describe alternatives you've considered
I've found a solution, but it takes too much duplicated code in my oppinion.
When I change the color by using state->color, then the text/icon is automatically changed to be be still readable. With my solution I have to do this manually:
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: