Xiondewah

Results 14 comments of Xiondewah

card_mod: class: button-bullet style: | ha-card { border: {{ '3px solid gold' if is_state('light.desk_lamp', 'on') else '' }}; } I want to replace 'gold' with the light's colour.

Something like this: - color: > [[[ if (entity.state === 'on') return "rgb(" + states['light.zachs_lamp'].attributes.rgb_color + ")";]]]

Hi - thanks for this. I can actually do that already. What I really wanted was to set the button colour to that of the light, which I can do...

Brilliant! Thanks 😁 Message ID: ***@***.***>