Created
May 11, 2025 23:09
-
-
Save nickali/7388689a3eac9549bdc39d8c23c7d5af to your computer and use it in GitHub Desktop.
This file contains hidden or 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: ZHA - _TZ3000_an5rjiwd TS0041 Switch | |
description: Automate your TS0041 Wireless Switch using ZHA events. | |
domain: automation | |
input: | |
ts0041_switch: | |
name: _TZ3000_an5rjiwd TS0041 Switch | |
description: _TZ3000_an5rjiwd TS0041 Switch to use | |
selector: | |
device: | |
integration: zha | |
manufacturer: _TZ3000_an5rjiwd | |
model: TS0041 | |
button_single_press: | |
name: Single Press | |
description: Action to run on single press | |
default: [] | |
selector: | |
action: {} | |
button_double_press: | |
name: Double Press | |
description: Action to run on double press | |
default: [] | |
selector: | |
action: {} | |
button_long_press: | |
name: Long Press | |
description: Action to run when button is long pressed (held down) | |
default: [] | |
selector: | |
action: {} | |
# source_url: | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input "ts0041_switch" | |
action: | |
- variables: | |
command: "{{ trigger.event.data.command }}" | |
- choose: | |
- conditions: | |
- "{{ command == 'remote_button_short_press' }}" | |
sequence: !input "button_single_press" | |
- conditions: | |
- "{{ command == 'remote_button_double_press' }}" | |
sequence: !input "button_double_press" | |
- conditions: | |
- "{{ command == 'remote_button_short_press' }}" | |
sequence: !input "button_long_press" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment