Skip to content

Instantly share code, notes, and snippets.

@billyjacoby
Created July 23, 2021 20:58
Show Gist options
  • Save billyjacoby/12f013450f1606cbac002f713d92223c to your computer and use it in GitHub Desktop.
Save billyjacoby/12f013450f1606cbac002f713d92223c to your computer and use it in GitHub Desktop.
Inovelli LZW30-SN ZwaveJS Blueprint
blueprint:
name: Inovelli Red Series LZW30-SN Switch (ZWave-JS)
description: Create automations for the Inovelli Red Series LZW30-SN Switch using the ZWave-JS integration.
domain: automation
input:
zwave_device:
name: Inovelli Switch
description: "List of available inovelli LZW30-SN switch."
selector:
device:
integration: zwave_js
manufacturer: Inovelli
## Config Press 1 time
config_button:
name: Button C - Config press 1x
description: "Action to run, when the config button is pressed one time."
default: []
selector:
action:
### Up Button Actions###
## Paddle Press 1 time
button_a:
name: Button A - Up/On press 1x
description: "Action to run, when the button is pressed one time."
default: []
selector:
action:
## Paddle Press 2 times
button_a2:
name: Button A - Up/On press 2x
description: "Action to run, when the button is pressed two times."
default: []
selector:
action:
## Paddle Press 3 times
button_a3:
name: Button A - Up/On press 3x
description: "Action to run, when the button is pressed three times."
default: []
selector:
action:
## Paddle Press 4 times
button_a4:
name: Button A - Up/On press 4x
description: "Action to run, when the button is pressed four times."
default: []
selector:
action:
## Paddle Press 5 times
button_a5:
name: Button A - Up/On press 5x
description: "Action to run, when the button is pressed five times."
default: []
selector:
action:
## Paddle Hold
button_a6:
name: Button A - Up/On Hold
description: "Action to run, when the button is held down."
default: []
selector:
action:
### Down Button Actions ###
## Paddle Press 1 time
button_b:
name: Button B - Down/Off press 1x
description: "Action to run, when the button is pressed one time."
default: []
selector:
action:
## Paddle Press 2 times
button_b2:
name: Button B - Down/Off press 2x
description: "Action to run, when the button is pressed two times."
default: []
selector:
action:
## Paddle Press 3 times
button_b3:
name: Button B - Down/Off press 3x
description: "Action to run, when the button is pressed three times."
default: []
selector:
action:
## Paddle Press 4 times
button_b4:
name: Button B - Down/Off press 4x
description: "Action to run, when the button is pressed four times."
default: []
selector:
action:
## Paddle Press 5 times
button_b5:
name: Button B - Down/Off press 5x
description: "Action to run, when the button is pressed five times."
default: []
selector:
action:
## Paddle Hold
button_b6:
name: Button B - Down/Off Hold
description: "Action to run, when the button is held down."
default: []
selector:
action:
mode: single
max_exceeded: silent
variables:
device_id: !input zwave_device
trigger:
- platform: event
event_type: zwave_js_value_notification
condition: "{{ trigger.event.data.device_id == 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 }}"
- service: "logbook.log"
data:
name: "Device"
message: "{{ zwave_device }}"
- choose:
- conditions: '{{ button_id == "003" and press_count == "KeyPressed" }}'
sequence: !input config_button
- conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
sequence: !input button_a
- conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
sequence: !input button_b
- conditions: '{{ button_id == "002" and press_count == "KeyPressed2x" }}'
sequence: !input button_a2
- conditions: '{{ button_id == "001" and press_count == "KeyPressed2x" }}'
sequence: !input button_b2
- conditions: '{{ button_id == "002" and press_count == "KeyPressed3x" }}'
sequence: !input button_a3
- conditions: '{{ button_id == "001" and press_count == "KeyPressed3x" }}'
sequence: !input button_b3
- conditions: '{{ button_id == "002" and press_count == "KeyPressed4x" }}'
sequence: !input button_a4
- conditions: '{{ button_id == "001" and press_count == "KeyPressed4x" }}'
sequence: !input button_b4
- conditions: '{{ button_id == "002" and press_count == "KeyPressed5x" }}'
sequence: !input button_a5
- conditions: '{{ button_id == "001" and press_count == "KeyPressed5x" }}'
sequence: !input button_b5
- conditions: '{{ button_id == "002" and press_count == "KeyHeldDown" }}'
sequence: !input button_a6
- conditions: '{{ button_id == "001" and press_count == "KeyHeldDown" }}'
sequence: !input button_b6
@evanbuschor
Copy link

any feedback on how to use this? I'm running home assistant and have the switch added via z wave but Have no idea how to use it.

@billyjacoby
Copy link
Author

This is the blueprint in order to setup automations for the switch. You can import this file to a blueprint in order to use it.

Where are you getting hung up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment