Skip to content

Instantly share code, notes, and snippets.

@victorlin
Last active May 24, 2026 06:38
Show Gist options
  • Select an option

  • Save victorlin/fdcf1de16f4e30e53ec3f7aba573b981 to your computer and use it in GitHub Desktop.

Select an option

Save victorlin/fdcf1de16f4e30e53ec3f7aba573b981 to your computer and use it in GitHub Desktop.
blueprint:
name: Enbrighten 800 Series Z-Wave On/Off Paddle Switch
domain: automation
input:
zwave_device:
name: Switch
selector:
device:
integration: zwave_js
hue_target:
name: Hue target
description: Hue light, room, or zone target to control.
selector:
target:
entity:
domain: light
tap_2x_up:
name: Tap 2x Up
description: Action to run when Up button is pressed 2 times.
default: []
selector:
action:
tap_2x_down:
name: Tap 2x Down
description: Action to run when Down button is pressed 2 times.
default: []
selector:
action:
tap_3x_up:
name: Tap 3x Up
description: Action to run when Up button is pressed 3 times.
default: []
selector:
action:
tap_3x_down:
name: Tap 3x Down
description: Action to run when Down button is pressed 3 times.
default: []
selector:
action:
mode: single
max_exceeded: silent
variables:
device_id: !input zwave_device
trigger:
- platform: event
event_type: zwave_js_value_notification
condition:
- condition: template
value_template: "{{ trigger.event.data.device_id == device_id }}"
action:
- variables:
button_id: "{{ trigger.event.data.property_key_name }}"
press_value: "{{ trigger.event.data.value }}"
- choose:
- conditions: "{{ button_id == '001' and press_value == 'KeyPressed' }}"
sequence:
- action: light.turn_on
target: !input hue_target
- conditions: "{{ button_id == '002' and press_value == 'KeyPressed' }}"
sequence:
- action: light.turn_off
target: !input hue_target
- conditions: "{{ button_id == '001' and press_value == 'KeyHeldDown' }}"
sequence:
- action: hue_dimmer.raise
target: !input hue_target
- conditions: "{{ button_id == '002' and press_value == 'KeyHeldDown' }}"
sequence:
- action: hue_dimmer.lower
target: !input hue_target
- conditions: "{{ button_id in ['001', '002'] and press_value == 'KeyReleased' }}"
sequence:
- action: hue_dimmer.stop
target: !input hue_target
# extras
- conditions: "{{ button_id == '001' and press_value == 'KeyPressed2x' }}"
sequence: !input 'tap_2x_up'
- conditions: "{{ button_id == '002' and press_value == 'KeyPressed2x' }}"
sequence: !input 'tap_2x_down'
- conditions: "{{ button_id == '001' and press_value == 'KeyPressed3x' }}"
sequence: !input 'tap_3x_up'
- conditions: "{{ button_id == '002' and press_value == 'KeyPressed3x' }}"
sequence: !input 'tap_3x_down'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment