ZWave-JS - Inovelli LZW31-SN Red-Series Dimmer

Yes, just those lines. The lines in the section above defining the variables are needed for the blueprint to function. The lines in the second section for logbook entries are not required for the blueprint to function, so I just took them out.

1 Like

Thanks for the clarification. I just hashed out those three sections and restarted HA, but I am still seeing the “Template variable warning: ‘zwave_device’ is undefined when rendering '{{ zwave_device }}” warning in my logs.

Any other ideas for what else needs to be done to resolve or at least isolate what’s causing it?

@jerelabs doesn’t look like he has been around in a while, so I took the code and threw in my own github and created an import button since I’ve been sharing this so much:

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

Let me know if there are issues, and please @ me if there are changes to the original code and I’d be more than happy to update.

How do you create one automation for this to handle all switches? I have this as my automation, but want it to do this for all switches:

alias: New Automation
description: ''
use_blueprint:
  path: mikemsd/inovelli_red_on_off_or_dimmer_scenes_zwavejs.yaml
  input:
    inovelli_switch: 720e80ad78f16ed5453fd5b8a702108c
    up_x2_action:
      - type: turn_on
        device_id: 720e80ad78f16ed5453fd5b8a702108c
        entity_id: light.upstairs_living_room
        domain: light

This blueprint wouldn’t work for this. You would need individual automations per switch.

My recommendation is to listen to the zwave_js_value_notification events and find the common filters that you can specify in the event data. You need to narrow it down to the event data that only the Inovelli’s would produce.

Also, Node Red would be an excellent solution for your use case, just saying.

I agree about Node Red - that’s how I manage all my Inovelli scenes and atuomations. Here’s a sample flow you can import and change - you just need to add call service nodes to trigger what you want to happen with the various taps/scenes.

[{"id":"925ec5e7ea994e90","type":"server-events","z":"65d4f7b6aa8e19da","name":"Zwave Events Other","server":"","version":1,"event_type":"zwave_js_value_notification","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"$outputData(\"eventData\").event_type","valueType":"jsonata"},{"property":"event_type","propertyType":"msg","value":"$outputData(\"eventData\").event_type","valueType":"jsonata"}],"x":150,"y":840,"wires":[["c7e3a081298c2954","3250fbc1292efa9d"]]},{"id":"3250fbc1292efa9d","type":"switch","z":"65d4f7b6aa8e19da","name":"Node 51","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"51","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":340,"y":740,"wires":[["7ca5291a9184514e","70e71f3c24268bb8","83d36c8829db740a"]]},{"id":"c7e3a081298c2954","type":"switch","z":"65d4f7b6aa8e19da","name":"Node 17","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"17","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":340,"y":900,"wires":[["f5656230529ce5d1"]]},{"id":"f5656230529ce5d1","type":"switch","z":"65d4f7b6aa8e19da","name":"Up or down?","property":"payload.event.property_key","propertyType":"msg","rules":[{"t":"eq","v":"001","vt":"str"},{"t":"eq","v":"002","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":900,"wires":[["57244fa9dea23322"],["06f89851c5152dc2","c22bc49a4786b11a"]]},{"id":"57244fa9dea23322","type":"switch","z":"65d4f7b6aa8e19da","name":"Taps?","property":"payload.event.value","propertyType":"msg","rules":[{"t":"eq","v":"KeyPressed3x","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":900,"wires":[[]]},{"id":"06f89851c5152dc2","type":"switch","z":"65d4f7b6aa8e19da","name":"Taps?","property":"payload.event.value","propertyType":"msg","rules":[{"t":"eq","v":"KeyPressed3x","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":960,"wires":[[]]},{"id":"c22bc49a4786b11a","type":"switch","z":"65d4f7b6aa8e19da","name":"Hold Down","property":"payload.event.value","propertyType":"msg","rules":[{"t":"eq","v":"KeyHeldDown","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":1020,"wires":[[]]},{"id":"930a78d960e1259e","type":"switch","z":"65d4f7b6aa8e19da","name":"Taps?","property":"payload.event.value","propertyType":"msg","rules":[{"t":"eq","v":"KeyPressed","vt":"str"},{"t":"eq","v":"KeyPressed2x","vt":"str"},{"t":"eq","v":"KeyPressed3x","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":750,"y":820,"wires":[[],[],[]]},{"id":"e4f592937c3fc17e","type":"switch","z":"65d4f7b6aa8e19da","name":"Taps?","property":"payload.event.value","propertyType":"msg","rules":[{"t":"eq","v":"KeyPressed","vt":"str"},{"t":"eq","v":"KeyPressed2x","vt":"str"},{"t":"eq","v":"KeyPressed3x","vt":"str"},{"t":"eq","v":"KeyPressed4x","vt":"str"},{"t":"eq","v":"KeyPressed5x","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":770,"y":740,"wires":[[],[],[],[],[]]},{"id":"70e71f3c24268bb8","type":"switch","z":"65d4f7b6aa8e19da","name":"Scene Down","property":"payload.event.property_key","propertyType":"msg","rules":[{"t":"eq","v":"001","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":570,"y":800,"wires":[["930a78d960e1259e"]]},{"id":"7ca5291a9184514e","type":"switch","z":"65d4f7b6aa8e19da","name":"Scene Up","property":"payload.event.property_key","propertyType":"msg","rules":[{"t":"eq","v":"002","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":560,"y":740,"wires":[["e4f592937c3fc17e"]]},{"id":"83d36c8829db740a","type":"switch","z":"65d4f7b6aa8e19da","name":"Scene Button","property":"payload.event.property_key","propertyType":"msg","rules":[{"t":"eq","v":"003","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":580,"y":700,"wires":[[]]}]

I would also checkout this Node Red Palette for additional functions for the Inovelli Switches in Node Red

The automation “Inovelli Multiswitch” (automation.inovelli_multiswitch ) has an action that calls an unknown service: logbook.log .

Any chance the code will get updated to fix this issue? I tried commenting out sections like @SSinSD recommended without luck. Help? :slight_smile:

This works on my installation without error. Perhaps you don’t have recorder and/or logbook enabled/turned on?

would this blueprint work with the blue series?

Is this still working for everyone? I’m on 2022.12.x and just tried this (and the other one shared in the thread) and it triggers all the button presses every time i activate a scene.

So for example I have it set to press down 3 times is turn off all lights and press up twice is turn on all lights, and if i press up twice it runs both automations. When I had 3 automations, it ran all 3, every time. yes i have logbook and recorder enabled.

I don’t see how this wouldn’t work for you. Updating to 2022.12 shouldn’t impact anything either. I’m on 2022.12 and the events are still the same (not using this, but I looked at the code and it will work).

I just wanted to say thanks for creating and sharing this, it’s brilliantly simple to get my Red Series dimmers to do what I want.

I have created a blueprint for the brand new 800 Series Dimmer, VZW31-SN. I have enabled the Aux Switch Scenes configuration option, and use a White Series aux switch with separate scene controls.

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

1 Like