#icon_color

1 messages · Page 1 of 1 (latest)

hot sedge
#

can you hardcode a color ? icon_color: #f00f00
maybe the template result is not the right format for the card

eternal onyx
#

Yes I can

#

It accepts a color, but not a template of an entity color

hot sedge
#

i tried #f00f00 for icon_color, if i edit again it changed to null. but "icon_color: red" turns the icon of the card red

#

i think it should be {{ state_attr('light.office_light', 'rgb_color') | string }}

#

icon_color : "{{ state_attr('light.office_light', 'rgb_color') }}"

#

wrapping the template in " should fix it for you

eternal onyx
#

That doesn't throw an error, but it didn't make the icon match the bulb color. I'm going to restart HA to see if that helps