New Lovelace - glance card - action toggle doesn't toggle

If I switch my card type from entities to glance, add a tap_action, action: toggle. The card does switch but tapping the element still launches more_info rather than toggle. Is this me or a bug in the new lovelace?

  - type: glance
    title: Switches
    show_header_toggle: false
    show_name: true
    show_state: true
    tap_action:
      action: toggle
    entities:
      - switch.5603023384fffb66c47a
      - switch.5603023384fffb268341
      - switch.05613003bcfff28aea20
      - group.kitchen_cabinet_lights
      - lock.front_door

tap_action is an option for the entities.
So i think it should be:

  - type: glance
    title: Switches
    show_header_toggle: false
    show_name: true
    show_state: true
    entities:
      - entity: switch.5603023384fffb66c47a
        tap_action:
          action: toggle
      - entity: switch.5603023384fffb268341
        tap_action:
          action: toggle
      - entity: switch.05613003bcfff28aea20
        tap_action:
          action: toggle
      - entity: group.kitchen_cabinet_lights
        tap_action:
          action: toggle
      - entity: lock.front_door
        tap_action:
          action: toggle
2 Likes

Yup, that was it. I thought I had tried it… but I was wrong, I didn’t add the entity: … in front of each switch before.
Thank you.

Question, would it be possible to set the tap_action as a default for all entities?

As much as i know, no.

I have a similar issue. I get this clue:

Your config is not supported by the UI editor:
Expected a value of type `{entity,name,icon} | entity-id` for `entities.3.tap_action` but received `{"action":"call-service","service":"cover.open_cover","service_data":{"entity_id":"cover.big_door"}}`.
Falling back to YAML editor.

on this glance card config:

type: glance
title: Doors
entities:
  - entity: binary_sensor.master_door
    icon: 'mdi:door'
    name: Master
  - entity: binary_sensor.bar_door
    icon: 'mdi:door'
    name: Bar
  - entity: binary_sensor.front_door
    icon: 'mdi:door'
    name: Front
  - entity: cover.big_door
    name: Garage Big
    tap_action:
      action: call-service
      service: cover.open_cover
      service_data:
        entity_id: cover.big_door
    hold_action:
      action: call-service
      service: cover.close_cover
      service_data:
        entity_id: cover.big_door
  - entity: cover.small_door
    name: Garage Small
    tap_action:
      action: call-service
      service: cover.open_cover
      service_data:
        entity_id: cover.big_door
    hold_action:
      action: call-service
      service: cover.close_cover
      service_data:
        entity_id: cover.big_door
  - entity: binary_sensor.garage_side_door
    icon: 'mdi:door'
    name: Garage Side
columns: 3

I having the same issue. It does not appear the UI Editor support anything by the default more-info actions.

Your config is not supported by the UI editor:
Expected a value of type {entity,name,icon} | entity-id for entities.0.tap_action but received {"action":"toggle"}.
Falling back to YAML editor.

type: glance
title: Downstairs Lights
show_state: true
show_name: true
columns: 3
entities:
  - entity: light.livingroom_floor_lamp
    name: Floor Lamp
    icon: 'mdi:floor-lamp'
    tap_action:
      action: toggle
  - entity: light.living_room_corner_lamp
    name: Corner Lamp
    icon: 'mdi:lamp'
    tap_action:
      action: toggle
  - entity: switch.front_porch_light
    name: Porch Light
    icon: 'mdi:ceiling-light'
    tap_action:
      action: toggle

Has anyone else had this issue when using the Glace Card?

I have this issue but it seems that the switches still work as as they should when toggled.

Switches seem to work ok with toggle on a glance card, but groups don’t seem to work with the toggle command as per this config, don’t want to create a workaround with a dummy switch and automation if I can help it.

entities:
  - entity: group.kitchen
    icon: 'mdi:chef-hat'
    tap_action:
      action: toggle

type: glance
show_state: true
title: Lights
columns: 3`