Last active
January 4, 2022 22:00
-
-
Save letroll/a2aa2be930e9c67bdc8bf37fc9d8d14e to your computer and use it in GitHub Desktop.
Aquara remote switch single rocker home assistant blueprint zha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Aquara remote switch single rocker | |
description: Automate the Aquara remote switch single rocker with zha | |
domain: automation | |
input: | |
aquara_remote_switch_single_rocker: | |
name: Aquara remote switch single rocker | |
selector: | |
device: | |
integration: zha | |
single_press: | |
name: Single press | |
description: Action to run on single press | |
default: [] | |
selector: | |
action: {} | |
double_press: | |
name: Double press | |
description: Action to run on double press | |
default: [] | |
selector: | |
action: {} | |
long_press: | |
name: Long press | |
description: Action to run on long press | |
default: [] | |
selector: | |
action: {} | |
mode: single | |
max_exceeded: silent | |
trigger: | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input 'aquara_remote_switch_single_rocker' | |
variables: | |
single_press: !input 'single_press' | |
double_press: !input 'double_press' | |
long_press: !input 'long_press' | |
action: | |
- variables: | |
command: '{{ trigger.event.data.command }}' | |
args: '{{ trigger.event.data.args }}' | |
- choose: | |
- conditions: | |
- '{{ command == "single" }}' | |
sequence: !input 'single_press' | |
- conditions: | |
- '{{ command == "double" }}' | |
sequence: !input 'double_press' | |
- conditions: | |
- '{{ command == "long press" }}' | |
sequence: !input 'long_press' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment