mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-10 03:18:44 +00:00
Switch to zigbee2mqtt auto discovery
This commit is contained in:
@@ -2,25 +2,25 @@ blueprint:
|
||||
name: Aqara single switch
|
||||
domain: automation
|
||||
input:
|
||||
z2m_topic:
|
||||
action_entity:
|
||||
click:
|
||||
default: []
|
||||
double_click:
|
||||
default: []
|
||||
hold:
|
||||
default: []
|
||||
|
||||
mode: queued
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: !input z2m_topic
|
||||
platform: state
|
||||
entity_id: !input action_entity
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions: "{{ trigger.payload == 'single' }}"
|
||||
- conditions: "{{ trigger.to_state.state == 'single' }}"
|
||||
sequence: !input click
|
||||
|
||||
- conditions: "{{ trigger.payload == 'double' }}"
|
||||
- conditions: "{{ trigger.to_state.state == 'double' }}"
|
||||
sequence: !input double_click
|
||||
|
||||
- conditions: "{{ trigger.payload == 'hold' }}"
|
||||
- conditions: "{{ trigger.to_state.state == 'hold' }}"
|
||||
sequence: !input hold
|
||||
|
||||
Reference in New Issue
Block a user