[TIP] Home Assistant + Node-Red Scene Manager

Hi all,

If you’ve just updated to the new ZwaveJS HA add-on then fear not, the Inovelli NodeRed Scene Manager lives to fight another day. Here’s an updated flow:

[{"id":"ea5f7d19.c5c51","type":"subflow","name":"Inovelli Scenes ZwaveJS","info":"","category":"","in":[{"x":80,"y":240,"wires":[{"id":"b8edf475.b3de68"}]}],"out":[{"x":680,"y":40,"wires":[{"id":"615e226e.f1117c","port":0}]},{"x":680,"y":80,"wires":[{"id":"615e226e.f1117c","port":1}]},{"x":680,"y":120,"wires":[{"id":"615e226e.f1117c","port":2}]},{"x":680,"y":160,"wires":[{"id":"615e226e.f1117c","port":3}]},{"x":680,"y":200,"wires":[{"id":"615e226e.f1117c","port":4}]},{"x":680,"y":240,"wires":[{"id":"201e754c.da2d82","port":0}]},{"x":680,"y":280,"wires":[{"id":"201e754c.da2d82","port":1}]},{"x":680,"y":320,"wires":[{"id":"201e754c.da2d82","port":2}]},{"x":680,"y":360,"wires":[{"id":"201e754c.da2d82","port":3}]},{"x":680,"y":400,"wires":[{"id":"201e754c.da2d82","port":4}]},{"x":680,"y":440,"wires":[{"id":"e0668bd.9f40678","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":"b8edf475.b3de68","type":"switch","z":"ea5f7d19.c5c51","name":"Scene ID","property":"payload.event.label","propertyType":"msg","rules":[{"t":"eq","v":"Scene 001","vt":"str"},{"t":"eq","v":"Scene 002","vt":"str"},{"t":"eq","v":"Scene 003","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":220,"y":240,"wires":[["201e754c.da2d82"],["615e226e.f1117c"],["e0668bd.9f40678"]]},{"id":"201e754c.da2d82","type":"switch","z":"ea5f7d19.c5c51","name":"Scene Value (Down)","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":460,"y":260,"wires":[[],[],[],[],[]],"outputLabels":["Single Tap Down","Double Tap Down","Triple Tap Down","Quad Tap Down","5 Tap Down"]},{"id":"615e226e.f1117c","type":"switch","z":"ea5f7d19.c5c51","name":"Scene Value (Up)","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":450,"y":180,"wires":[[],[],[],[],[]],"outputLabels":["Single Tap Up","Double Tap Up","Triple Tap Up","Quad Tap Up","5 Tap Up"]},{"id":"e0668bd.9f40678","type":"switch","z":"ea5f7d19.c5c51","name":"Scene Value (Config)","property":"payload.event.value","propertyType":"msg","rules":[{"t":"eq","v":"KeyPressed","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":460,"y":320,"wires":[[]],"outputLabels":["Single Config Tap"]},{"id":"a70cd9b8.3fe448","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"a6d1cd5d.211ab8","type":"server-events","z":"a70cd9b8.3fe448","name":"Listen for ZwaveJS Scene Activation","server":"1be9c72c.0fd339","event_type":"zwave_js_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"x":220,"y":220,"wires":[["99891e1d.52b2f"]]},{"id":"99891e1d.52b2f","type":"switch","z":"a70cd9b8.3fe448","name":"Which Switch","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","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":6,"x":520,"y":220,"wires":[["83fa59c1.20b898"],[],[],[],[],[]],"outputLabels":["Living Room","Kitchen","Dining Room","Entrance","Patio","Backsplash"]},{"id":"83fa59c1.20b898","type":"subflow:ea5f7d19.c5c51","z":"a70cd9b8.3fe448","name":"Living Room Switch (example)","env":[],"x":850,"y":200,"wires":[[],[],[],[],[],[],[],[],[],[],[]]},{"id":"1be9c72c.0fd339","type":"server","name":"Home Assistant","addon":true}]