Last active
October 31, 2024 20:54
-
-
Save MattJeanes/095e1e1dbf022af1a3cfe909ae3cb7a0 to your computer and use it in GitHub Desktop.
Home Assistant automation for ZHA joined 1st gen Hue dimmer switches which are bound directly to the lights but still want to use the double/triple/etc presses
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: ZHA Hue Dimmer Switch 1st Gen | |
description: Allow extra functions for a directly bound 1st gen Hue Dimmer Switch | |
domain: automation | |
input: | |
device_id: | |
name: Device | |
description: Hue Dimmer Switch | |
selector: | |
device: | |
filter: | |
integration: zha | |
manufacturer: Philips | |
model: RWL021 | |
action: | |
name: Action | |
description: Event Action | |
default: "on" | |
selector: | |
select: | |
options: ["on", "on_press", "on_short_release"] | |
double_press_action: | |
name: Double Press Action | |
description: Action to run when the button is double pressed | |
default: [] | |
selector: | |
action: {} | |
triple_press_action: | |
name: Triple Press Action | |
description: Action to run when the button is triple pressed | |
default: [] | |
selector: | |
action: {} | |
quadruple_press_action: | |
name: Quadruple Press Action | |
description: Action to run when the button is quadruple pressed | |
default: [] | |
selector: | |
action: {} | |
quintuple_press_action: | |
name: Quintuple Press Action | |
description: Action to run when the button is quintuple pressed | |
default: [] | |
selector: | |
action: {} | |
triggers: | |
- trigger: event | |
event_type: zha_event | |
event_data: | |
command: !input action | |
device_id: !input device_id | |
actions: | |
- wait_for_trigger: | |
- trigger: event | |
event_type: zha_event | |
event_data: | |
command: !input action | |
device_id: !input device_id | |
timeout: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
continue_on_timeout: false | |
- sequence: !input double_press_action | |
- wait_for_trigger: | |
- trigger: event | |
event_type: zha_event | |
event_data: | |
command: !input action | |
device_id: !input device_id | |
timeout: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
continue_on_timeout: false | |
- sequence: !input triple_press_action | |
- wait_for_trigger: | |
- trigger: event | |
event_type: zha_event | |
event_data: | |
command: !input action | |
device_id: !input device_id | |
timeout: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
continue_on_timeout: false | |
- sequence: !input quadruple_press_action | |
- wait_for_trigger: | |
- trigger: event | |
event_type: zha_event | |
event_data: | |
command: !input action | |
device_id: !input device_id | |
timeout: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
continue_on_timeout: false | |
- sequence: !input quintuple_press_action |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment