How to get Scenes to work with OZW and Node Red?

First, let me say I am new to Home Assistant and Node Red. I tried searching the forum and I found some results but I am not sure if they are for the old zwave or OZW. It’s very confusing to me and I could really use some help.

I have Home Assistant installed in VirtualBox on a Windows machine. I have the newest version of Home Assistant and the newest version of OZW installed. For testing, I only have 3 of my Inovelli switches connected to OZW. I am able to control on/off of the lights in HA and Node Red. I am not sure how to control the scenes. My switches are NZW30 and NZW31.

I found a couple of sub flows in this forum but it wants you to use an Events: All node set to zwave.scene_activated. I don’t have that or any ozw.scene_activated.

I see other posts that say to edit an zwcfg.xml but I can’t find that either.

If anyone is able to point me in the right direction with info or a link, that would be great. Any help is greatly appreciated.

I figured it out. I am going to place this here in case anyone else might need it.

I imported the subflow @luke.hinrichsen posted in the thread in the above post.

Then, the starting node needs to be an “events: all” node. The “event type:” is “ozw.scene_activated”.

Next, is a switch node. The switches property needs to be msg.payload.event_id. enter the node id of the switch in the box.

The subflow node is next. Add the lights or devices you want controlled to the corresponding spots on the subflow.

