This is a blueprint for triggering actions based on presses of the On/Off buttons of the Z-Wave Plus 700/800 Series S2 Dimmer Switch (Zen77) using the ZWave-JS Integration.
UPDATE: Added 800 series as well
UPDATE 7/12/2024: Added all zen 71/72/76/77 switches of both 700 and 800LR variety. Changed to allow for multiple selections.
blueprint:
name: Z-Wave Plus 700/800 Series S2 ZEN 71/72/76/77 Switches
description: Create automations for the Z-Wave Plus 700/800 Series S2 Switches Zen71/Zen72/Zen76/Zen77
domain: automation
input:
zooz-switch:
name: Zen71/72/76/77 Switch/Dimmer
description: List of applicable Zen switches/dimmers.
selector:
device:
multiple: true
filter:
- integration: zwave_js
manufacturer: Zooz
model: ZEN77
- integration: zwave_js
manufacturer: Zooz
model: ZEN76
- integration: zwave_js
manufacturer: Zooz
model: ZEN77 800LR
- integration: zwave_js
manufacturer: Zooz
model: ZEN76 800LR
- integration: zwave_js
manufacturer: Zooz
model: ZEN71 800LR
- integration: zwave_js
manufacturer: Zooz
model: ZEN72 800LR
- integration: zwave_js
manufacturer: Zooz
model: ZEN71
- integration: zwave_js
manufacturer: Zooz
model: ZEN72
button_a:
name: Button A - Up/On press 1x
description: Action to run, when the button is pressed one time.
default: []
selector:
action: {}
button_a2:
name: Button A - Up/On press 2x
description: Action to run, when the button is pressed two times.
default: []
selector:
action: {}
button_a3:
name: Button A - Up/On press 3x
description: Action to run, when the button is pressed two times.
default: []
selector:
action: {}
button_a4:
name: Button A - Up/On press 4x
description: Action to run, when the button is pressed four times.
default: []
selector:
action: {}
button_a5:
name: Button A - Up/On press 5x
description: Action to run, when the button is pressed five times.
default: []
selector:
action: {}
button_a_held:
name: Button A - Up/On held down
description: Action to run, when the button is held down.
default: []
selector:
action: {}
button_b:
name: Button B - Down/Off press 1x
description: Action to run, when the button is pressed one time.
default: []
selector:
action: {}
button_b2:
name: Button B - Down/Off press 2x
description: Action to run, when the button is pressed two times.
default: []
selector:
action: {}
button_b3:
name: Button B - Down/Off press 3x
description: Action to run, when the button is pressed two times.
default: []
selector:
action: {}
button_b4:
name: Button B - Down/Off press 4x
description: Action to run, when the button is pressed four times.
default: []
selector:
action: {}
button_b5:
name: Button B - Down/Off press 5x
description: Action to run, when the button is pressed five times.
default: []
selector:
action: {}
button_b_held:
name: Button B - Down/Off held down
description: Action to run, when the button is held down.
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/z-wave-plus-700-800-series-s2-zen-71-72-76-77-switches/414382
mode: single
max_exceeded: silent
variables:
device_id: !input 'zooz-switch'
trigger:
- platform: event
event_type: zwave_js_value_notification
condition: '{{ trigger.event.data.device_id in device_id }}'
action:
- variables:
button_id: '{{ trigger.event.data.property_key_name }}'
press_count: '{{ trigger.event.data.value }}'
- service: logbook.log
data:
name: Button Id
message: '{{ button_id }}'
- service: logbook.log
data:
name: Press Count
message: '{{ press_count }}'
- choose:
- conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
sequence: !input 'button_a'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed2x" }}'
sequence: !input 'button_a2'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed3x" }}'
sequence: !input 'button_a3'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed4x" }}'
sequence: !input 'button_a4'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed5x" }}'
sequence: !input 'button_a5'
- conditions: '{{ button_id == "001" and press_count == "KeyHeldDown" }}'
sequence: !input 'button_a_held'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
sequence: !input 'button_b'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed2x" }}'
sequence: !input 'button_b2'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed3x" }}'
sequence: !input 'button_b3'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed4x" }}'
sequence: !input 'button_b4'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed5x" }}'
sequence: !input 'button_b5'
- conditions: '{{ button_id == "002" and press_count == "KeyHeldDown" }}'
sequence: !input 'button_b_held'