Weather icon in badge and badge color

Hi everyone,

  1. is it possible to have an weather icon in Badge? how to do this? I was just trying to add weather entity,
    but it is just showing me text like “Raining” or “Sunny” etc.
  2. is it possible to change a color of the badge?

Hi, can anybody can help with this?

Did you ever find a solution for this? I’d like to do the same thing.

  - entity: weather.home_gismeteo
    icon: mdi:car
    card_mod:
      style: |
        :host {
         ... select an icon dependently on
             states('weather.home_gismeteo') ...
          --card-mod-icon: THE_ICON;
        }

Check this to get a icon for a weather.

        :host {
          --card-mod-icon-color: cyan;
        }

image

1 Like