HDL Smartbus via NodeRed and MQTT

Network 1 Status

[{"id":"a9497c78729f4dd4","type":"tab","label":"Netwrok 2 status","disabled":false,"info":"","env":[]},{"id":"43f5c05c1a38c680","type":"inject","z":"a9497c78729f4dd4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"1","topic":"","payload":"Started!","payloadType":"str","x":300,"y":180,"wires":[["a4650cccb694a99a","05e1f12cf7effd26","7c81ee8a3adcb9df","6c8b7fa27d928581","53e60c4d0e20d2ce","257e933fc33848d4","be491f33eb39c4aa","79a8a79dedc3e42b","08001635afb265ed","1172dda14384052b","06b51af713644c7e","455a2d62f2b25aea","d0a0ecc1d3ebd4a6","6c6516db17ff17e3","9753ebd5c0ca06ea","fca97524831f5435","7c170944cb860cab","d72cbe598f1b03a5"]]},{"id":"159b47a4e26fba0b","type":"comment","z":"a9497c78729f4dd4","name":"Read startup Status from HDL","info":"","x":320,"y":100,"wires":[]},{"id":"28573ae22af94775","type":"function","z":"a9497c78729f4dd4","name":"Read status Dimmer 2","func":"msg.target = \"1.61\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":240,"wires":[["ccbc003c99fd872b"]]},{"id":"a4650cccb694a99a","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":240,"wires":[["28573ae22af94775"]]},{"id":"ccbc003c99fd872b","type":"hdl-raw-out","z":"a9497c78729f4dd4","controller":"309318e35173ed59","name":"Command to HDL","x":1450,"y":700,"wires":[]},{"id":"efc3416ccac0d52c","type":"function","z":"a9497c78729f4dd4","name":"Read status Dimmer 3","func":"msg.target = \"2.1\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":300,"wires":[["ccbc003c99fd872b"]]},{"id":"05e1f12cf7effd26","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"14","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":300,"wires":[["efc3416ccac0d52c"]]},{"id":"7c81ee8a3adcb9df","type":"function","z":"a9497c78729f4dd4","name":"Read status Dimmer 1","func":"msg.target = \"1.60\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":180,"wires":[["ccbc003c99fd872b"]]},{"id":"46ee0cdefc531e94","type":"function","z":"a9497c78729f4dd4","name":"Read status Relay 1","func":"msg.target = \"2.1\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":360,"wires":[["ccbc003c99fd872b"]]},{"id":"e875c0a4d2de04f0","type":"function","z":"a9497c78729f4dd4","name":"Read status Relay 2","func":"msg.target = \"1.81\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":420,"wires":[["ccbc003c99fd872b"]]},{"id":"8ff10cfba5340a9f","type":"function","z":"a9497c78729f4dd4","name":"Read status Relay 3","func":"msg.target = \"1.82\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":480,"wires":[["ccbc003c99fd872b"]]},{"id":"6c8b7fa27d928581","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":360,"wires":[["46ee0cdefc531e94"]]},{"id":"53e60c4d0e20d2ce","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"17","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":420,"wires":[["e875c0a4d2de04f0"]]},{"id":"257e933fc33848d4","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"18","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":480,"wires":[["8ff10cfba5340a9f"]]},{"id":"be491f33eb39c4aa","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"19","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":600,"wires":[["217d8941b37beb7f"]]},{"id":"20e30f56ef6515df","type":"comment","z":"a9497c78729f4dd4","name":"Dimmers And Relays","info":"Only one message per dimmer or relay module. Module will answer with all channels in one message.","x":640,"y":140,"wires":[]},{"id":"bfd586726211df57","type":"comment","z":"a9497c78729f4dd4","name":"Universal Switches","info":"One message per US needs to be sendt.","x":630,"y":540,"wires":[]},{"id":"217d8941b37beb7f","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 1-4","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 1},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 2},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 3},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 4},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":600,"wires":[["ccbc003c99fd872b"]]},{"id":"729ce1c4fd90e867","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 20- 23","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 20},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 21},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 22},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 23},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":780,"wires":[["ccbc003c99fd872b"]]},{"id":"6633f98a95858c17","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 16","func":"var msg = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 16},  \n    };\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":660,"wires":[["ccbc003c99fd872b"]]},{"id":"bae7a242263311ed","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 60-62","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 60},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 61},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 62},  \n    };\nreturn [ [ msg1, msg2, msg3 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":840,"wires":[["ccbc003c99fd872b"]]},{"id":"61c6861743e87271","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 225 - 228","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 225},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 226},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 227},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 228},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":910,"y":900,"wires":[["ccbc003c99fd872b"]]},{"id":"147e42478cf23319","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 18","func":"var msg = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 18},  \n    };\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":720,"wires":[["ccbc003c99fd872b"]]},{"id":"79a8a79dedc3e42b","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"21","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":660,"wires":[["6633f98a95858c17","147e42478cf23319"]]},{"id":"1172dda14384052b","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"22","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":780,"wires":[["729ce1c4fd90e867"]]},{"id":"06b51af713644c7e","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"23","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":840,"wires":[["bae7a242263311ed"]]},{"id":"08001635afb265ed","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"24","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":900,"wires":[["61c6861743e87271"]]},{"id":"455a2d62f2b25aea","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"26","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1000,"wires":[["0016532d84d966ce"]]},{"id":"8c433d74b4b9fc1d","type":"comment","z":"a9497c78729f4dd4","name":"Floorheat on DLP","info":"","x":620,"y":960,"wires":[]},{"id":"0016532d84d966ce","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat from DLP","func":"msg.target = \"1.106\"\nmsg.code = 6468;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":910,"y":1000,"wires":[["ccbc003c99fd872b"]]},{"id":"b37e4ad79e83114f","type":"hdl-raw-out","z":"a9497c78729f4dd4","controller":"309318e35173ed59","name":"","x":630,"y":1580,"wires":[]},{"id":"8cf0aac16e8c2c21","type":"function","z":"a9497c78729f4dd4","name":"Read sensor","func":"msg.target = \"1.73\"\nmsg.code = 5636;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":1580,"wires":[["b37e4ad79e83114f"]]},{"id":"b0f5ef066bf1395f","type":"inject","z":"a9497c78729f4dd4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":true,"onceDelay":"36","topic":"","payload":"Started!","payloadType":"str","x":300,"y":1580,"wires":[["8cf0aac16e8c2c21"]]},{"id":"8dc241ea9509c231","type":"comment","z":"a9497c78729f4dd4","name":"Read status of humidity sensor that is not able to broadcast","info":"","x":410,"y":1500,"wires":[]},{"id":"288fb7fcb88c4e42","type":"comment","z":"a9497c78729f4dd4","name":"Inject node is set to start with a delay of 36sec and repeat every 60 sec","info":"","x":500,"y":1540,"wires":[]},{"id":"de7ba2854ad1de3b","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch2","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 2,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1180,"wires":[["ccbc003c99fd872b"]]},{"id":"ad45c67a7da115bd","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch1","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 1,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1120,"wires":[["ccbc003c99fd872b"]]},{"id":"5d4c382578d144d6","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch4","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 4,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1300,"wires":[["ccbc003c99fd872b"]]},{"id":"aefed992f7ebab94","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch3","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 3,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1240,"wires":[["ccbc003c99fd872b"]]},{"id":"42cd5965737634f4","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch5","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 5,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1360,"wires":[["ccbc003c99fd872b"]]},{"id":"6c6516db17ff17e3","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"32","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1240,"wires":[["aefed992f7ebab94"]]},{"id":"d0a0ecc1d3ebd4a6","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1180,"wires":[["de7ba2854ad1de3b"]]},{"id":"9753ebd5c0ca06ea","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"34","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1300,"wires":[["5d4c382578d144d6"]]},{"id":"fca97524831f5435","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"36","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1360,"wires":[["42cd5965737634f4"]]},{"id":"c46f2b53ad474ccb","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch6","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 6,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1420,"wires":[["ccbc003c99fd872b"]]},{"id":"7c170944cb860cab","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"38","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1420,"wires":[["c46f2b53ad474ccb"]]},{"id":"a4071d915c53a9e2","type":"comment","z":"a9497c78729f4dd4","name":"Floorheat on Heatingmodule","info":"","x":660,"y":1060,"wires":[]},{"id":"d72cbe598f1b03a5","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"28","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1120,"wires":[["ad45c67a7da115bd"]]},{"id":"309318e35173ed59","type":"hdl-controller","host":"192.168.3.143","port":"6000","subnetid":"200","deviceid":"0","broadcast":true,"daliId":""}]```

Network 2 status

[{"id":"a9497c78729f4dd4","type":"tab","label":"Netwrok 2 status","disabled":false,"info":"","env":[]},{"id":"43f5c05c1a38c680","type":"inject","z":"a9497c78729f4dd4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"1","topic":"","payload":"Started!","payloadType":"str","x":300,"y":180,"wires":[["a4650cccb694a99a","05e1f12cf7effd26","7c81ee8a3adcb9df","6c8b7fa27d928581","53e60c4d0e20d2ce","257e933fc33848d4","be491f33eb39c4aa","79a8a79dedc3e42b","08001635afb265ed","1172dda14384052b","06b51af713644c7e","455a2d62f2b25aea","d0a0ecc1d3ebd4a6","6c6516db17ff17e3","9753ebd5c0ca06ea","fca97524831f5435","7c170944cb860cab","d72cbe598f1b03a5"]]},{"id":"159b47a4e26fba0b","type":"comment","z":"a9497c78729f4dd4","name":"Read startup Status from HDL","info":"","x":320,"y":100,"wires":[]},{"id":"28573ae22af94775","type":"function","z":"a9497c78729f4dd4","name":"Read status Dimmer 2","func":"msg.target = \"1.61\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":240,"wires":[["ccbc003c99fd872b"]]},{"id":"a4650cccb694a99a","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":240,"wires":[["28573ae22af94775"]]},{"id":"ccbc003c99fd872b","type":"hdl-raw-out","z":"a9497c78729f4dd4","controller":"309318e35173ed59","name":"Command to HDL","x":1450,"y":700,"wires":[]},{"id":"efc3416ccac0d52c","type":"function","z":"a9497c78729f4dd4","name":"Read status Dimmer 3","func":"msg.target = \"2.1\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":300,"wires":[["ccbc003c99fd872b"]]},{"id":"05e1f12cf7effd26","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"14","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":300,"wires":[["efc3416ccac0d52c"]]},{"id":"7c81ee8a3adcb9df","type":"function","z":"a9497c78729f4dd4","name":"Read status Dimmer 1","func":"msg.target = \"1.60\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":180,"wires":[["ccbc003c99fd872b"]]},{"id":"46ee0cdefc531e94","type":"function","z":"a9497c78729f4dd4","name":"Read status Relay 1","func":"msg.target = \"2.1\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":360,"wires":[["ccbc003c99fd872b"]]},{"id":"e875c0a4d2de04f0","type":"function","z":"a9497c78729f4dd4","name":"Read status Relay 2","func":"msg.target = \"1.81\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":420,"wires":[["ccbc003c99fd872b"]]},{"id":"8ff10cfba5340a9f","type":"function","z":"a9497c78729f4dd4","name":"Read status Relay 3","func":"msg.target = \"1.82\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":880,"y":480,"wires":[["ccbc003c99fd872b"]]},{"id":"6c8b7fa27d928581","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":360,"wires":[["46ee0cdefc531e94"]]},{"id":"53e60c4d0e20d2ce","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"17","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":420,"wires":[["e875c0a4d2de04f0"]]},{"id":"257e933fc33848d4","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"18","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":480,"wires":[["8ff10cfba5340a9f"]]},{"id":"be491f33eb39c4aa","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"19","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":600,"wires":[["217d8941b37beb7f"]]},{"id":"20e30f56ef6515df","type":"comment","z":"a9497c78729f4dd4","name":"Dimmers And Relays","info":"Only one message per dimmer or relay module. Module will answer with all channels in one message.","x":640,"y":140,"wires":[]},{"id":"bfd586726211df57","type":"comment","z":"a9497c78729f4dd4","name":"Universal Switches","info":"One message per US needs to be sendt.","x":630,"y":540,"wires":[]},{"id":"217d8941b37beb7f","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 1-4","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 1},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 2},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 3},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 4},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":600,"wires":[["ccbc003c99fd872b"]]},{"id":"729ce1c4fd90e867","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 20- 23","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 20},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 21},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 22},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 23},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":780,"wires":[["ccbc003c99fd872b"]]},{"id":"6633f98a95858c17","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 16","func":"var msg = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 16},  \n    };\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":660,"wires":[["ccbc003c99fd872b"]]},{"id":"bae7a242263311ed","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 60-62","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 60},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 61},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 62},  \n    };\nreturn [ [ msg1, msg2, msg3 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":840,"wires":[["ccbc003c99fd872b"]]},{"id":"61c6861743e87271","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 225 - 228","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 225},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 226},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 227},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 228},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":910,"y":900,"wires":[["ccbc003c99fd872b"]]},{"id":"147e42478cf23319","type":"function","z":"a9497c78729f4dd4","name":"Read status US 1.22 18","func":"var msg = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 18},  \n    };\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":720,"wires":[["ccbc003c99fd872b"]]},{"id":"79a8a79dedc3e42b","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"21","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":660,"wires":[["6633f98a95858c17","147e42478cf23319"]]},{"id":"1172dda14384052b","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"22","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":780,"wires":[["729ce1c4fd90e867"]]},{"id":"06b51af713644c7e","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"23","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":840,"wires":[["bae7a242263311ed"]]},{"id":"08001635afb265ed","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"24","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":900,"wires":[["61c6861743e87271"]]},{"id":"455a2d62f2b25aea","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"26","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1000,"wires":[["0016532d84d966ce"]]},{"id":"8c433d74b4b9fc1d","type":"comment","z":"a9497c78729f4dd4","name":"Floorheat on DLP","info":"","x":620,"y":960,"wires":[]},{"id":"0016532d84d966ce","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat from DLP","func":"msg.target = \"1.106\"\nmsg.code = 6468;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":910,"y":1000,"wires":[["ccbc003c99fd872b"]]},{"id":"b37e4ad79e83114f","type":"hdl-raw-out","z":"a9497c78729f4dd4","controller":"309318e35173ed59","name":"","x":630,"y":1580,"wires":[]},{"id":"8cf0aac16e8c2c21","type":"function","z":"a9497c78729f4dd4","name":"Read sensor","func":"msg.target = \"1.73\"\nmsg.code = 5636;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":1580,"wires":[["b37e4ad79e83114f"]]},{"id":"b0f5ef066bf1395f","type":"inject","z":"a9497c78729f4dd4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":true,"onceDelay":"36","topic":"","payload":"Started!","payloadType":"str","x":300,"y":1580,"wires":[["8cf0aac16e8c2c21"]]},{"id":"8dc241ea9509c231","type":"comment","z":"a9497c78729f4dd4","name":"Read status of humidity sensor that is not able to broadcast","info":"","x":410,"y":1500,"wires":[]},{"id":"288fb7fcb88c4e42","type":"comment","z":"a9497c78729f4dd4","name":"Inject node is set to start with a delay of 36sec and repeat every 60 sec","info":"","x":500,"y":1540,"wires":[]},{"id":"de7ba2854ad1de3b","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch2","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 2,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1180,"wires":[["ccbc003c99fd872b"]]},{"id":"ad45c67a7da115bd","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch1","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 1,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1120,"wires":[["ccbc003c99fd872b"]]},{"id":"5d4c382578d144d6","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch4","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 4,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1300,"wires":[["ccbc003c99fd872b"]]},{"id":"aefed992f7ebab94","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch3","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 3,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1240,"wires":[["ccbc003c99fd872b"]]},{"id":"42cd5965737634f4","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch5","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 5,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1360,"wires":[["ccbc003c99fd872b"]]},{"id":"6c6516db17ff17e3","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"32","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1240,"wires":[["aefed992f7ebab94"]]},{"id":"d0a0ecc1d3ebd4a6","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1180,"wires":[["de7ba2854ad1de3b"]]},{"id":"9753ebd5c0ca06ea","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"34","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1300,"wires":[["5d4c382578d144d6"]]},{"id":"fca97524831f5435","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"36","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1360,"wires":[["42cd5965737634f4"]]},{"id":"c46f2b53ad474ccb","type":"function","z":"a9497c78729f4dd4","name":"Read status Floorheat ch6","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 6,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1420,"wires":[["ccbc003c99fd872b"]]},{"id":"7c170944cb860cab","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"38","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1420,"wires":[["c46f2b53ad474ccb"]]},{"id":"a4071d915c53a9e2","type":"comment","z":"a9497c78729f4dd4","name":"Floorheat on Heatingmodule","info":"","x":660,"y":1060,"wires":[]},{"id":"d72cbe598f1b03a5","type":"delay","z":"a9497c78729f4dd4","name":"","pauseType":"delay","timeout":"28","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":620,"y":1120,"wires":[["ad45c67a7da115bd"]]},{"id":"309318e35173ed59","type":"hdl-controller","host":"192.168.3.143","port":"6000","subnetid":"200","deviceid":"0","broadcast":true,"daliId":""}]

Network 1 status

[{"id":"e22cabcde1a702d9","type":"tab","label":"Network 1 status","disabled":false,"info":"","env":[]},{"id":"a48d5306ca9c0ae8","type":"inject","z":"e22cabcde1a702d9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"40","crontab":"","once":true,"onceDelay":"","topic":"","payload":"Started!","payloadType":"str","x":540,"y":200,"wires":[["42485841b20269a4","dbc66632f6aaa661","b426c567dc52c437","efa76529c23b837e","e9a2bd41418b4c0d","ebf980e866eeaaf3","87db51cbcedb6dc7","e6dac46b6db3d22b","e90feadd34303f00","5ff2be8a31c4ec5d","6209163bd9ecd090","c0144467f2126a92","83ea7bf020fee755","6833b86857c73ee2","df2e83ba63571b5d","224460637f7a6a41","2783c58654012e32","30c01640d9f039ac"]]},{"id":"036c6677bca17d75","type":"comment","z":"e22cabcde1a702d9","name":"Read startup Status from HDL","info":"","x":520,"y":120,"wires":[]},{"id":"250e9085f9491e43","type":"function","z":"e22cabcde1a702d9","name":"Read status Dimmer 2","func":"msg.target = \"1.61\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":260,"wires":[["8cb050350438fd5d"]]},{"id":"42485841b20269a4","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"4","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":260,"wires":[["250e9085f9491e43"]]},{"id":"8cb050350438fd5d","type":"hdl-raw-out","z":"e22cabcde1a702d9","controller":"838cf940ea8d3ea2","name":"Command to HDL","x":1690,"y":720,"wires":[]},{"id":"f6a6dcea37a8f92b","type":"function","z":"e22cabcde1a702d9","name":"Read status Dimmer 3","func":"msg.target = \"1.62\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":320,"wires":[["8cb050350438fd5d"]]},{"id":"dbc66632f6aaa661","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"8","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":320,"wires":[["f6a6dcea37a8f92b"]]},{"id":"b426c567dc52c437","type":"function","z":"e22cabcde1a702d9","name":"Read status Dimmer 1","func":"msg.target = \"1.60\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":200,"wires":[["8cb050350438fd5d"]]},{"id":"f2bee06417c3991c","type":"function","z":"e22cabcde1a702d9","name":"Read status Relay 1","func":"msg.target = \"1.1\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":380,"wires":[["8cb050350438fd5d"]]},{"id":"584b3693f59179ee","type":"function","z":"e22cabcde1a702d9","name":"Read status Relay 2","func":"msg.target = \"1.2\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":440,"wires":[["8cb050350438fd5d"]]},{"id":"922c82db2accbd29","type":"function","z":"e22cabcde1a702d9","name":"Read status Relay 3","func":"msg.target = \"1.82\"\nmsg.code = 0x0033;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":500,"wires":[["8cb050350438fd5d"]]},{"id":"efa76529c23b837e","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":380,"wires":[["f2bee06417c3991c"]]},{"id":"e9a2bd41418b4c0d","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"8","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":860,"y":440,"wires":[["584b3693f59179ee"]]},{"id":"ebf980e866eeaaf3","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":860,"y":500,"wires":[["922c82db2accbd29"]]},{"id":"87db51cbcedb6dc7","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"12","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":860,"y":620,"wires":[["55e64dc495777731"]]},{"id":"c8920d8bc211f19c","type":"comment","z":"e22cabcde1a702d9","name":"Dimmers And Relays","info":"Only one message per dimmer or relay module. Module will answer with all channels in one message.","x":880,"y":160,"wires":[]},{"id":"3ad62c924ccb1c6b","type":"comment","z":"e22cabcde1a702d9","name":"Universal Switches","info":"One message per US needs to be sendt.","x":870,"y":560,"wires":[]},{"id":"55e64dc495777731","type":"function","z":"e22cabcde1a702d9","name":"Read status US 1.22 1-4","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 1},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 2},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 3},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 4},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1130,"y":620,"wires":[["8cb050350438fd5d"]]},{"id":"f88fc24c41a97f25","type":"function","z":"e22cabcde1a702d9","name":"Read status US 1.22 20- 23","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 20},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 21},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 22},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 23},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":800,"wires":[["8cb050350438fd5d"]]},{"id":"de1ce48d5c39c95b","type":"function","z":"e22cabcde1a702d9","name":"Read status US 1.22 16","func":"var msg = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 16},  \n    };\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1130,"y":680,"wires":[["8cb050350438fd5d"]]},{"id":"56b1599f82cf3c35","type":"function","z":"e22cabcde1a702d9","name":"Read status US 1.22 60-62","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 60},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 61},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 62},  \n    };\nreturn [ [ msg1, msg2, msg3 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":860,"wires":[["8cb050350438fd5d"]]},{"id":"be838df8b0b371ae","type":"function","z":"e22cabcde1a702d9","name":"Read status US 1.22 225 - 228","func":"var msg1 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 225},  \n    };\nvar msg2 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 226},  \n    };\nvar msg3 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 227},  \n    };\nvar msg4 = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 228},  \n    };\nreturn [ [ msg1, msg2, msg3, msg4 ], ]","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1150,"y":920,"wires":[["8cb050350438fd5d"]]},{"id":"8ffdc8540d9243fc","type":"function","z":"e22cabcde1a702d9","name":"Read status US 1.22 18","func":"var msg = { \n    target: \"1.22\",\n    code: 0xe018,\n    payload:{switch: 18},  \n    };\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1130,"y":740,"wires":[["8cb050350438fd5d"]]},{"id":"e6dac46b6db3d22b","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"14","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":860,"y":680,"wires":[["de1ce48d5c39c95b","8ffdc8540d9243fc"]]},{"id":"5ff2be8a31c4ec5d","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"16","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":860,"y":800,"wires":[["f88fc24c41a97f25"]]},{"id":"6209163bd9ecd090","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"18","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":860,"y":860,"wires":[["56b1599f82cf3c35"]]},{"id":"e90feadd34303f00","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":860,"y":920,"wires":[["be838df8b0b371ae"]]},{"id":"c0144467f2126a92","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"22","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":860,"y":1020,"wires":[["2af2840848500a3d"]]},{"id":"c80ca5afd0bed6aa","type":"comment","z":"e22cabcde1a702d9","name":"Floorheat on DLP","info":"","x":860,"y":980,"wires":[]},{"id":"2af2840848500a3d","type":"function","z":"e22cabcde1a702d9","name":"Read status Floorheat from DLP","func":"msg.target = \"1.106\"\nmsg.code = 6468;\n    \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1150,"y":1020,"wires":[["8cb050350438fd5d"]]},{"id":"ccf685ee1a24435a","type":"hdl-raw-out","z":"e22cabcde1a702d9","controller":"838cf940ea8d3ea2","name":"","x":870,"y":1600,"wires":[]},{"id":"d342ea44ae3e8db9","type":"function","z":"e22cabcde1a702d9","name":"Read sensor","func":"msg.target = \"1.73\"\nmsg.code = 5636;\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":1600,"wires":[["ccf685ee1a24435a"]]},{"id":"e659e6f96b020950","type":"inject","z":"e22cabcde1a702d9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":true,"onceDelay":"36","topic":"","payload":"Started!","payloadType":"str","x":540,"y":1600,"wires":[["d342ea44ae3e8db9"]]},{"id":"f146be0f98acfd18","type":"comment","z":"e22cabcde1a702d9","name":"Read status of humidity sensor that is not able to broadcast","info":"","x":650,"y":1520,"wires":[]},{"id":"aafab0aeb5941760","type":"comment","z":"e22cabcde1a702d9","name":"Inject node is set to start with a delay of 36sec and repeat every 60 sec","info":"","x":740,"y":1560,"wires":[]},{"id":"a56b98f385322380","type":"function","z":"e22cabcde1a702d9","name":"Read status Floorheat ch2","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 2,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":1200,"wires":[["8cb050350438fd5d"]]},{"id":"bc11888f08cedf4b","type":"function","z":"e22cabcde1a702d9","name":"Read status Floorheat ch1","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 1,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":1140,"wires":[["8cb050350438fd5d"]]},{"id":"9b17b78fa9623b93","type":"function","z":"e22cabcde1a702d9","name":"Read status Floorheat ch4","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 4,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":1320,"wires":[["8cb050350438fd5d"]]},{"id":"dbc72ca5bd6ea38e","type":"function","z":"e22cabcde1a702d9","name":"Read status Floorheat ch3","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 3,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":1260,"wires":[["8cb050350438fd5d"]]},{"id":"228a01f3d240076b","type":"function","z":"e22cabcde1a702d9","name":"Read status Floorheat ch5","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 5,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":1380,"wires":[["8cb050350438fd5d"]]},{"id":"6833b86857c73ee2","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"28","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":1260,"wires":[["dbc72ca5bd6ea38e"]]},{"id":"83ea7bf020fee755","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"26","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":1200,"wires":[["a56b98f385322380"]]},{"id":"df2e83ba63571b5d","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":1320,"wires":[["9b17b78fa9623b93"]]},{"id":"224460637f7a6a41","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"32","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":1380,"wires":[["228a01f3d240076b"]]},{"id":"048a254d4f0d9426","type":"function","z":"e22cabcde1a702d9","name":"Read status Floorheat ch6","func":"msg.target = \"1.14\"\nmsg.code = 7262;\nmsg.payload = {\n    channel: 6,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":1440,"wires":[["8cb050350438fd5d"]]},{"id":"2783c58654012e32","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"34","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":1440,"wires":[["048a254d4f0d9426"]]},{"id":"2e4e277511edfde3","type":"comment","z":"e22cabcde1a702d9","name":"Floorheat on Heatingmodule","info":"","x":900,"y":1080,"wires":[]},{"id":"30c01640d9f039ac","type":"delay","z":"e22cabcde1a702d9","name":"","pauseType":"delay","timeout":"24","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":860,"y":1140,"wires":[["bc11888f08cedf4b"]]},{"id":"838cf940ea8d3ea2","type":"hdl-controller","host":"192.168.3.142","port":"6000","subnetid":"1","deviceid":"0","broadcast":true,"daliId":""}]

That worked, thanks.

Is the multimodule at 200.1 or 2.1?

Can see there are some errors, and also thinking about it it would be best to have the gateway stuff in one flow and not two like now as this will cause more messages on the networks and mqtt server. Will post a fixed flow for you to try once you confirm the address.

Thanks. The multimodule has 2.1 address now. I changed it from 200.1 to 2.1.

Try disabling your current flows and import this flow instead, here everything is in just one flow.

You will have to add your mqtt server to the 2x MQTT nodes.

Have changed device id from 0 to 77 and 78 if you have anything with that id it needs to be changed again but do not recomend using 0 or the same as the ip module as this sometimes create bugs.

Added a filter node at the end to dirrect the commands to the correct hdl subnetwork.

Added the startup status to the bottom of this flow and also removed everything you do not have.

Let me know how it works for you.

I’m new to both HA, NodeRED and MQTT so surely a stupid question. When I test with MQTT Explorer I come to the $ SYS folder. I try to search for both “sc” and “HDL” folder without it coming up. i NodeRED has changed the IP to the HDL controller on “From HDL”, but it appears “Innvalied propeties: - controller”. I have set the correct “Subnet ID” and Device ID “on the controller.” Status updates from MQTT “is” connected ". Any suggestions on what I did wrong?

Hi.

There is an error in the HDL in node. Can you share a screenshot of the from HDL settings. This should point to the IP of your gateway. It should have the same subnet as IP module but not the same device id as the ipmodule. device id should be unique. Do you get any errors in the nodered debug window when deploying?

Hi and thanks for the quick reply. Picture of where I have entered IP, subnet ID and Device ID.

It should have the same subnet as IP module but not the same device id as the ipmodule. What do you mean? Thought they were going to be the same? I have set the same as the IP module. Tried to change to a different Device ID, but still the same image in MQTT Explorer.

Device id in the settings is the device id of your nodered messages. So all of your commands here will be sendt from subnet 1 device 0 to the rest of your installation. Some ip modules dont like if the nodered device id is the same as the ip module device id. Also you can enter a random number in the dali id, witch should clear the warning triangle. Do you not get any messages to “HDL” topic in MQTT when attempting to control a light from HA either?

Sorry stupid question, but where do I see message? In MQTT explorer or in NodeRED?

I only have IP module, logic module and the floor heating module running now. Pressed manually on channel 3 on floot heating module, but can not find any messages from this.

Should get a new HDL topic in MQTT explorer see picture.
hdl mqtt

I do not know if the button should do something.

Have you programed the heatmodule and have it working?

If you try to open hdl buspro setup and enter the module do you get a new message?

You can also add a debug node after the “from hdl” in nodered and you should then see all the messages beeing sendt on the HDL bus in the nodered debug window.

Thank you, now I have come a step further.

I have just started putting out the equipment from SmartHDL. I have used HDL buspro tool to get the devices online. When I press the button in the HDL buspro tool it comes up in MQTT. Nothing happens when I press the physical button. Sees that only the last channel appears in MQTT. If I select another channel, it overwrites the last value. I want to connect a couple of other devices that might be better to test with.

I do not have the heatmodule but that does not look right to me, could also be my memory is bad but each channel should be on its own topic.

Did you install the updated commands.js file? If not follow this step

Yes it is easyer to test with relay and dimmer or maby a sensor, then you can see how it should work at least :smiley:

I have not installed command.js. Once again I have to ask where do I do this? Uses the terminal and find a nodered folder under /config /node-red, but no files under there called commands.js

For me it is in \IP.adress\config\node-red\node_modules\smart-bus-mrgadget\lib

Steps:

  1. First you need to find your commands.js file. (For me it is in \IP.adress\config\node-red\node_modules\smart-bus-mrgadget\lib)
  2. Replace the file with the new file
  3. In HA go to Configuration → Add-ons, backups & Supervisor → Node-RED and press RESTART
  4. When nodered is restarted it should be decoding the heatmodule messages correct.

Hello

In the last update for Home Assistant (August), I noticed that we have to rewrite the sensors in configuration.yaml. Looks like the mqtt platform is deprecated.

Here is the explanation what to do I think:

Home Assistant

2022.6: Gaining new insights!

Compare your energy data, better logbooks, calendar trigger with offsets, streamlining the OAuth2 experience, and more performance updates!

Did any of you update your mqtt sensors like this and got it to work?

I imported noded flow to monitor the light status, but it didn’t work. Sometimes the HDL is turned on, but it still can’t be fed back to the home assistant

Hi
Can you use it after you re edit it? I can’t use it after I re edit it。

@Linax / Community - do you know if its possible to use the HDL Smartbus NodeRed implementation for Smart Bus G4? (as it seems HDL is based on the same smart-bus protocols as smart bus G4). We have this IP Bridge device installed (Smart-Bus Hybrid Integration Link with IP - SB-RSIP-DN)

I noticed the command codes and parameters look the same between the two (for example, 49 is for a Light/Relay on both) (Smart-Bus Home Automation Technology - Downloads Manuals) . I’ve reached a dead end trying to get the node-red flow to work, as when the lighting on/off command is sent to hdl-raw-out, nothing seems to happen (even though it all seems configured correctly in terms of Gateway IP and Port).