Closed dudu631 closed 3 years ago
Seconded, but for a different use case:
...
include:
- domain: timer
entity_id: /chore/
options:
tap_action:
action: call-service
service: timer.start
service_data:
entity_id: "{{ config.entity }}"
...
Edit: I found that my request is possible when using: https://github.com/thomasloven/lovelace-auto-entities
As follows:
type: 'custom:auto-entities'
card:
type: entities
filter:
include:
- domain: timer
entity_id: /chore/
options:
tap_action:
action: call-service
service: timer.start
service_data:
entity_id: 'this.entity_id'
Added in 1.3.0. The actions need to be python formated if templates. See readme.
Is it possible to template the tap action, in order to only enable it on a certain state?
Example:
Or something like that?