Glance card - switch toggle not working

Hi All, I’m probably doing something stupid but have been staring at this for a while and can’t make sense of it.

I have some switches, in the old interface they toggle fine. I’ve put them in a glance card and set the tap_action to toggle but nothing happens. If I long press them, the more info card comes up and I can use the toggle there no problem.

  - type: glance
    id: lounge_devices
    entities:
      - entity: switch.lounge_tv
        tap_action: toggle
      - entity: switch.soundbar
        tap_action: toggle
      - entity: switch.ps3
        tap_action: toggle
    show_name: true
    show_state: true

Any idea what I’m doing wrong?

Try:

        tap_action: 
          action: toggle
1 Like

thank you, I see now looking at the docs you’re right.

Couldn’t see the wood for the trees yesterday :slight_smile: