Zwave_js - Nodon (ID-RF) CWS-3101 Wall Switch

Blueprint for Nodon (ID-RF) CWS-3101 Wall Switch

Button Action
Button 1 (short) User defined action
Button 2 (short) User defined action
Button 3 (short) User defined action
Button 4 (short) User defined action
Button1 (long) User defined action
Button2 (long) User defined action
Button3 (long) User defined action
Button4 (long) User defined action
Button1 (double) User defined action
Button2 (double) User defined action
Button3 (double) User defined action
Button4 (double) User defined action

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

blueprint:
  name: Nodon (ID-RF) CWS-3101 Wall Switch
  description: Blueprint for the Nodon (ID-RF) CWS-3101 Wall Switch using the zwave_js integration.
  domain: automation
  input:
    nodon_wall_switch:
      name: Nodon (ID-RF) CWS-3101 Wall Switch
      description: List of available CWS-3101 Wall Switch remotes to configure. This list
        is only a reference. At this time, it is not possible to obtain the node's
        id using the device selector.
      selector:
        device:
          integration: zwave_js
          manufacturer: ID-RF
          model: CWS-3101
    press_button_1:
      name: Press Button One
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    press_button_2:
      name: Press Button Two
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    press_button_3:
      name: Press Button Three
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    press_button_4:
      name: Press Button Four
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    double_press_button_1:
      name: Double Press Button One
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    double_press_button_2:
      name: Double Press Button Two
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    double_press_button_3:
      name: Double Press Button Three
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    double_press_button_4:
      name: Double Press Button Four
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    long_press_button_1:
      name: Long Press Button One
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    long_press_button_2:
      name: Long Press Button Two
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    long_press_button_3:
      name: Long Press Button Four
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    long_press_button_4:
      name: Long Press Button Four
      description: Action to run on button press.
      default: []
      selector:
        action: {}
mode: single
max_exceeded: silent
variables:
  device_id: !input 'nodon_wall_switch'
trigger:
- platform: event
  event_type: zwave_js_value_notification
condition: '{{ trigger.event.data.device_id == device_id }}'
action:
- variables:
    scene_id: '{{ trigger.event.data.value }}'
- choose:
  - conditions: '{{ scene_id == 10 }}'
    sequence: !input 'press_button_1'
  - conditions: '{{ scene_id == 20 }}'
    sequence: !input 'press_button_2'
  - conditions: '{{ scene_id == 30 }}'
    sequence: !input 'press_button_3'
  - conditions: '{{ scene_id == 40 }}'
    sequence: !input 'press_button_4'
  - conditions: '{{ scene_id == 13 }}'
    sequence: !input 'double_press_button_1'
  - conditions: '{{ scene_id == 23 }}'
    sequence: !input 'double_press_button_2'
  - conditions: '{{ scene_id == 33 }}'
    sequence: !input 'double_press_button_3'
  - conditions: '{{ scene_id == 43 }}'
    sequence: !input 'double_press_button_4'
  - conditions: '{{ scene_id == 12 }}'
    sequence: !input 'long_press_button_1'
  - conditions: '{{ scene_id == 22 }}'
    sequence: !input 'long_press_button_2'
  - conditions: '{{ scene_id == 32 }}'
    sequence: !input 'long_press_button_3'
  - conditions: '{{ scene_id == 42 }}'
    sequence: !input 'long_press_button_4'

Any ide why I get this error message:
Error while executing automation automation.veggbryter_knapp3: UndefinedError: ‘dict object’ has no attribute ‘event’

Automation:

  mode: single
- id: '1644347842727'
  alias: Veggbryter knapp3
  description: Turn off fan
  use_blueprint:
    path: royto/zwave-js-nodon-id-rf-cws-3101-wall-switch.yaml
    input:
      press_button_3:
      - type: turn_off
        device_id: ea8367787ba810b98358f7e154e2aeaf
        entity_id: light.baderomsvifte_2
        domain: light
      nodon_wall_switch: 9cee0045979cfd7bb0c0b4f37da51694

Hi @Roffee

what is type: turn_off ?? Do you want to call a service ? Did you do it with the UI ?

can you try with

press_button_3:
- service: light.turn_off
  target:
    entity_id: light.baderomsvifte_2

“type: turn_off” was generated from the UI.

Anyway, I changed the configuration for the Wall Switch, parameter 3 Scene type, from Central Scene to Scene Activation, and now your blueprint performs as (I) expected.

Thank you for the blueprint! :slight_smile: