i've made an Node-Red example which is working for me,it isn't finished..
maybe someone can use it or have a better structure? anyhow feel free to modify and let me know your input
just copy to your clipboard and import in Node-Red, make dummy's in Domoticz and fill the idx the flow.
Code: Select all
[{"id":"6bbbb18.55cde5","type":"tab","label":"Nefit ESP-EMS-Domoticz","disabled":false,"info":""},{"id":"ae5e5ebe.d561d","type":"mqtt in","z":"6bbbb18.55cde5","name":"","topic":"home/ems-esp/boiler_data/#","qos":"2","broker":"84c04735.540278","x":125,"y":20,"wires":[["c4a72dec.c542a"]]},{"id":"171ba472.1669ec","type":"debug","z":"6bbbb18.55cde5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":506,"y":20,"wires":[]},{"id":"c4a72dec.c542a","type":"json","z":"6bbbb18.55cde5","name":"","property":"payload","action":"","pretty":false,"x":86,"y":98,"wires":[["171ba472.1669ec","ea326f3a.c08f4","db3d11f2.295bf","fe94ceab.2b7ea","42a64e97.ce9c9","c693eec0.6d2e5","ede21c10.5f766","6db5c7a0.4f1a08","85e6b231.8d4fa","fd309bda.867c68","36ea249d.41781c"]]},{"id":"4b90b832.0610b8","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":691,"y":142,"wires":[]},{"id":"ea326f3a.c08f4","type":"change","z":"6bbbb18.55cde5","name":"curFlowTemp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.curFlowTemp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":314,"y":142,"wires":[["ac5d6148.d11ac"]]},{"id":"db3d11f2.295bf","type":"change","z":"6bbbb18.55cde5","name":"sysPress","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.sysPress","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":304,"y":96,"wires":[["a2effd65.e6728"]]},{"id":"ac5d6148.d11ac","type":"template","z":"6bbbb18.55cde5","name":"=> idx 698","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 698,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"json","x":518,"y":143,"wires":[["4b90b832.0610b8"]]},{"id":"fe94ceab.2b7ea","type":"change","z":"6bbbb18.55cde5","name":"curBurnPow","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.curBurnPow","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":316,"y":195,"wires":[["3ee74a86.656126"]]},{"id":"3ee74a86.656126","type":"template","z":"6bbbb18.55cde5","name":"=> idx 699","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 699,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"str","x":519,"y":194,"wires":[["6ca6014.7dc9f"]]},{"id":"6ca6014.7dc9f","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":696,"y":195,"wires":[]},{"id":"8b69363e.0dc028","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":700,"y":251,"wires":[]},{"id":"42a64e97.ce9c9","type":"change","z":"6bbbb18.55cde5","name":"boilTemp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.boilTemp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":307,"y":249,"wires":[["dfd57f4e.7357e"]]},{"id":"dfd57f4e.7357e","type":"template","z":"6bbbb18.55cde5","name":"=> idx 700","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 700,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"str","x":521,"y":249,"wires":[["8b69363e.0dc028"]]},{"id":"c693eec0.6d2e5","type":"change","z":"6bbbb18.55cde5","name":"retTemp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.retTemp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":305,"y":302,"wires":[["94e4f746.fc1228"]]},{"id":"94e4f746.fc1228","type":"template","z":"6bbbb18.55cde5","name":"=> idx 701","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 701,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"str","x":524,"y":301,"wires":[["d69bd943.24a368"]]},{"id":"d69bd943.24a368","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":703,"y":300,"wires":[]},{"id":"f8cbaab7.cf8ee8","type":"template","z":"6bbbb18.55cde5","name":"=> idx 702","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 702,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"str","x":524,"y":351,"wires":[["55b4f2d9.0cc7ec"]]},{"id":"ede21c10.5f766","type":"change","z":"6bbbb18.55cde5","name":"pumpMod","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.pumpMod","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":307,"y":351,"wires":[["f8cbaab7.cf8ee8"]]},{"id":"55b4f2d9.0cc7ec","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":704,"y":351,"wires":[]},{"id":"adaeedaf.eb763","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":703,"y":403,"wires":[]},{"id":"ec379ef.e0fdb6","type":"template","z":"6bbbb18.55cde5","name":"=> idx 703","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"command\": \"switchlight\",\n\"idx\": 703, \n\"switchcmd\": \"{{payload}}\" \n}","output":"str","x":526,"y":403,"wires":[["adaeedaf.eb763"]]},{"id":"6db5c7a0.4f1a08","type":"change","z":"6bbbb18.55cde5","name":"heatPmp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.heatPmp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":311,"y":404,"wires":[["ec379ef.e0fdb6"]]},{"id":"a2effd65.e6728","type":"template","z":"6bbbb18.55cde5","name":"=> idx 704","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 704,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"str","x":516,"y":98,"wires":[["982e3907.a8f6f8"]]},{"id":"982e3907.a8f6f8","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":687,"y":98,"wires":[]},{"id":"f61a7c03.da212","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":704,"y":461,"wires":[]},{"id":"8f890fd.c2668f","type":"template","z":"6bbbb18.55cde5","name":"=> idx 705","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 705,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"str","x":524,"y":460,"wires":[["f61a7c03.da212"]]},{"id":"85e6b231.8d4fa","type":"change","z":"6bbbb18.55cde5","name":"outdoorTemp","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.outdoorTemp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":321,"y":459,"wires":[["8f890fd.c2668f"]]},{"id":"fd309bda.867c68","type":"switch","z":"6bbbb18.55cde5","name":"spare","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"","vt":"msg"}],"checkall":"true","repair":false,"outputs":1,"x":296,"y":517,"wires":[[]]},{"id":"36ea249d.41781c","type":"switch","z":"6bbbb18.55cde5","name":"spare","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"","vt":"msg"}],"checkall":"true","repair":false,"outputs":1,"x":298,"y":574,"wires":[[]]},{"id":"c725101a.38706","type":"template","z":"6bbbb18.55cde5","name":"=> idx 706","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 706,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"str","x":526,"y":515,"wires":[["ec10d79.e84a828"]]},{"id":"d83390eb.66fa8","type":"template","z":"6bbbb18.55cde5","name":"=> idx 707","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"idx\" : 706,\n\"nvalue\" : 0,\n\"svalue\" : \"{{payload}}\" \n}","output":"str","x":528,"y":578,"wires":[["b28add15.985c8"]]},{"id":"ec10d79.e84a828","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":703,"y":515,"wires":[]},{"id":"b28add15.985c8","type":"mqtt out","z":"6bbbb18.55cde5","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"84c04735.540278","x":706,"y":579,"wires":[]},{"id":"84c04735.540278","type":"mqtt-broker","z":"","name":"MQTT domoticz","broker":"192.168.1.11","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]