homeassistant-minimalistic-area-card
homeassistant-minimalistic-area-card copied to clipboard
Override state badge color
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