mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
27 lines
552 B
YAML
27 lines
552 B
YAML
blueprint:
|
|
name: Aqara single switch
|
|
domain: automation
|
|
input:
|
|
action_entity:
|
|
click:
|
|
default: []
|
|
double_click:
|
|
default: []
|
|
hold:
|
|
default: []
|
|
mode: queued
|
|
trigger:
|
|
platform: state
|
|
entity_id: !input action_entity
|
|
|
|
action:
|
|
- choose:
|
|
- conditions: "{{ trigger.to_state.state == 'single' }}"
|
|
sequence: !input click
|
|
|
|
- conditions: "{{ trigger.to_state.state == 'double' }}"
|
|
sequence: !input double_click
|
|
|
|
- conditions: "{{ trigger.to_state.state == 'hold' }}"
|
|
sequence: !input hold
|