My color and icon switch stopped working. What is wrong here?
type: custom:restriction-card
card:
type: custom:button-card
entity: binary_sensor.garageport_garage_door_sensor_1_inverted
name: Garageport
show_name: true
show_state: true
show_icon: true
state_color: true
state:
- value: 'on'
- color: red
- icon: mdi:garage-open-variant
- value: 'off'
- color: green
- icon: mdi_garage-variant
tap_action:
action: call-service
service: script.oppna_stang_garageport
confirmation:
text: Öppna/Stäng ?
icon: mdi:garage-variant