banner-card icon indicating copy to clipboard operation
banner-card copied to clipboard

map_state: color does not change icon color

Open swampylee opened this issue 4 years ago • 4 comments

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.

swampylee avatar Mar 02 '20 15:03 swampylee

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 ?

Screenshot 2020-04-05 at 10 05 51

EDIT2: I rebuilt the package from sources, put it back in HA, and it works.

WhistleMaster avatar Apr 05 '20 07:04 WhistleMaster

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 ?

Screenshot 2020-04-05 at 10 05 51

EDIT2: I rebuilt the package from sources, put it back in HA, and it works.

swampylee avatar Apr 05 '20 13:04 swampylee

I build a version based on latest sources. You have to install it manually in your HA.

banner-card.js.gz

WhistleMaster avatar Apr 05 '20 17:04 WhistleMaster

I build a version based on latest sources. You have to install it manually in your HA.

banner-card.js.gz

Superstar - thanks so much, all working fine now!

swampylee avatar Apr 06 '20 09:04 swampylee