banner-card
banner-card copied to clipboard
map_state: color does not change icon color
Hi, love the banner card, thank you! I'm trying to change icon and color using map_state: but only the icon changes and not the color. I'm following the example you use in your readme.md:
Using map_state to render a switch as a colored icon
- entity: switch.switch
name: Is it on?
domain: sensor
value: mdi:star
color: black
map_state:
"on":
color: yellow
Added: But I'm using this:
entities:
- color: white
domain: sensor
entity: binary_sensor.nest_camera_front_door_motion
map_state:
'on':
color: red
value: 'mdi:run-fast'
name: Front Door
value: 'mdi:walk'
I see there is mention of map_state color changes issues/requests in the past but I assumed that as it was specifically used in an example that this should now be working.
Maybe a cache issue. Make sure developer tools console displays banner-card: 0.10.0.
EDIT: tried it myself, it seems that the "latest" release file is still 0.9.0: https://github.com/nervetattoo/banner-card/releases/download/0.10.0/banner-card.js Manually copying 0.10.0 release file in HA displays 0.9.0...
@nervetattoo: maybe a release issue ?

EDIT2: I rebuilt the package from sources, put it back in HA, and it works.
Hi, yeah I just did everything you suggested and I still see 0.9.0 version in developer tools. Anything I can do to get the 0.10.0 release (just an end user not a developer). Thanks, Lee
Maybe a cache issue. Make sure developer tools console displays banner-card: 0.10.0.
EDIT: tried it myself, it seems that the "latest" release file is still 0.9.0: https://github.com/nervetattoo/banner-card/releases/download/0.10.0/banner-card.js Manually copying 0.10.0 release file in HA displays 0.9.0...
@nervetattoo: maybe a release issue ?
![]()
EDIT2: I rebuilt the package from sources, put it back in HA, and it works.
I build a version based on latest sources. You have to install it manually in your HA.
I build a version based on latest sources. You have to install it manually in your HA.
Superstar - thanks so much, all working fine now!