Last active
January 10, 2024 20:05
-
-
Save Coysh/ac8d4ec90d62a80e3830d4a08ad23469 to your computer and use it in GitHub Desktop.
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: MOES ZigBee (TS0043) 3 button remote | |
description: Automate your MOES ZigBee Wireless Scene Switch 3 button remote using | |
ZHA events. | |
domain: automation | |
input: | |
moes_ts0043: | |
name: Moes TS0043 3 button remote | |
description: Moes TS0043 3 button remote to use | |
selector: | |
device: | |
integration: zha | |
manufacturer: _TZ3000_sj7jbgks | |
model: TS0043 | |
button_one_single_press: | |
name: Button 1 (single press) | |
description: Action to run on button 1 single press | |
default: [] | |
selector: | |
action: {} | |
button_one_double_press: | |
name: Button 1 (double press) | |
description: Action to run on button 1 double press | |
default: [] | |
selector: | |
action: {} | |
button_two_single_press: | |
name: Button 2 (single press) | |
description: Action to run on button 2 single press | |
default: [] | |
selector: | |
action: {} | |
button_two_double_press: | |
name: Button 2 (double press) | |
description: Action to run on button 2 double press | |
default: [] | |
selector: | |
action: {} | |
button_three_single_press: | |
name: Button 3 (single press) | |
description: Action to run on button 3 single press | |
default: [] | |
selector: | |
action: {} | |
button_three_double_press: | |
name: Button 3 (double press) | |
description: Action to run on button 3 double press | |
default: [] | |
selector: | |
action: {} | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input 'moes_ts0043' | |
action: | |
- variables: | |
command: '{{ trigger.event.data.command }}' | |
endpoint_id: '{{ trigger.event.data.endpoint_id }}' | |
- choose: | |
- conditions: | |
- '{{ command == ''remote_button_short_press'' and endpoint_id == 1 }}' | |
sequence: !input 'button_one_single_press' | |
- conditions: | |
- '{{ command == ''remote_button_double_press'' and endpoint_id == 1 }}' | |
sequence: !input 'button_one_double_press' | |
- conditions: | |
- '{{ command == ''remote_button_short_press'' and endpoint_id == 2 }}' | |
sequence: !input 'button_two_single_press' | |
- conditions: | |
- '{{ command == ''remote_button_double_press'' and endpoint_id == 2 }}' | |
sequence: !input 'button_two_double_press' | |
- conditions: | |
- '{{ command == ''remote_button_short_press'' and endpoint_id == 3 }}' | |
sequence: !input 'button_three_single_press' | |
- conditions: | |
- '{{ command == ''remote_button_double_press'' and endpoint_id == 3 }}' | |
sequence: !input 'button_three_double_press' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment