[Example] Color based on multiple states #929
MrBearPresident
started this conversation in
Share your custom styles, templates and dashboards
Replies: 2 comments 4 replies
-
Would something like this also be possible with other elements than color, e.g. icon, and also based on different states than the one of the entity? Currently I have for example the following custom style code to put a logo into a sub-button based on the media source currently plaing:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note: The color code after the
??
is the default value, when the state is not found in the list.Disclamer: I did not make this, but revised what @j_d posted.
Beta Was this translation helpful? Give feedback.
All reactions