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 |
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'