homeassistant-minimalistic-area-card icon indicating copy to clipboard operation
homeassistant-minimalistic-area-card copied to clipboard

Override state badge color

Open LesTR opened this issue 7 months ago • 4 comments

Based on https://github.com/junalmeida/homeassistant-minimalistic-area-card/pull/104

I'll rebase it when the first one gets merged.

Original commit message:

Allow to override color.

Examples: Based on state values:

- entity: binary_sensor.main_door_opening
    icon: mdi:door
    state:
      - value: 'on'
        color: green
        icon: mdi:door-open
      - value: 'off'
        color: red
        icon: mdi:door

On entity:

- entity: light.stairs_leds
    icon: mdi:stairs
    color: blue
    tap_action:
      action: more-info

State value settings has higher priority

LesTR avatar Jul 22 '24 21:07 LesTR