For the message you sendt there is more than on, description on your message in ():
msg={
target: “1.3”, (Subnet and channel of Floorheat module)
code: 7260, (Command for controling the Floor heating module)
payload:{“channel”:1, (Channel on the heatmodule you want to control)
“work”:{“type”:0,“status”:true}, (Type= 0:Heating, 1:Cooling, 2: Heating power output, 3: Cooling power output. Status= True: ON, False: OFF)
“temperature”:{“type”:0,“normal”:23,“day”:20,“night”:20,“away”:20}, (Type= 0: Celsius, 1: Fahrenheit. Normal = temperature for normal mode. ++++)
“mode”:1,“valve”:false,“watering”:{“time”:20} (Mode= 1: Normal, 2: Day, 3: Night, 4: Away, 5 Timer.)
Have made an attempt on a gateway from HDL to Homekit but do not have a Iphone or Ipad nor the HDL heatmodule so have not done any testing but should give you a starting point.
I used the palette “node-red-contrib-homekit-bridged” in nodered.
[{"id":"4ef634328f92511d","type":"tab","label":"Homekit HDL Termostat","disabled":false,"info":"","env":[]},{"id":"c268eb03f88f11c3","type":"homekit-service","z":"4ef634328f92511d","isParent":true,"hostType":"0","bridge":"cf42cb6346cc105a","accessoryId":"","parentService":"","name":"Subnet1 Address3 CH1","serviceName":"Thermostat","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.3","serialNo":"Default Serial Number","firmwareRev":"1.4.3","hardwareRev":"1.4.3","softwareRev":"1.4.3","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{\"TargetHeatingCoolingState\":{\"validValues\":[0,1]},\"CurrentHeatingCoolingState\":{\"validValues\":[0,1]},\"TargetTemperature\":{\"Minimum Value\":11,\"Maximum Value\":32,\"Minimum Step\":1}}","waitForSetupMsg":false,"outputs":2,"x":950,"y":780,"wires":[["7d9d0e7b8d4a6c25"],[]]},{"id":"bf10fe348a05d561","type":"inject","z":"4ef634328f92511d","name":"","props":[{"p":"payload","v":"Started!","vt":"str"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"Started!","payloadType":"str","x":120,"y":100,"wires":[["9fb39de4a03cd158","9a6341e1ad1c824f","2cc316caad6c61e1","bf0848e636884c16","3e15f5f684b3206b","2ce81424078c0737"]]},{"id":"cbe3e7320429c062","type":"comment","z":"4ef634328f92511d","name":"Read startup Status","info":"","x":110,"y":40,"wires":[]},{"id":"05afe1694f0c3e62","type":"function","z":"4ef634328f92511d","name":"Read status Floorheat ch2","func":"msg.target = \"1.3\"\nmsg.code = 7262;\nmsg.payload = {\n channel: 2,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":160,"wires":[["fbb36ff4507cfeb0"]]},{"id":"3e15f5f684b3206b","type":"function","z":"4ef634328f92511d","name":"Read status Floorheat ch1","func":"msg.target = \"1.3\"\nmsg.code = 7262;\nmsg.payload = {\n channel: 1,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":100,"wires":[["fbb36ff4507cfeb0"]]},{"id":"3044215bd55ab948","type":"function","z":"4ef634328f92511d","name":"Read status Floorheat ch4","func":"msg.target = \"1.3\"\nmsg.code = 7262;\nmsg.payload = {\n channel: 4,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":280,"wires":[["fbb36ff4507cfeb0"]]},{"id":"f24953c6b7073ef1","type":"function","z":"4ef634328f92511d","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":580,"y":220,"wires":[["fbb36ff4507cfeb0"]]},{"id":"19a0de1904d2785a","type":"function","z":"4ef634328f92511d","name":"Read status Floorheat ch5","func":"msg.target = \"1.3\"\nmsg.code = 7262;\nmsg.payload = {\n channel: 5,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":340,"wires":[["fbb36ff4507cfeb0"]]},{"id":"9a6341e1ad1c824f","type":"delay","z":"4ef634328f92511d","name":"","pauseType":"delay","timeout":"4","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":340,"y":220,"wires":[["f24953c6b7073ef1"]]},{"id":"9fb39de4a03cd158","type":"delay","z":"4ef634328f92511d","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":340,"y":160,"wires":[["05afe1694f0c3e62"]]},{"id":"2cc316caad6c61e1","type":"delay","z":"4ef634328f92511d","name":"","pauseType":"delay","timeout":"6","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":340,"y":280,"wires":[["3044215bd55ab948"]]},{"id":"bf0848e636884c16","type":"delay","z":"4ef634328f92511d","name":"","pauseType":"delay","timeout":"8","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":340,"y":340,"wires":[["19a0de1904d2785a"]]},{"id":"ed5dd45d147e906e","type":"function","z":"4ef634328f92511d","name":"Read status Floorheat ch6","func":"msg.target = \"1.3\"\nmsg.code = 7262;\nmsg.payload = {\n channel: 6,\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":400,"wires":[["fbb36ff4507cfeb0"]]},{"id":"2ce81424078c0737","type":"delay","z":"4ef634328f92511d","name":"","pauseType":"delay","timeout":"8","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":340,"y":400,"wires":[["ed5dd45d147e906e"]]},{"id":"2ca0a25bfda4b0c0","type":"comment","z":"4ef634328f92511d","name":"HDL feedback to Homekit","info":"","x":130,"y":480,"wires":[]},{"id":"6d9045e042eb2f19","type":"hdl-raw-in","z":"4ef634328f92511d","controller":"","name":"From HDL","x":80,"y":560,"wires":[["574b813084033448"]]},{"id":"574b813084033448","type":"switch","z":"4ef634328f92511d","name":"Code","property":"code","propertyType":"msg","rules":[{"t":"eq","v":"7263","vt":"str"},{"t":"eq","v":"7261","vt":"str"}],"checkall":"false","repair":false,"outputs":2,"x":210,"y":560,"wires":[["1a1c9867a0dc6915","8a92000e68f47b35"],["8a92000e68f47b35","1a1c9867a0dc6915"]]},{"id":"1a1c9867a0dc6915","type":"function","z":"4ef634328f92511d","name":"Save msg to flow variable","func":"//Save to flow variable for later use\nflow.set(\"hdl/hm/\" + msg.sender + \"/\" + msg.payload.channel +\"/hdlstate\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":540,"wires":[[]]},{"id":"8a92000e68f47b35","type":"function","z":"4ef634328f92511d","name":"Floorheat Update/Answer from Heatmodule","func":"//Insert MQTT Topic\nmsg.topic = \"hdl/hm/\" + msg.sender + \".\" + msg.payload.channel;\n\n//Power Change true/false to ON/OFF\nvar power = msg.payload.work.status;\nif (power === true){newpower = \"heat\"}\nif (power === false){newpower = \"off\"}\nmsg.payload.status = newpower\n\n//Mode Change from nr to mode 1:Normal 2:Day 3:Night 4:Away 5:Timer. And add current temprature\nvar fhmode= msg.payload.mode \nif (fhmode === 1){var textmode = \"Normal\"; var tempnow = msg.payload.temperature.normal}\nif (fhmode === 2){var textmode = \"Day\"; var tempnow = msg.payload.temperature.day}\nif (fhmode === 3){var textmode = \"Night\"; var tempnow = msg.payload.temperature.night}\nif (fhmode === 4){var textmode = \"Away\"; var tempnow = msg.payload.temperature.away}\nif (fhmode === 5){var textmode = \"Timer\"}\nmsg.payload.textmode= textmode\nmsg.payload.temperature.now = tempnow\n\n//Awaymode\n//if (textmode ==\"Away\"){msg.payload.awaymode = \"On\"}\n// else{msg.payload.awaymode = \"Off\"}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":580,"wires":[["fd8179d24076cfa0"]]},{"id":"47c9bd4694a5e6fa","type":"switch","z":"4ef634328f92511d","name":"Channel","property":"payload.channel","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":100,"y":640,"wires":[["d1b2be92addc53fd"],["7037212fd03b8bec"]]},{"id":"4a2d130433ed3902","type":"switch","z":"4ef634328f92511d","name":"Mode","property":"payload.TargetHeatingCoolingState","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":1270,"y":760,"wires":[["1e367a58fcbc4c8f"]]},{"id":"d6e53f2b46e552ca","type":"switch","z":"4ef634328f92511d","name":"Temp","property":"payload.TargetTemperature","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":1270,"y":800,"wires":[["edf1c4b83457df93"]]},{"id":"fd8179d24076cfa0","type":"switch","z":"4ef634328f92511d","name":"Sender","property":"sender","propertyType":"msg","rules":[{"t":"eq","v":"1.3","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":720,"y":580,"wires":[["47c9bd4694a5e6fa"]]},{"id":"25816f1c9d276a48","type":"switch","z":"4ef634328f92511d","name":"ON OFF","property":"payload.work.status","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":420,"y":680,"wires":[["66b396789b3deed0"],["e36ec3e906984131"]]},{"id":"d1b2be92addc53fd","type":"switch","z":"4ef634328f92511d","name":"Heat / Cool","property":"payload.work.type","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":290,"y":740,"wires":[["25816f1c9d276a48","a7d7d41e39d3681a","01538d95eec834be"],[]]},{"id":"328826d0e4d80f00","type":"comment","z":"4ef634328f92511d","name":"CH 1","info":"","x":270,"y":640,"wires":[]},{"id":"66b396789b3deed0","type":"change","z":"4ef634328f92511d","name":"Feedback to ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"TargetHeatingCoolingState\":1}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":660,"wires":[["fcd84f5cd960a882"]]},{"id":"e36ec3e906984131","type":"change","z":"4ef634328f92511d","name":"Feedback to OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"TargetHeatingCoolingState\":0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":700,"wires":[["1dfc696c6b898b3c"]]},{"id":"7d9d0e7b8d4a6c25","type":"function","z":"4ef634328f92511d","name":"Flow get","func":"//Get Old status from flow variable for complete message\nmsg.oldhdlstate =flow.get(\"hdl/hm/\" + \"1.3\" + \"/\" + 1 + \"/hdlstate\");\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":780,"wires":[["4a2d130433ed3902","d6e53f2b46e552ca"]]},{"id":"1e367a58fcbc4c8f","type":"function","z":"4ef634328f92511d","name":"New Mode","func":"// Change from Off or heat to true/false\nif (msg.payload == 0) {msg.oldhdlstate.work.status = false}\nif (msg.payload == 1) {msg.oldhdlstate.work.status = true}\n//Build new HDL message\nmsg.code = 7260\nmsg.payload = msg.oldhdlstate\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1410,"y":760,"wires":[["fbb36ff4507cfeb0"]]},{"id":"fbb36ff4507cfeb0","type":"hdl-raw-out","z":"4ef634328f92511d","controller":"","name":"To HDL","x":1640,"y":480,"wires":[]},{"id":"fcd84f5cd960a882","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":660,"wires":[["c268eb03f88f11c3"]]},{"id":"1dfc696c6b898b3c","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":700,"wires":[["c268eb03f88f11c3"]]},{"id":"4e8e3f77aba16cca","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":760,"wires":[["c268eb03f88f11c3"]]},{"id":"a7d7d41e39d3681a","type":"function","z":"4ef634328f92511d","name":"Update Current Temperature","func":"var currenttemp = msg.payload.temperature.current\nmsg.payload = {\"CurrentTemperature\": currenttemp}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":760,"wires":[["4e8e3f77aba16cca"]]},{"id":"62af807636879be4","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":820,"wires":[["c268eb03f88f11c3"]]},{"id":"01538d95eec834be","type":"function","z":"4ef634328f92511d","name":"Update Setpoint Temperature","func":"var settemp = msg.payload.temperature.normal\nmsg.payload = {\"TargetTemperature\": settemp}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":820,"wires":[["62af807636879be4"]]},{"id":"f4e2b570dd126f38","type":"function","z":"4ef634328f92511d","name":"Update Setpoint Temperature","func":"//Mode Change from nr to mode 1:Normal 2:Day 3:Night 4:Away 5:Timer. And add current temprature\nvar fhmode= msg.payload.mode \nif (fhmode === 1){var textmode = \"Normal\"; var tempnow = msg.payload.temperature.normal}\nif (fhmode === 2){var textmode = \"Day\"; var tempnow = msg.payload.temperature.day}\nif (fhmode === 3){var textmode = \"Night\"; var tempnow = msg.payload.temperature.night}\nif (fhmode === 4){var textmode = \"Away\"; var tempnow = msg.payload.temperature.away}\nif (fhmode === 5){var textmode = \"Timer\"}\n\nmsg.payload = {\"TargetTemperature\": tempnow}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":880,"wires":[["a883de037fff9d6c"]]},{"id":"a883de037fff9d6c","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":880,"wires":[["c268eb03f88f11c3"]]},{"id":"edf1c4b83457df93","type":"function","z":"4ef634328f92511d","name":"New Temp","func":"// Check witch mode active and save new temperature to that mode\nnormal = msg.oldhdlstate.temperature.normal \nday = msg.oldhdlstate.temperature.day\nnight = msg.oldhdlstate.temperature.night\naway = msg.oldhdlstate.temperature.away\n\nif (msg.oldhdlstate.mode === 1){normal = msg.payload}\nif (msg.oldhdlstate.mode === 2){day = msg.payload}\nif (msg.oldhdlstate.mode === 3){night = msg.payload}\nif (msg.oldhdlstate.mode === 4){away = msg.payload}\n\nmsg.oldhdlstate.temperature.normal = Number(normal)\nmsg.oldhdlstate.temperature.day = Number(day)\nmsg.oldhdlstate.temperature.night = Number(night)\nmsg.oldhdlstate.temperature.away = Number(away)\n\n//Build new HDL message\nmsg.code = 7260\nmsg.payload = msg.oldhdlstate\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1410,"y":800,"wires":[["fbb36ff4507cfeb0"]]},{"id":"980e8da61728d19c","type":"homekit-service","z":"4ef634328f92511d","isParent":true,"hostType":"0","bridge":"cf42cb6346cc105a","accessoryId":"","parentService":"","name":"Subnet1 Address3 CH1","serviceName":"Thermostat","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.3","serialNo":"Default Serial Number","firmwareRev":"1.4.3","hardwareRev":"1.4.3","softwareRev":"1.4.3","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{\"TargetHeatingCoolingState\":{\"validValues\":[0,1]},\"CurrentHeatingCoolingState\":{\"validValues\":[0,1]},\"TargetTemperature\":{\"Minimum Value\":11,\"Maximum Value\":32,\"Minimum Step\":1}}","waitForSetupMsg":false,"outputs":2,"x":950,"y":1080,"wires":[["1705fe2048b6fb1b"],[]]},{"id":"029dbe4f1010b4c6","type":"switch","z":"4ef634328f92511d","name":"Mode","property":"payload.TargetHeatingCoolingState","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":1270,"y":1060,"wires":[["abf834d94c659dab"]]},{"id":"c81abd53631448e0","type":"switch","z":"4ef634328f92511d","name":"Temp","property":"payload.TargetTemperature","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":1270,"y":1100,"wires":[["29b2849db145b6ca"]]},{"id":"132410ca6ec3a556","type":"switch","z":"4ef634328f92511d","name":"ON OFF","property":"payload.work.status","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":420,"y":980,"wires":[["9bb1e2bed344ef7c"],["c64e343b01341329"]]},{"id":"7037212fd03b8bec","type":"switch","z":"4ef634328f92511d","name":"Heat / Cool","property":"payload.work.type","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":290,"y":1040,"wires":[["132410ca6ec3a556","497d458698d49b5a","8b260894a9086eef"],[]]},{"id":"dc86934b17616e6a","type":"comment","z":"4ef634328f92511d","name":"CH 2","info":"","x":270,"y":940,"wires":[]},{"id":"9bb1e2bed344ef7c","type":"change","z":"4ef634328f92511d","name":"Feedback to ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"TargetHeatingCoolingState\":1}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":960,"wires":[["116feee5a4ace1bd"]]},{"id":"c64e343b01341329","type":"change","z":"4ef634328f92511d","name":"Feedback to OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"TargetHeatingCoolingState\":0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":1000,"wires":[["0165bb6f24660509"]]},{"id":"1705fe2048b6fb1b","type":"function","z":"4ef634328f92511d","name":"Flow get","func":"//Get Old status from flow variable for complete message\nmsg.oldhdlstate =flow.get(\"hdl/hm/\" + \"1.3\" + \"/\" + 2 + \"/hdlstate\");\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":1080,"wires":[["029dbe4f1010b4c6","c81abd53631448e0"]]},{"id":"abf834d94c659dab","type":"function","z":"4ef634328f92511d","name":"New Mode","func":"// Change from Off or heat to true/false\nif (msg.payload == 0) {msg.oldhdlstate.work.status = false}\nif (msg.payload == 1) {msg.oldhdlstate.work.status = true}\n//Build new HDL message\nmsg.code = 7260\nmsg.payload = msg.oldhdlstate\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1410,"y":1060,"wires":[["fbb36ff4507cfeb0"]]},{"id":"116feee5a4ace1bd","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":960,"wires":[["980e8da61728d19c"]]},{"id":"0165bb6f24660509","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":1000,"wires":[["980e8da61728d19c"]]},{"id":"664cbdd402af508f","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":1060,"wires":[["980e8da61728d19c"]]},{"id":"497d458698d49b5a","type":"function","z":"4ef634328f92511d","name":"Update Current Temperature","func":"var currenttemp = msg.payload.temperature.current\nmsg.payload = {\"CurrentTemperature\": currenttemp}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":1060,"wires":[["664cbdd402af508f"]]},{"id":"881ebea675c16e22","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":1120,"wires":[["980e8da61728d19c"]]},{"id":"8b260894a9086eef","type":"function","z":"4ef634328f92511d","name":"Update Setpoint Temperature","func":"var settemp = msg.payload.temperature.normal\nmsg.payload = {\"TargetTemperature\": settemp}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":1120,"wires":[["881ebea675c16e22"]]},{"id":"3ddef043713eca8c","type":"function","z":"4ef634328f92511d","name":"Update Setpoint Temperature","func":"//Mode Change from nr to mode 1:Normal 2:Day 3:Night 4:Away 5:Timer. And add current temprature\nvar fhmode= msg.payload.mode \nif (fhmode === 1){var textmode = \"Normal\"; var tempnow = msg.payload.temperature.normal}\nif (fhmode === 2){var textmode = \"Day\"; var tempnow = msg.payload.temperature.day}\nif (fhmode === 3){var textmode = \"Night\"; var tempnow = msg.payload.temperature.night}\nif (fhmode === 4){var textmode = \"Away\"; var tempnow = msg.payload.temperature.away}\nif (fhmode === 5){var textmode = \"Timer\"}\n\nmsg.payload = {\"TargetTemperature\": tempnow}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":1180,"wires":[["8c152cd0e13797c9"]]},{"id":"8c152cd0e13797c9","type":"rbe","z":"4ef634328f92511d","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":750,"y":1180,"wires":[["980e8da61728d19c"]]},{"id":"29b2849db145b6ca","type":"function","z":"4ef634328f92511d","name":"New Temp","func":"// Check witch mode active and save new temperature to that mode\nnormal = msg.oldhdlstate.temperature.normal \nday = msg.oldhdlstate.temperature.day\nnight = msg.oldhdlstate.temperature.night\naway = msg.oldhdlstate.temperature.away\n\nif (msg.oldhdlstate.mode === 1){normal = msg.payload}\nif (msg.oldhdlstate.mode === 2){day = msg.payload}\nif (msg.oldhdlstate.mode === 3){night = msg.payload}\nif (msg.oldhdlstate.mode === 4){away = msg.payload}\n\nmsg.oldhdlstate.temperature.normal = Number(normal)\nmsg.oldhdlstate.temperature.day = Number(day)\nmsg.oldhdlstate.temperature.night = Number(night)\nmsg.oldhdlstate.temperature.away = Number(away)\n\n//Build new HDL message\nmsg.code = 7260\nmsg.payload = msg.oldhdlstate\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1410,"y":1100,"wires":[["fbb36ff4507cfeb0"]]},{"id":"cf42cb6346cc105a","type":"homekit-bridge","bridgeName":"Nodered Virtual Bridge","pinCode":"283-81-078","port":"","advertiser":"bonjour-hap","allowInsecureRequest":false,"manufacturer":"NRCHKB","model":"1.4.3","serialNo":"Default Serial Number","firmwareRev":"1.4.3","hardwareRev":"1.4.3","softwareRev":"1.4.3","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true,"allowMessagePassthrough":true}]