piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.53k stars 329 forks source link

Chip icon color not working #1228

Open gmum4d opened 1 year ago

gmum4d commented 1 year ago

Requirements

Current Behavior

Chips icon color not changing

Expected Behavior

Icon color to display correctly

Steps To Reproduce

I'm very very new to HA and dont know what to put here?

Context

YAML state

Environment

- Browser: safari, Chrome & Edge
- HA Version:2023.8.1
- Mushroom:v3.0.5

Anything else?

I have set specific icon colors but some remain ad default and one displays incorrect color

Screenshot 2023-08-07 at 13 39 45 Screenshot 2023-08-07 at 13 42 26
TLongstride commented 1 year ago

Hi, Color working for me with my config, try using HTML color code instead. You can try reinstall it with HACS Bye

piitaya commented 1 year ago

Hi! Colors are only applied when the entity is active (e.g. thermostat is in heating mode, garage door is open)

duczz commented 12 months ago

i have the same issue, color changing not working type: entity entity: switch.wakeonlan_tower name: WOL Tower icon: mdi:desktop-classic icon_color: '{{ iif(is_state(switch.tower_internet_access, "on"), "green", "grey") }}' use_entity_picture: false

TLongstride commented 12 months ago

@piitaya Does entities Chips support templating ?

@duczz there is a mistake with the "if" delete one i

piitaya commented 12 months ago

Template chip supports templating but other chips don't.

gmum4d commented 12 months ago

Hi! Colors are only applied when the entity is active (e.g. thermostat is in heating mode, garage door is open)

Template chip supports templating but other chips don't.

These both seem to be true, Thanks for the replies. problem solved