Last active
May 26, 2025 04:15
-
-
Save MattJeanes/582f776952681edefbe7ed30d18007dd to your computer and use it in GitHub Desktop.
Home Assistant automation for Zigbee2MQTT joined Hue dimmer switches which are bound directly to the lights but still want to use the double/triple/etc presses
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: Zigbee2MQTT Hue Dimmer Switch | |
description: Allow extra functions for a directly bound Hue Dimmer Switch | |
domain: automation | |
input: | |
device_id: | |
name: Device | |
description: Hue Dimmer Switch | |
selector: | |
device: | |
filter: | |
integration: mqtt | |
manufacturer: Philips | |
action: | |
name: Action | |
description: Event Action | |
default: "on" | |
selector: | |
select: | |
options: ["on_press_release", "off_press_release"] | |
single_press_action: | |
name: Single Press Action | |
description: Action to run when the button is single pressed | |
default: [] | |
selector: | |
action: {} | |
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: device | |
domain: mqtt | |
device_id: !input device_id | |
type: action | |
subtype: !input action | |
actions: | |
- sequence: !input single_press_action | |
- wait_for_trigger: | |
- trigger: device | |
domain: mqtt | |
device_id: !input device_id | |
type: action | |
subtype: !input action | |
timeout: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
continue_on_timeout: false | |
- sequence: !input double_press_action | |
- wait_for_trigger: | |
- trigger: device | |
domain: mqtt | |
device_id: !input device_id | |
type: action | |
subtype: !input action | |
timeout: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
continue_on_timeout: false | |
- sequence: !input triple_press_action | |
- wait_for_trigger: | |
- trigger: device | |
domain: mqtt | |
device_id: !input device_id | |
type: action | |
subtype: !input action | |
timeout: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
milliseconds: 0 | |
continue_on_timeout: false | |
- sequence: !input quadruple_press_action | |
- wait_for_trigger: | |
- trigger: device | |
domain: mqtt | |
device_id: !input device_id | |
type: action | |
subtype: !input action | |
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