I am trying to make the color of a custom:button-card
equal to the RGB color of my LED light. I have the template working correctly to pull the attribute of the RGB light. However, I am not able to input that into the card correctly to make the color change.
This is my current card
entity: light.living_room_lamp
state:
- color: 'rgb(100, 224, 81)'
value: 'on'
hold_action:
action: more-info
name: Lamp
styles:
card:
- font-size: 16px
type: 'custom:button-card'
I am trying to change the color:
to accept the value of
{{ state_attr('light.living_room_lamp', 'rgb_color') }}
However, when I put in the attribute, it gives no error but does not change the button color. Any suggestions by anyone?