[{"id":"8411e384.fb1f9","type":"subflow","name":"Inovelli Scenes","info":"","category":"","in":[{"x":120,"y":220,"wires":[{"id":"1adf8d0e.cac7f3"}]}],"out":[{"x":680,"y":40,"wires":[{"id":"3faf3597.ea43ba","port":0}]},{"x":680,"y":80,"wires":[{"id":"3faf3597.ea43ba","port":1}]},{"x":680,"y":120,"wires":[{"id":"3faf3597.ea43ba","port":2}]},{"x":680,"y":160,"wires":[{"id":"3faf3597.ea43ba","port":3}]},{"x":680,"y":200,"wires":[{"id":"3faf3597.ea43ba","port":4}]},{"x":680,"y":240,"wires":[{"id":"eee43bc5.cec848","port":0}]},{"x":680,"y":280,"wires":[{"id":"eee43bc5.cec848","port":1}]},{"x":680,"y":320,"wires":[{"id":"eee43bc5.cec848","port":2}]},{"x":680,"y":360,"wires":[{"id":"eee43bc5.cec848","port":3}]},{"x":680,"y":400,"wires":[{"id":"eee43bc5.cec848","port":4}]},{"x":680,"y":440,"wires":[{"id":"7247d146.a727a","port":0}]}],"env":[],"color":"#DDAA99","outputLabels":["Single tap up","Double tap up","Triple tap up","Quad tap up","5 taps up","Single tap down","Double tap down","Triple tap down","Quad Tap down","5 taps down","Config tap"]},{"id":"1adf8d0e.cac7f3","type":"switch","z":"8411e384.fb1f9","name":"Scene ID","property":"payload.event.scene_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":260,"y":220,"wires":[["eee43bc5.cec848"],["3faf3597.ea43ba"],["7247d146.a727a"]]},{"id":"eee43bc5.cec848","type":"switch","z":"8411e384.fb1f9","name":"Scene Value (Down)","property":"payload.event.scene_value_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":460,"y":260,"wires":[[],[],[],[],[]],"outputLabels":["Single Tap Down","Double Tap Down","Triple Tap Down","Quad Tap Down","5 Tap Down"]},{"id":"3faf3597.ea43ba","type":"switch","z":"8411e384.fb1f9","name":"Scene Value (Up)","property":"payload.event.scene_value_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":450,"y":180,"wires":[[],[],[],[],[]],"outputLabels":["Single Tap Up","Double Tap Up","Triple Tap Up","Quad Tap Up","5 Tap Up"]},{"id":"7247d146.a727a","type":"switch","z":"8411e384.fb1f9","name":"Scene Value (Config)","property":"payload.event.value_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":460,"y":320,"wires":[[]],"outputLabels":["Single Config Tap"]},{"id":"6cb79947.b32ec8","type":"subflow:8411e384.fb1f9","z":"9525555d.dc0cb","name":"","env":[],"x":520,"y":180,"wires":[[],[],["57fc895.16547f8"],[],[],[],[],["c6309056.46b998"],[],[],[]]},{"id":"4d29d63f.3b589","type":"server-events","z":"9525555d.dc0cb","name":"OZW Scene Events","server":"f6e60f48.08ca6","event_type":"ozw.scene_activated","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"x":110,"y":180,"wires":[["fc7706d.728b8f8"]]},{"id":"57fc895.16547f8","type":"api-call-service","z":"9525555d.dc0cb","name":"Jasper's light on","server":"f6e60f48.08ca6","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.jaspers_room_level","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":920,"y":140,"wires":[[]]},{"id":"c55ab72d.baafa","type":"api-call-service","z":"9525555d.dc0cb","name":"Jasper's light off","server":"f6e60f48.08ca6","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.jaspers_room_level","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":920,"y":206,"wires":[[]]},{"id":"fc7706d.728b8f8","type":"switch","z":"9525555d.dc0cb","name":"Jasper's Light","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"8","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":320,"y":180,"wires":[["6cb79947.b32ec8"]]},{"id":"c6309056.46b998","type":"delay","z":"9525555d.dc0cb","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":730,"y":206,"wires":[["c55ab72d.baafa"]]},{"id":"f6e60f48.08ca6","type":"server","name":"Home Assistant","addon":true}]
2 Likes

Glad to see you were able to use the flow!

Because my 2 switches share a space and some scenes, I actually put a switch after the scene to route between my kitchen/dining room. Here’s my flow just for another example.

[{"id":"8411e384.fb1f9","type":"subflow","name":"Inovelli Scenes","info":"","category":"","in":[{"x":120,"y":220,"wires":[{"id":"1adf8d0e.cac7f3"}]}],"out":[{"x":680,"y":40,"wires":[{"id":"3faf3597.ea43ba","port":0}]},{"x":680,"y":80,"wires":[{"id":"3faf3597.ea43ba","port":1}]},{"x":680,"y":120,"wires":[{"id":"3faf3597.ea43ba","port":2}]},{"x":680,"y":160,"wires":[{"id":"3faf3597.ea43ba","port":3}]},{"x":680,"y":200,"wires":[{"id":"3faf3597.ea43ba","port":4}]},{"x":680,"y":240,"wires":[{"id":"eee43bc5.cec848","port":0}]},{"x":680,"y":280,"wires":[{"id":"eee43bc5.cec848","port":1}]},{"x":680,"y":320,"wires":[{"id":"eee43bc5.cec848","port":2}]},{"x":680,"y":360,"wires":[{"id":"eee43bc5.cec848","port":3}]},{"x":680,"y":400,"wires":[{"id":"eee43bc5.cec848","port":4}]},{"x":680,"y":440,"wires":[{"id":"7247d146.a727a","port":0}]}],"env":[],"color":"#DDAA99","outputLabels":["Single tap up","Double tap up","Triple tap up","Quad tap up","5 taps up","Single tap down","Double tap down","Triple tap down","Quad Tap down","5 taps down","Config tap"]},{"id":"1adf8d0e.cac7f3","type":"switch","z":"8411e384.fb1f9","name":"Scene ID","property":"payload.event.scene_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":260,"y":220,"wires":[["eee43bc5.cec848"],["3faf3597.ea43ba"],["7247d146.a727a"]]},{"id":"eee43bc5.cec848","type":"switch","z":"8411e384.fb1f9","name":"Scene Value (Down)","property":"payload.event.scene_value_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":460,"y":260,"wires":[[],[],[],[],[]],"outputLabels":["Single Tap Down","Double Tap Down","Triple Tap Down","Quad Tap Down","5 Tap Down"]},{"id":"3faf3597.ea43ba","type":"switch","z":"8411e384.fb1f9","name":"Scene Value (Up)","property":"payload.event.scene_value_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":450,"y":180,"wires":[[],[],[],[],[]],"outputLabels":["Single Tap Up","Double Tap Up","Triple Tap Up","Quad Tap Up","5 Tap Up"]},{"id":"7247d146.a727a","type":"switch","z":"8411e384.fb1f9","name":"Scene Value (Config)","property":"payload.event.value_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":460,"y":320,"wires":[[]],"outputLabels":["Single Config Tap"]},{"id":"9ca70162.5e82a8","type":"subflow:8411e384.fb1f9","z":"235aadac.873022","name":"","env":[],"x":2140,"y":660,"wires":[["93b151d.03b023"],["761d24fb.cfd5bc"],["4b5eea9e.ee10ac"],[],[],["5b076761.17e3f8"],["39f30c66.8e1e5c"],["659b26a9.ec0e2","1c07b347.982765","4d2dfb70.1dcb94"],[],[],[]]},{"id":"659b26a9.ec0e2","type":"api-call-service","z":"235aadac.873022","name":"turn overhead overhead off","server":"ded139f7.1761b8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.dining_overhead_dimmer_level","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":2860,"y":920,"wires":[["8fb33909.7e007"]],"info":"from off: \npendant min pct = 6\ndisc lights min pct = 40\n\npendant near max at 40%\n\ndecent steps for discs\n45%\n65% - daytime ambient\n100% - max\n\n\n\n\ndefault min max values:\npendant turn-on: 27\noverall max brightness reached: 85"},{"id":"1c07b347.982765","type":"api-call-service","z":"235aadac.873022","name":"turn couch plug off","server":"ded139f7.1761b8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.dining_room_couch_plug_level","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":2830,"y":960,"wires":[[]],"info":"from off: \npendant min pct = 6\ndisc lights min pct = 40\n\npendant near max at 40%\n\ndecent steps for discs\n45%\n65% - daytime ambient\n100% - max\n\n\n\n\ndefault min max values:\npendant turn-on: 27\noverall max brightness reached: 85"},{"id":"4d2dfb70.1dcb94","type":"api-call-service","z":"235aadac.873022","name":"turn off kitchen lights","server":"ded139f7.1761b8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.kitchen_dimmer_level","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":2840,"y":880,"wires":[["8fb33909.7e007"]]},{"id":"8fb33909.7e007","type":"change","z":"235aadac.873022","name":"set boardgaming variable = false","rules":[{"t":"set","p":"boardgaming","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":3150,"y":880,"wires":[["760b2ecb.88fca"]]},{"id":"93b151d.03b023","type":"switch","z":"235aadac.873022","name":"","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"18","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":2410,"y":500,"wires":[["e8afe5d.123f818"],["1438130f.ec81ed","9b99d851.e34c98"]],"outputLabels":["Kitchen Switch","Dining Switch"]},{"id":"1438130f.ec81ed","type":"api-call-service","z":"235aadac.873022","name":"set overhead level to 100","server":"ded139f7.1761b8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_overhead_dimmer_level","data":"{    \"brightness_pct\": 100 }","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":2850,"y":540,"wires":[[]],"info":"from off: \npendant min pct = 6\ndisc lights min pct = 40\n\npendant near max at 40%\n\ndecent steps for discs\n45%\n65% - daytime ambient\n100% - max\n\n\n\n\ndefault min max values:\npendant turn-on: 27\noverall max brightness reached: 85"},{"id":"9b99d851.e34c98","type":"api-call-service","z":"235aadac.873022","name":"set couch plug level to 100","server":"ded139f7.1761b8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_couch_plug_level","data":"{    \"brightness_pct\": 100 }","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":2860,"y":580,"wires":[[]],"info":"from off: \npendant min pct = 6\ndisc lights min pct = 40\n\npendant near max at 40%\n\ndecent steps for discs\n45%\n65% - daytime ambient\n100% - max\n\n\n\n\ndefault min max values:\npendant turn-on: 27\noverall max brightness reached: 85"},{"id":"e8afe5d.123f818","type":"api-call-service","z":"235aadac.873022","name":"set kitchen levels to 100","server":"ded139f7.1761b8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.kitchen_dimmer_level","data":"{    \"brightness_pct\": 100 }","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":2850,"y":500,"wires":[[]],"info":"from off: \npendant min pct = 6\ndisc lights min pct = 40\n\npendant near max at 40%\n\ndecent steps for discs\n45%\n65% - daytime ambient\n100% - max\n\n\n\n\ndefault min max values:\npendant turn-on: 27\noverall max brightness reached: 85"},{"id":"5b076761.17e3f8","type":"switch","z":"235aadac.873022","name":"","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"18","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":2410,"y":920,"wires":[["4d2dfb70.1dcb94"],["1c07b347.982765","659b26a9.ec0e2"]],"outputLabels":["Kitchen Switch","Dining Switch"]},{"id":"39f30c66.8e1e5c","type":"switch","z":"235aadac.873022","name":"","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"18","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":2570,"y":740,"wires":[["1f22808c.845947"],["90a9bc0a.50d55"]],"outputLabels":["Kitchen Switch","Dining Switch"]},{"id":"90a9bc0a.50d55","type":"api-call-service","z":"235aadac.873022","name":"set couch plug level to 1","server":"ded139f7.1761b8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_couch_plug_level","data":"{    \"brightness_pct\": 1 }","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":2850,"y":760,"wires":[[]],"info":"from off: \npendant min pct = 6\ndisc lights min pct = 40\n\npendant near max at 40%\n\ndecent steps for discs\n45%\n65% - daytime ambient\n100% - max\n\n\n\n\ndefault min max values:\npendant turn-on: 27\noverall max brightness reached: 85"},{"id":"1f22808c.845947","type":"api-call-service","z":"235aadac.873022","name":"set to pendant super dim","server":"ded139f7.1761b8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.kitchen_dimmer_level","data":"{    \"brightness_pct\": 6 }","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":2850,"y":720,"wires":[[]],"info":"from off: \npendant min pct = 6\ndisc lights min pct = 40\n\npendant near max at 40%\n\ndecent steps for discs\n45%\n65% - daytime ambient\n100% - max\n\n\n\n\ndefault min max values:\npendant turn-on: 27\noverall max brightness reached: 85"},{"id":"4b5eea9e.ee10ac","type":"change","z":"235aadac.873022","name":"set boardgaming variable = true","rules":[{"t":"set","p":"boardgaming","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":2490,"y":620,"wires":[["e8afe5d.123f818","1438130f.ec81ed","9b99d851.e34c98"]]},{"id":"ef86a99d.4d002","type":"server-events","z":"235aadac.873022","name":"Scene Monitor","server":"ded139f7.1761b8","event_type":"ozw.scene_activated","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"x":1910,"y":660,"wires":[["9ca70162.5e82a8"]]},{"id":"99f7c4f1.ed1cc8","type":"inject","z":"235aadac.873022","name":"trigger on startup","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":3010,"y":820,"wires":[["8fb33909.7e007"]]},{"id":"fc51fee1.98d1f","type":"switch","z":"235aadac.873022","name":"","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"18","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":2390,"y":400,"wires":[[],["8f11a83d.d9a218"]],"outputLabels":["Kitchen Switch","Dining Switch"]},{"id":"761d24fb.cfd5bc","type":"link out","z":"235aadac.873022","name":"","links":["2c1896de.b7b69a"],"x":2275,"y":600,"wires":[]},{"id":"2c1896de.b7b69a","type":"link in","z":"235aadac.873022","name":"Double Tap Up","links":["761d24fb.cfd5bc"],"x":2295,"y":400,"wires":[["fc51fee1.98d1f"]]},{"id":"8435b91e.e0ba","type":"comment","z":"235aadac.873022","name":"Double Tap Up","info":"","x":2360,"y":360,"wires":[]},{"id":"8f11a83d.d9a218","type":"change","z":"235aadac.873022","name":"set diningTimer variable = true","rules":[{"t":"set","p":"diningTimer","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":2490,"y":440,"wires":[[]]},{"id":"e0166426.83469","type":"inject","z":"235aadac.873022","name":"trigger on startup","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":2230,"y":440,"wires":[["8f11a83d.d9a218"]]},{"id":"760b2ecb.88fca","type":"change","z":"235aadac.873022","name":"set diningTimer variable = false","rules":[{"t":"set","p":"diningTimer","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":3170,"y":920,"wires":[[]]},{"id":"ded139f7.1761b8","type":"server","name":"Home Assistant","addon":true}]

Edit: I find the Home Assistant Node Red channel is pretty handy. I learn a ton there and help folks once in a while, too.