Glance Card Tap Action Toggle not Working for Lock or Cover Entities

Trying to get tap_action toggles working for cover and lock entities. I followed the example here and looks like what I have done should work, but the cover and lock entities only bring up the more info window when I click on them.

title: Garage
type: picture-glance
camera_image: camera.weathercam
entities:
  - entity: switch.garage_light_exterior
  - entity: cover.garage_door_opener_right
    tap_action:
      action: toggle
  - entity: cover.garage_door_opener_left
    tap_action:
      action: toggle
  - entity: lock.garage_entry
    tap_action:
      action: toggle

I suspect this is due to the cover and lock entities not having a toggle service, but how can you lock/unlock a lock or open/close a cover from a glance card?

I use tap to lock and hold to unlock.

1 Like

Do you mind sharing your card example? I love your idea and I have tried the following config, but it still is not working. This is a different card that only deals with one lock, but has the same issue:

title: Front Door
type: picture-glance
camera_image: camera.front_door
entities:
  - entity: switch.front_porch_light
  - entity: lock.front_entry
    tap_action:
      action: call-service
      service: lock.lock
      service_data:
        entity_id: lock.front_entry
    hold_action:
      action: call-service
      service: lock.unlock
      service_data:

Sure, see below, think you’re just missing the entity_id line from the end ?

Also I have combined my car presence sensor with the locking and unlocking of my car

  - type: glance
    entities:
      - entity: binary_sensor.simon_s_car_presence
        icon: mdi:car
        name: Simon
        tap_action:
          action: call-service
          service: lock.lock
          service_data:
            entity_id: lock.bmw_330
        hold_action:
          action: call-service
          service: lock.unlock
          service_data:
            entity_id: lock.bmw_330
1 Like