[Example] Color based on multiple states #929
Replies: 5 comments 11 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.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Is this still working?I copied the code and changed the person entity, and i have state home but the colors are not working. |
Beta Was this translation helpful? Give feedback.
-
This one does not seem to work with latest beta 9, anybody else seen that? Colors stay as standard. .bubble-button-background { |
Beta Was this translation helpful? Give feedback.
-
Would someone be able to help me make a conditional background colour using the states of two entities? The logic would be
The reason being that the aircon zone damper is a separate entity to the ducted house aircon, but I only want the colours to show when the relevant mode is active. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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