lovelace-time-picker-card icon indicating copy to clipboard operation
lovelace-time-picker-card copied to clipboard

Add tap action when embedded in entities

Open OToussaint opened this issue 2 years ago • 0 comments

I'd like to be able to use the

double_tap_action:
  action: ...

And also, tap_action as well as hold_action when the card is embedded (but not only?) in an entities card like so:

type: entities
entities:
  - type: custom:time-picker-card
    entity: input_datetime.shower
    name: Time to shower, kids
    hour_mode: 24
    link_values: true
    layout:
      name: inside
      align_controls: right
      embedded: true
    double_tap_action:
      action: call-service
      service: automation.trigger
      data:
        entity_id: automation.time_to_shower

This to be able to trigger my linked automation on demand.

OToussaint avatar Jun 03 '22 18:06 OToussaint