Cant toggle in a glance card?

I had a previous installation and I believe the same config worked. I ad to rebuild and lost the initial config so I’m starting from scratch. But from everything I found, this seems to be the right code:

entities:
  - entity: switch.open_close_garage_door
    icon: 'mdi:garage-open'
    tap-action:
      action: toggle
  - entity: switch.garage_light_relay
    icon: 'mdi:lightbulb'
    tap-action:
      action: toggle
  - entity: sensor.garage_door_status
    icon: 'mdi:arrow-expand-vertical'
type: glance

change tap-action to tap_action.

1 Like