Zooz ZEN51 Relay Scene Automation using Z-Wave JS

This is a blueprint to easily configure actions triggered by activating the switch input of the Zooz ZEN51 Dry Contact Relay.

The scene control option must be enabled (Parameter 5: Value:1).

The input can be pressed from 1x to 5x as well as input hold and release.

I am using it with a momentary push button, i’m not sure what the results will be with other types of switches.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

blueprint:
  name: Zooz Zen51 Scene Control Setup
  description: Create an automation for the Zooz Zen51 relay using ZWAVE-JS
    integration
  domain: automation
  input:
    zooz_zen51:
      name: Zooz Zen51
      description: The Zooz Zen51 to interact with.
      selector:
        device:
          integration: zwave_js
          manufacturer: Zooz
          model: ZEN51
          multiple: false
    button_1_1:
      name: Press Button 1x
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_1_2:
      name: Press Button 2x
      description: Action to run on 2 button presses.
      default: []
      selector:
        action: {}
    button_1_3:
      name: Press Button 3x
      description: Action to run on 3 button presses.
      default: []
      selector:
        action: {}
    button_1_4:
      name: Press Button 4x
      description: Action to run on 4 button presses.
      default: []
      selector:
        action: {}
    button_1_5:
      name: Press Button 5x
      description: Action to run on 5 button presses.
      default: []
      selector:
        action: {}
    button_1_held:
      name: Hold Button
      description: Action to run on button hold.
      default: []
      selector:
        action: {}
    button_1_released:
      name: Release Button
      description: Action to run on button release.
      default: []
      selector:
        action: {}

mode: single
max_exceeded: silent
trigger:
  platform: event
  event_type: zwave_js_value_notification
  event_data:
    command_class_name: Central Scene
    device_id: !input zooz_zen51
action:
- variables:
    scene_id: '{{ trigger.event.data.property_key_name }}'
    scene_value_id: '{{ trigger.event.data.value }}'
- choose:
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyPressed'' }}'
    sequence: !input button_1_1
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyPressed2x'' }}'
    sequence: !input button_1_2
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyPressed3x'' }}'
    sequence: !input button_1_3
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyPressed4x'' }}'
    sequence: !input button_1_4
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyPressed5x'' }}'
    sequence: !input button_1_5
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyHeldDown'' }}'
    sequence: !input button_1_held
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyReleased'' }}'
    sequence: !input button_1_released