Red Series KeyPress to trigger in Home Assistant (or Node-Red) not working :-(

I have the Red Series Dimmer and have triggered a red flashing led for a few things. I want to be able to turn off the red flashing led by using a specific keypress. I have been trying to implement 3 down keypresses. But nothing seems to work. I have implemented a few blueprints as I have zwave js as the device but no luck. The last blueprint I used was this one, Inovelli LZW30-SN ZwaveJS Blueprint · GitHub

Everything else I do in home assistant regarding the red series dimmer works fine. This is different as the Red Series Dimmer is the “trigger”.

I decided to see if Node-Red could help troubleshoot we is captured from the switch if I press down once, or twice or 3 times… This is what the Node-Red debug captures for 1 key press or 2 key presses or 3 key presses, only the id, msgid and timestamp change:
{“payload”:{“event_type”:“zwave_js_value_notification”,“event”:{“domain”:“zwave_js”,“node_id”:7,“home_id”:3225786538,“endpoint”:0,“device_id”:“778a037a7c477abafd3c10d9f0729293”,“command_class”:91,“command_class_name”:“Central Scene”,“label”:“Scene 001”,“property”:“scene”,“property_name”:“scene”,“property_key”:“001”,“property_key_name”:“001”,“value”:“KeyPressed”,“value_raw”:0},“origin”:“LOCAL”,“time_fired”:“2022-03-16T00:56:43.122611+00:00”,“context”:{“id”:“ce7498a75d1b795d9447136507050d25”,“parent_id”:null,“user_id”:null}},“topic”:“zwave_js_value_notification”,"_msgid":“f85dae0de8bd0e8a”}

I have been trying and trying and searching and searchng. I have noticed there seems to be help here. Please help.

Thanks,
Jim

It’s very simple to do in node-red. You use an Events:All node listening to zwave_js_value_notification
Tie that into node-red-contrib-ha-inovelli-manager (node) - Node-RED (nodered.org)
Use the inovelli-scene-manager node and entire your node ID from zwavejs

Here’s a working example flow you can import, it should get you started.

[{"id":"a3280ba57fe762b5","type":"server-events","z":"bbb96bca14b8dfc5","name":"Zwave JS","server":"94fdcfdf.a00b","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":600,"y":200,"wires":[["ac4b82137fcea57d"]]},{"id":"ac4b82137fcea57d","type":"inovelli-scene-manager","z":"bbb96bca14b8dfc5","name":"Front Theatre Lights","nodeid":"59","zwave":"zwave_js","switchtype":"LZW31","outputs":15,"labels":["Tap Up on Light Paddle 1x","Tap Up on Light Paddle 2x","Tap Up on Light Paddle 3x","Tap Up on Light Paddle 4x","Tap Up on Light Paddle 5x","Hold Up on Light Paddle","Release Up on Light Paddle","Tap Down on Light Paddle 1x","Tap Down on Light Paddle 2x","Tap Down on Light Paddle 3x","Tap Down on Light Paddle 4x","Tap Down on Light Paddle 5x","Hold Down on Light Paddle","Release Down on Light Paddle","Tap Config Button 1x"],"x":820,"y":200,"wires":[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]},{"id":"94fdcfdf.a00b","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Thank you for this. I added the node-red-contrib-ha-inovelli-manager nodes to my palette (I am discovering a whole new world there!).
But, (there’s always a butt) I did this:
https://imgur.com/a/g8tGquG

Tapping the paddle three times, yields this from the first debug and nothing from the second debug:

object
payload: object
event_type: "zwave_js_value_notification"
entity_id: undefined
event: object
domain: "zwave_js"
node_id: 7
home_id: 3225786538
endpoint: 0
device_id: "778a037a7c477abafd3c10d9f0729293"
command_class: 91
command_class_name: "Central Scene"
label: "Scene 001"
property: "scene"
property_name: "scene"
property_key: "001"
property_key_name: "001"
value: "KeyPressed"
value_raw: 0
origin: "LOCAL"
time_fired: "2022-03-16T13:18:42.904215+00:00"
context: object
id: "85c952291eb3de4e6dc17f7b7688f5b4"
parent_id: null
user_id: null
topic: "zwave_js_value_notification"
_msgid: "f6abecb741921143"

So, I am closer but still… no luck.

Check the switch configuration. You need the scenes enabled and a long enough delay for you to tap multiple times. I believe parameter 50 and 51 for this.

Thanks PJF

Parameter 50 shows: 7 <up/down arrow> 100 ms
Parameter 51 shows: Disabled switch

Should I change those?

I think 50 needs to be enabled. You should notice a time delay between when you click the paddle and when something actually happens any time you turn it on or off. If you don’t, then it’s not set up right.

Parameter 51 needs to be “1”. Not sure w/HA, but “Disabled Switch” suggests “0” to me. If 51 is 0, then you won’t have any delay regardless of the interval set via 50 and scenes won’t be sent.

What you’re seeing in that debug message is a single click.

Parameter 50: 7 is a good starting point here. Personally I find 4 to be about the sweet spot that everybody can click it fast enough to trigger the multi-tap but it reacts fast enough to minimize the delay. You’ll want to play with this in your household
Parameter 51: This needs to be set to [1] Enabled

Based on the feedback here some things have changed for the better. I can now see a Keypressed3x… so that is a leap ahead. That did have do with parameters 50 and 51. I changed to 400 ms and On. But… see this pic for the whole config: https://i.imgur.com/farpxe5.png I get nothing out of that Inovelli scene manager node.

Your scene-manager node is coming out slightly different than mine.

Capture

If you look at your events:all debug, you’ll see the entity_id is blank. This is because zwavejs doesn’t have a concept of what the home assistant entity is named. But you’ll see you have node_id: 7. But what I’m not sure of is why you don’t have the node_id option in the node settings.

EDIT: I see it now. Uncheck Node ID passthrough, this will bring back the Node ID option. Clear out the Entity ID field and put in the number 7 in the Node ID field and you should be good to go.

You’re also going to run into an API error on your color change. Your call service node should be setup as follows
Name: Whatever you want here
Server: Home Assistant
EVERYTHING ELSE BLANK.
The inovelli node will setup the call service node for you when it sends the message. I also recommend using multicast if you’re going to have it change the color on multiple inovelli switches, it’s significantly faster since it will send to all of them at the same time instead of in sequence.

I removed the passthrough, cleared out the Entity ID field, and put the number 7 in the Node ID field in the Inovelli Scene Manager node. I then deleted the connections to the Call Service node and added a new Call Service node. I left everything else blank except the server. I then connected the newly added call service node where the old one was. I then deployed it. Unfortunately, the behavior is no different.
I have a question that might help me troubleshoot and this will expose my lack of experience on NodeRed. I am wondering if I should see a separate debug message for each exit node. It seems that the only node that has a debug message exiting is the first one. I then get nothing from each shape. I was thinking this was helping me understand and troubleshoot, buy maybe that assumption is incorrection.
I appreciate all the help thus far. I am hoping to continue to try to get this to work. Tenacity is the key word for me here.

Take a look at this one. One click on the config button and the led flashes yellow for 8 seconds and then flashes red unless the “wait until” happens and then it immediately flashes green. Basically, it can be used to show you if the scene worked or if it timed out and failed. There is no action attached, but that is T’d off the scene manager node in paralled to this one.

edit - see my next post for flow

I’ve recreated what you’re trying to do. Import this and give it a try

[{"id":"7dd7138c278c75a5","type":"inovelli-scene-manager","z":"bbb96bca14b8dfc5","name":"Node 7","nodeid":"7","entityid":"","zwave":"zwave_js","switchtype":"LZW31","outputs":15,"labels":["Tap Up on Light Paddle 1x","Tap Up on Light Paddle 2x","Tap Up on Light Paddle 3x","Tap Up on Light Paddle 4x","Tap Up on Light Paddle 5x","Hold Up on Light Paddle","Release Up on Light Paddle","Tap Down on Light Paddle 1x","Tap Down on Light Paddle 2x","Tap Down on Light Paddle 3x","Tap Down on Light Paddle 4x","Tap Down on Light Paddle 5x","Hold Down on Light Paddle","Release Down on Light Paddle","Tap Config Button"],"passthrough":false,"x":760,"y":200,"wires":[[],[],[],[],[],[],[],[],[],["666a8903529e0196"],[],[],[],[],[]]},{"id":"91f501256a6352d9","type":"server-events","z":"bbb96bca14b8dfc5","name":"Zwave JS","server":"94fdcfdf.a00b","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":580,"y":200,"wires":[["7dd7138c278c75a5"]]},{"id":"666a8903529e0196","type":"inovelli-led-manager","z":"bbb96bca14b8dfc5","name":"Change LED Color","zwave":"zwave_js","nodeid":"","entityid":"light.red_series_dimmer","switchtype":"13","color":"170","brightness":5,"brightnessOff":1,"fanColor":180,"fanBrightness":5,"fanBrightnessOff":1,"toggleColor":true,"toggleBrightness":true,"toggleBrightnessOff":true,"toggleFanColor":false,"toggleFanBrightness":false,"toggleFanBrightnessOff":false,"multicast":true,"x":990,"y":220,"wires":[["b56d1e373438683e"]]},{"id":"b56d1e373438683e","type":"api-call-service","z":"bbb96bca14b8dfc5","name":"Send Command","server":"94fdcfdf.a00b","version":3,"debugenabled":false,"service_domain":"","service":"","entityId":"","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1200,"y":220,"wires":[["4b60f95c3308bd6a"]]},{"id":"4b60f95c3308bd6a","type":"debug","z":"bbb96bca14b8dfc5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1370,"y":220,"wires":[]},{"id":"94fdcfdf.a00b","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

And with where you have your debug nodes attached, yes you should be seeing messages as it passes through each node.

@PJF Try putting your code inside the perforated text. There’s something off with the formatting there that makes it so it can’t be imported.

I imported it and I added debug nodes for each node. I still get the same behavior, one message leaves that first all events node, and nothing after that. I configure the debug node the same way you did for that last node.
I wonder why nothing gets by that Inovelli Scene Manager node. Frustrated… but … I cannot stop working on this.

[{"id":"7917a999078f0d61","type":"ha-wait-until","z":"b7d3135b.19a8d","name":"","server":"138d84a1.551e2b","version":0,"outputs":2,"entityId":"light.kitchen_flood_lights","entityIdFilterType":"exact","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"8","timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":638,"y":466,"wires":[["0e0c71dcbd9bb12f"],["7f5e8f60376fb6a2"]],"outputLabels":["True",""]},{"id":"902575fe2689e4cb","type":"inovelli-scene-manager","z":"b7d3135b.19a8d","name":"","nodeid":"light.kitchen_pot_lights","zwave":"zwave_js","switchtype":"LZW31","outputs":15,"labels":["Tap Up on Light Paddle 1x","Tap Up on Light Paddle 2x","Tap Up on Light Paddle 3x","Tap Up on Light Paddle 4x","Tap Up on Light Paddle 5x","Hold Up on Light Paddle","Release Up on Light Paddle","Tap Down on Light Paddle 1x","Tap Down on Light Paddle 2x","Tap Down on Light Paddle 3x","Tap Down on Light Paddle 4x","Tap Down on Light Paddle 5x","Hold Down on Light Paddle","Release Down on Light Paddle","Tap Config Button"],"passthrough":true,"x":567,"y":285,"wires":[[],[],[],[],[],[],[],[],[],[],[],[],[],[],["ece19f7fdd33133a"]]},{"id":"ece19f7fdd33133a","type":"inovelli-notification-manager","z":"b7d3135b.19a8d","name":"flash yellow","nodeid":"","entityid":"light.kitchen_pot_lights","zwave":"zwave_js","color":"60","brightness":5,"duration":"8","effect":"3","switchtype":"16","clear":false,"multicast":false,"x":338.5,"y":489,"wires":[["3702788433ba922d"]]},{"id":"7f5e8f60376fb6a2","type":"inovelli-notification-manager","z":"b7d3135b.19a8d","name":"flash red","nodeid":"","entityid":"light.kitchen_pot_lights","zwave":"zwave_js","color":"352","brightness":5,"duration":"2","effect":"3","switchtype":"16","clear":false,"multicast":false,"x":852.5,"y":469,"wires":[["13cc8b58a59d48fc"]]},{"id":"0e0c71dcbd9bb12f","type":"inovelli-notification-manager","z":"b7d3135b.19a8d","name":"flash green","nodeid":"","entityid":"light.kitchen_pot_lights","zwave":"zwave_js","color":"129","brightness":5,"duration":"2","effect":"3","switchtype":"16","clear":false,"multicast":false,"x":851.5,"y":412,"wires":[["39f9d07b1444491a"]]},{"id":"13cc8b58a59d48fc","type":"api-call-service","z":"b7d3135b.19a8d","name":"","server":"138d84a1.551e2b","version":3,"debugenabled":false,"service_domain":"","service":"","entityId":"","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"data"}],"queue":"all","x":991,"y":469,"wires":[[]]},{"id":"39f9d07b1444491a","type":"api-call-service","z":"b7d3135b.19a8d","name":"","server":"138d84a1.551e2b","version":3,"debugenabled":false,"service_domain":"","service":"","entityId":"","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"data"}],"queue":"all","x":995,"y":412,"wires":[[]]},{"id":"3702788433ba922d","type":"api-call-service","z":"b7d3135b.19a8d","name":"","server":"138d84a1.551e2b","version":3,"debugenabled":false,"service_domain":"","service":"","entityId":"","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"data"}],"queue":"all","x":485,"y":489,"wires":[["7917a999078f0d61"]]},{"id":"763756455fb8620a","type":"server-events","z":"b7d3135b.19a8d","name":"","server":"138d84a1.551e2b","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"}],"x":150,"y":285,"wires":[["6c92a38dfa1a9dd8"]]},{"id":"6c92a38dfa1a9dd8","type":"switch","z":"b7d3135b.19a8d","name":"","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"17","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":364.5,"y":285,"wires":[["902575fe2689e4cb"]]},{"id":"138d84a1.551e2b","type":"server","name":"Home Assistant","version":1,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true}]
1 Like

Can you export your flow so I can take a closer look?

Based on what I’m seeing in your debug node coming off the zwavejs event, I don’t see why it wouldn’t pass anything through. The node uses property_key and value_raw to determine the button pressed. property_key 002 = down and value_raw 4 = triple tap. And you can see node_id 7. Looking at your screenshot as well I can see your zwave_js.bulk_set… call service node was triggered at 11:31am on March 16. So it’s looking like it’s passing it through.

Thanks PJF… I will look at this and your last post. This looks like it will help narrow down the problem via some testing… i.e. what works and what doesn’t. Thanks.

Yes. Here you go! And your help on all this is greatly appreciated. Once this is working… I will have to “pay it forward” on this forum. :slight_smile:

[{"id":"1e9ae2d1054d1d93","type":"tab","label":"Flow 6","disabled":false,"info":"","env":[]},{"id":"a13362517a8f482b","type":"inovelli-scene-manager","z":"1e9ae2d1054d1d93","name":"Node 7","nodeid":"7","entityid":"","zwave":"zwave_js","switchtype":"LZW31","outputs":15,"labels":["Tap Up on Light Paddle 1x","Tap Up on Light Paddle 2x","Tap Up on Light Paddle 3x","Tap Up on Light Paddle 4x","Tap Up on Light Paddle 5x","Hold Up on Light Paddle","Release Up on Light Paddle","Tap Down on Light Paddle 1x","Tap Down on Light Paddle 2x","Tap Down on Light Paddle 3x","Tap Down on Light Paddle 4x","Tap Down on Light Paddle 5x","Hold Down on Light Paddle","Release Down on Light Paddle","Tap Config Button"],"passthrough":false,"x":280,"y":260,"wires":[[],[],[],[],[],[],[],[],[],["28cfa04f96863c8a","c795da5da29458b6"],[],[],[],[],[]]},{"id":"08aedab6212fcb4b","type":"server-events","z":"1e9ae2d1054d1d93","name":"Zwave JS","server":"94fdcfdf.a00b","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":100,"y":260,"wires":[["a13362517a8f482b","cd34e84761d652fe"]]},{"id":"28cfa04f96863c8a","type":"inovelli-led-manager","z":"1e9ae2d1054d1d93","name":"Change LED Color","zwave":"zwave_js","nodeid":"","entityid":"light.red_series_dimmer","switchtype":"13","color":"170","brightness":5,"brightnessOff":1,"fanColor":180,"fanBrightness":5,"fanBrightnessOff":1,"toggleColor":true,"toggleBrightness":true,"toggleBrightnessOff":true,"toggleFanColor":false,"toggleFanBrightness":false,"toggleFanBrightnessOff":false,"multicast":true,"x":510,"y":280,"wires":[["05d3198d3585af2d","d72f2ebe67a04b31"]]},{"id":"05d3198d3585af2d","type":"api-call-service","z":"1e9ae2d1054d1d93","name":"Send Command","server":"94fdcfdf.a00b","version":5,"debugenabled":false,"domain":"","service":"","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":720,"y":280,"wires":[["ed8e925eb1de7e9a"]]},{"id":"ed8e925eb1de7e9a","type":"debug","z":"1e9ae2d1054d1d93","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":890,"y":280,"wires":[]},{"id":"cd34e84761d652fe","type":"debug","z":"1e9ae2d1054d1d93","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":310,"y":60,"wires":[]},{"id":"c795da5da29458b6","type":"debug","z":"1e9ae2d1054d1d93","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":550,"y":140,"wires":[]},{"id":"d72f2ebe67a04b31","type":"debug","z":"1e9ae2d1054d1d93","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":690,"y":200,"wires":[]},{"id":"94fdcfdf.a00b","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
1 Like

I noticed that too… yet, in reality it was still blinking red. I am wondering if there is not a difference between an Inovelli “notification” and simple change in Led color/behavior. In order to test this whole thing, I have an automation that does a service call to change parameter 16 to 67045888 which is a fast blink red. I assume the Inovelli Manager Node effects parameters 13, 14 (and 15?) to 170 (aqua), 5, and 1 respectively?