@Colin I have changed the function just to be sure
No, I'm not confused by the order. But when I push the bell, and I have a debug node behind the doorbell node I should receive something. And that is really not the case. So I think I really need to look to the doorbell node. But how? It's a closed block for me. I have no idea what it does. What do you mean with node.warn?
@Paul-Reed: How do you exactly implement this queue? It passes my first message and than it's done.
I definitly will give it a try, but as I said here above, I think it's something inside the doorbell node? Do you really receive every time you push your doorbell a message in node-red? Even If you push it several tims after each other?
Once again my flow:
[{"id":"a6eb6186.96c99","type":"modbus-write","z":"73876eca.24a1e","name":"Modbus Write 32017","showStatusActivities":true,"showErrors":true,"unitid":"","dataType":"HoldingRegister","adr":"32017","quantity":"1","server":"a7264232.7324b","x":820,"y":180,"wires":[[],["d8fdd90a.95cad8","61cedbc8.84b314"]]},{"id":"5a5f4e33.2cacb","type":"delay","z":"73876eca.24a1e","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":901,"y":310,"wires":[["a6eb6186.96c99"]]},{"id":"d8fdd90a.95cad8","type":"function","z":"73876eca.24a1e","name":"Standby 999","func":"var x = msg.payload.value;\nif (x< \"999\") {\n var msg_o = {payload : 999}\n\n}\nreturn msg_o;\n\n//We sturen een 999 naar ons modbus register van zodra\n//iets < 999 is gestuurd.","outputs":1,"noerr":0,"x":731,"y":310,"wires":[["5a5f4e33.2cacb"]]},{"id":"61cedbc8.84b314","type":"modbus-response","z":"73876eca.24a1e","name":"","registerShowMax":20,"x":1130,"y":180,"wires":[]},{"id":"57482f2a.fdf8e","type":"ring doorbell","z":"73876eca.24a1e","testmode":"N","verbose":"N","topic":"","name":"","x":130,"y":180,"wires":[["5f630e.82e80cf4","51077c85.18d7f4"]]},{"id":"51077c85.18d7f4","type":"function","z":"73876eca.24a1e","name":"ding or motion?","func":"var x = msg.payload.kind;\n\nif (x== \"ding\") {\n msg.payload = 110\n \n} else if (x== \"motion\"){\n msg.payload = 120\n \n} else {\n msg.payload = 999\n \n}\nreturn msg;\n\n","outputs":1,"noerr":0,"x":480,"y":180,"wires":[["a6eb6186.96c99","d1dcce46.90178"]]},{"id":"15300bf8.dc2c24","type":"debug","z":"73876eca.24a1e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":430,"y":380,"wires":[]},{"id":"5f630e.82e80cf4","type":"debug","z":"73876eca.24a1e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":370,"y":420,"wires":[]},{"id":"d1dcce46.90178","type":"debug","z":"73876eca.24a1e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":490,"y":300,"wires":[]},{"id":"59660db0.542904","type":"inject","z":"73876eca.24a1e","name":"DING","topic":"","payload":"{\"kind\":\"ding\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":40,"wires":[["51077c85.18d7f4"]]},{"id":"5f5bcb80.e63d84","type":"inject","z":"73876eca.24a1e","name":"MOTION","topic":"","payload":"{\"kind\":\"motion\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":100,"wires":[["51077c85.18d7f4"]]},{"id":"53cb74bd.7dc4bc","type":"simple-queue","z":"73876eca.24a1e","name":"queue1","firstMessageBypass":true,"bypassInterval":"0","x":300,"y":180,"wires":[[]]},{"id":"a7264232.7324b","type":"modbus-client","z":"","name":"WAGO_PLC","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"192.168.0.70","tcpPort":"503","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":2,"commandDelay":20,"clientTimeout":1000,"reconnectTimeout":2000}]
oh, and when deploying I get this faultcode
but I have no idea from where, Nothing lights up when selecting it.