Multiple Paths with Sleeps

I'm trying to control 3x RGB bulbs and have them cycle through two colors (Red and Green). Often only one of the bulbs change colors and the other two remain constant with their first color. The path circled in red continues. From googling I think the sleeps are blocking the other paths from running. Is that correct? A weird thing I noticed is if I put a debug statement anywhere in the bulb 1 or 2 path it works fine.

[{"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.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":220,"wires":[["eee43bc5.cec848"],["3faf3597.ea43ba"],["7247d146.a727a"]]},{"id":"eee43bc5.cec848","type":"switch","z":"8411e384.fb1f9","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":["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.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","","",null]},{"id":"7247d146.a727a","type":"switch","z":"8411e384.fb1f9","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":"471c4130132514cc","type":"tab","label":"Kitchen Fun","disabled":false,"info":""},{"id":"8ca6f983eaf41bb8","type":"subflow:8411e384.fb1f9","z":"471c4130132514cc","name":"","x":460,"y":160,"wires":[[],[],[],["684eeadbee3996a8","ee0f9910da1b03d6","e7d18c69bcc7340e"],[],[],[],[],["d6cf8828b3d1e04d","5c660bdefd507053","de0f3f0dd25a2816","aaa70bf4098945d0"],[],[]]},{"id":"b73666fc26b895a7","type":"switch","z":"471c4130132514cc","name":"Kitchen Table","property":"payload.event.node_id","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":220,"y":200,"wires":[["8ca6f983eaf41bb8"]]},{"id":"05fd2e06a5b0bd74","type":"server-events","z":"471c4130132514cc","name":"","server":"e976d2f1.a9534","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":180,"y":80,"wires":[["b73666fc26b895a7"]]},{"id":"e7d18c69bcc7340e","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Green1","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_1","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#00ff00\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":170,"y":720,"wires":[["4081a529b7a5f253"]]},{"id":"4081a529b7a5f253","type":"api-call-service","z":"471c4130132514cc","name":"Disable white1","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_1","data":"{    \"command_class\": '51',    \"property\": \"targetColor\",    \"value\": '0',    \"property_key\": '0'}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":380,"y":720,"wires":[["a64c11986892c64c"]]},{"id":"a64c11986892c64c","type":"stoptimer","z":"471c4130132514cc","duration":"3","units":"Second","payloadtype":"num","payloadval":"0","name":"3","x":610,"y":720,"wires":[["6316944e1eccbd22"],[]]},{"id":"6316944e1eccbd22","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Red","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_1","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#ff0000\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":160,"y":780,"wires":[["1bd7c15bf21a7567"]]},{"id":"1bd7c15bf21a7567","type":"stoptimer","z":"471c4130132514cc","duration":"3","units":"Second","payloadtype":"num","payloadval":"0","name":"3","x":310,"y":780,"wires":[["7ba4c8dd363b8dbd"],[]]},{"id":"7ba4c8dd363b8dbd","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Green","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_1","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#00ff00\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":480,"y":780,"wires":[["a64c11986892c64c"]]},{"id":"ee0f9910da1b03d6","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Green2","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_2","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#00ff00\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":190,"y":580,"wires":[["5682df3c56fe4fda"]]},{"id":"5682df3c56fe4fda","type":"stoptimer","z":"471c4130132514cc","duration":"0.5","units":"Second","payloadtype":"num","payloadval":"0","name":"0.5","x":350,"y":580,"wires":[["2d7bc25af0f5e1d6"],[]]},{"id":"2d7bc25af0f5e1d6","type":"api-call-service","z":"471c4130132514cc","name":"Disable white2","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_2","data":"{    \"command_class\": '51',    \"property\": \"targetColor\",    \"value\": '0',    \"property_key\": '0'}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":500,"y":580,"wires":[["bb9e30cd4beb315f"]]},{"id":"bb9e30cd4beb315f","type":"stoptimer","z":"471c4130132514cc","duration":"2","units":"Second","payloadtype":"num","payloadval":"","name":"2","x":750,"y":580,"wires":[["52447e881e675346"],[]]},{"id":"745c4d5809406b4d","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Green","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_2","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#00ff00\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":600,"y":640,"wires":[["bb9e30cd4beb315f"]]},{"id":"f37573588fcc7b5c","type":"stoptimer","z":"471c4130132514cc","duration":"2","units":"Second","payloadtype":"num","payloadval":"","name":"2","x":430,"y":640,"wires":[["745c4d5809406b4d"],[]]},{"id":"52447e881e675346","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Red","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_2","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#ff0000\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":280,"y":640,"wires":[["f37573588fcc7b5c"]]},{"id":"684eeadbee3996a8","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Green3","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_3","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#00ff00\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":190,"y":440,"wires":[["f2245f91499085f2"]]},{"id":"f2245f91499085f2","type":"stoptimer","z":"471c4130132514cc","duration":"1","units":"Second","payloadtype":"num","payloadval":"0","name":"1","x":350,"y":440,"wires":[["e23d70053205100a"],[]]},{"id":"e23d70053205100a","type":"api-call-service","z":"471c4130132514cc","name":"Disable white3","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_3","data":"{    \"command_class\": '51',    \"property\": \"targetColor\",    \"value\": '0',    \"property_key\": '0'}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":500,"y":440,"wires":[["6fa6b0ae7b703099"]]},{"id":"6fa6b0ae7b703099","type":"stoptimer","z":"471c4130132514cc","duration":"2.5","units":"Second","payloadtype":"num","payloadval":"0","name":"2.5","x":670,"y":440,"wires":[["cc8818adc8cbc827"],[]]},{"id":"70d039f35e1b150f","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Green","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_3","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#00ff00\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":600,"y":500,"wires":[["6fa6b0ae7b703099"]]},{"id":"196b6c9b8d01a3ad","type":"stoptimer","z":"471c4130132514cc","duration":"2.5","units":"Second","payloadtype":"num","payloadval":"","name":"2.5","x":430,"y":500,"wires":[["70d039f35e1b150f"],[]]},{"id":"cc8818adc8cbc827","type":"api-call-service","z":"471c4130132514cc","name":"Prestage Red","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_3","data":"{    \"command_class\": '51',    \"property\": \"hexColor\",    \"value\": \"#ff0000\"    }","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":280,"y":500,"wires":[["196b6c9b8d01a3ad"]]},{"id":"d6cf8828b3d1e04d","type":"api-call-service","z":"471c4130132514cc","name":"Disable white1","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_1","data":"{    \"command_class\": '51',    \"property\": \"targetColor\",    \"value\": '255',    \"property_key\": '0'}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":800,"y":240,"wires":[[]]},{"id":"5c660bdefd507053","type":"api-call-service","z":"471c4130132514cc","name":"Disable white2","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_2","data":"{    \"command_class\": '51',    \"property\": \"targetColor\",    \"value\": '255',    \"property_key\": '0'}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":800,"y":200,"wires":[[]]},{"id":"de0f3f0dd25a2816","type":"api-call-service","z":"471c4130132514cc","name":"Disable white3","server":"e976d2f1.a9534","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"set_value","entityId":"light.kitchen_bulb_3","data":"{    \"command_class\": '51',    \"property\": \"targetColor\",    \"value\": '255',    \"property_key\": '0'}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":800,"y":160,"wires":[[]]},{"id":"aaa70bf4098945d0","type":"change","z":"471c4130132514cc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":340,"wires":[["6fa6b0ae7b703099","bb9e30cd4beb315f","a64c11986892c64c"]]},{"id":"e976d2f1.a9534","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true}]

Simply adding a debug node cannot make any difference to the main flow, unless you have some sort of race condition.

Are those Home Assistant nodes? If so then I can't help with that aspect. Possible a Filter (previously RBE) node might help. That can block messages that are the same as the previous ones, but it depends on the exact mechanism of the loop.

Hi This may help you find the problem. https://discourse.nodered.org/t/message-debug-function-node/53261

1 Like

Zwave RGB bulbs in Home Assistant zwavejs2mqtt

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.