Guest User

Luxronic Datalogger Example

a guest
Dec 21st, 2020
149
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"fcd1fad6.c6a83","type":"tab","label":"Novelan - InfluxDB","disabled":false,"info":""},{"id":"4e38bb2d.01151c","type":"function","z":"fcd1fad6.c6a83","name":"Informationen/Temperaturen","func":"var data = msg.payload[\"Informationen\"][\"Temperaturen\"];\nvar n = 18;\n\nvar msgTEMP = {};\nvar msgArray = [];\nfor (var i = 0; i < n; i++)\n msgArray.push({});\n\n msgTEMP.topic = \"Vorlauf\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[0].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Rücklauf\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[1].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Rücklauf soll\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[\"Rückl.-Soll\"]);\nmsgArray[2].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Heissgas\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[3].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Aussentemperatur\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[4].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Mitteltemperatur\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[5].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Warmwasser-Ist\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[6].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Warmwasser-Soll\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[7].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Wärmequelle-Ein\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[8].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Mischkreis1-Vorlauf\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[9].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Mischkreis1 VL-Soll\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[10].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Vorlauf max.\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[11].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Ansaug VD\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[12].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"VD-Heizung\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[13].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Überhitzung\";\n msgTEMP.unit = \"K\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[14].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Überhitzung Soll\";\n msgTEMP.unit = \"K\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[15].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"TFL1\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[16].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"TFL2\";\n msgTEMP.unit = \"°C\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[17].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n\nreturn msgArray;","outputs":18,"noerr":0,"initialize":"","finalize":"","x":700,"y":220,"wires":[["d8210e8c.4d4ba","fbd64ca7.e0a668"],["d8210e8c.4d4ba","e424624a.96217"],["d8210e8c.4d4ba","f15dd20b.251768"],["d8210e8c.4d4ba","b97a13f7.5965d"],["d8210e8c.4d4ba","12e3a86f.7ce17"],["d8210e8c.4d4ba","fb4e4832.38961"],["d8210e8c.4d4ba","1f0bee9d.6a7641"],["d8210e8c.4d4ba","9c2c1fca.9d791"],["d8210e8c.4d4ba","b3d9ebb9.e474c8"],["d8210e8c.4d4ba","b92f834d.076a98"],["d8210e8c.4d4ba","96a961f2.23ad68"],["d8210e8c.4d4ba","1b799e6e.eb58d2"],["d8210e8c.4d4ba","873c7602.a81d38"],["d8210e8c.4d4ba","94e56f9c.684a48"],["d8210e8c.4d4ba","c16c30b7.21ddf8"],["d8210e8c.4d4ba","df4a1a79.5fbd48"],["d8210e8c.4d4ba","979379a.97f3f88"],["d8210e8c.4d4ba","1f4a348b.859d43"]],"info":"Vorlauf: \"22.3°C\"\nRücklauf: \"23.0°C\"\nRückl.-Soll: \"5.0°C\"\nHeissgas: \"52.3°C\"\nAussentemperatur: \"19.4°C\"\nMitteltemperatur: \"20.9°C\"\nWarmwasser-Ist: \"54.3°C\"\nWarmwasser-Soll: \"53.7°C\"\nWärmequelle-Ein: \"20.1°C\"\nMischkreis1-Vorlauf: \"22.3°C\"\nMischkreis1 VL-Soll: \"20.0°C\"\nVorlauf max.: \"60.0°C\"\nAnsaug VD: \"23.4°C\"\nVD-Heizung: \"48.8°C\"\nÜberhitzung: \"0.9 K\"\nÜberhitzung Soll: \"20.0 K\"\nTFL1: \"27.4°C\"\nTFL2: \"27.7°C\""},{"id":"d8210e8c.4d4ba","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":930,"y":80,"wires":[]},{"id":"22646af.adbf916","type":"function","z":"fcd1fad6.c6a83","name":"Informationen/Eingänge","func":"var data = msg.payload[\"Informationen\"][\"Eingänge\"];\nvar n = 8;\n\nvar msgTEMP = {};\nvar msgArray = [];\nfor (var i = 0; i < n; i++)\n msgArray.push({});\n\n msgTEMP.topic = \"ASD\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[0].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"EVU\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[1].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"HD\";\n msgTEMP.unit = \"bar\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[2].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"MOT\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[3].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"ND\";\n msgTEMP.unit = \"bar\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[4].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Durchfluss\";\n msgTEMP.unit = \"l/h\";\n if (data[msgTEMP.topic] == \"--- l/h\") {\n msgTEMP.payload = 0;\n }else{\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\n }\nmsgArray[5].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"EVU 2\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[6].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"STB E-Stab\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[7].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\nreturn msgArray;","outputs":8,"noerr":0,"initialize":"","finalize":"","x":690,"y":460,"wires":[["d4e23c6a.734c4","2c3ab751.65fb08"],["4db7f50.38e920c","2c3ab751.65fb08"],["eb5ddc1f.294638","2c3ab751.65fb08"],["3f8033ba.e2570c","2c3ab751.65fb08"],["33203187.8f0f0e","2c3ab751.65fb08"],["1617c6a9.9ecf49","2c3ab751.65fb08"],["bb8a9a37.6b6e7","2c3ab751.65fb08"],["39f57027.6b89e","2c3ab751.65fb08"]],"info":"Vorlauf: \"22.3°C\"\nRücklauf: \"23.0°C\"\nRückl.-Soll: \"5.0°C\"\nHeissgas: \"52.3°C\"\nAussentemperatur: \"19.4°C\"\nMitteltemperatur: \"20.9°C\"\nWarmwasser-Ist: \"54.3°C\"\nWarmwasser-Soll: \"53.7°C\"\nWärmequelle-Ein: \"20.1°C\"\nMischkreis1-Vorlauf: \"22.3°C\"\nMischkreis1 VL-Soll: \"20.0°C\"\nVorlauf max.: \"60.0°C\"\nAnsaug VD: \"23.4°C\"\nVD-Heizung: \"48.8°C\"\nÜberhitzung: \"0.9 K\"\nÜberhitzung Soll: \"20.0 K\"\nTFL1: \"27.4°C\"\nTFL2: \"27.7°C\""},{"id":"78b1eb9a.be3404","type":"function","z":"fcd1fad6.c6a83","name":"Informationen/Ausgänge","func":"var data = msg.payload[\"Informationen\"][\"Ausgänge\"];\nvar n = 19;\n\nvar msgTEMP = {};\nvar msgArray = [];\nfor (var i = 0; i < n; i++)\n msgArray.push({});\n\n msgTEMP.topic = \"AV-Abtauventil\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[0].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"BUP\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[1].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"FUP 1\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[2].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"HUP\";\n msgTEMP.unit = \"%\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[3].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Mischer 1 Auf\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[4].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Mischer 1 Zu\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[5].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Ventil.-BOSUP\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[6].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Verdichter 1\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[7].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"ZIP\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[8].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"ZUP\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[9].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"ZWE 1\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[10].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"AO 1\";\n msgTEMP.unit = \"V\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[11].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"AO 2\";\n msgTEMP.unit = \"V\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[12].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"VD-Heizung\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Ein\") ? 1 : 0);\nmsgArray[13].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Freq. Sollwert\";\n msgTEMP.unit = \"rpm\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[14].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Freq. aktuell\";\n msgTEMP.unit = \"rpm\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[15].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Ventilatordrehzahl\";\n msgTEMP.unit = \"rpm\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[16].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"EEV Heizen\";\n msgTEMP.unit = \"%\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[17].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"EEV Kühlen\";\n msgTEMP.unit = \"%\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[18].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n\nreturn msgArray;","outputs":19,"noerr":0,"initialize":"","finalize":"","x":690,"y":680,"wires":[["df6f9dcd.be4ac8","c477d7b4.e8a4a8"],["df6f9dcd.be4ac8","cf8ad9fd.c63af8"],["df6f9dcd.be4ac8","f160e50c.7546"],["df6f9dcd.be4ac8","1f63c782.8fb758"],["df6f9dcd.be4ac8","2a4d0e4.57d5272"],["df6f9dcd.be4ac8","a1d6ff71.0b8368"],["df6f9dcd.be4ac8","d0348645.8654d"],["df6f9dcd.be4ac8","c6fde6c5.4c2c3"],["df6f9dcd.be4ac8","19956d67.42b9f3"],["df6f9dcd.be4ac8","ed3861c9.6a1e7"],["df6f9dcd.be4ac8","67580736.664648"],["df6f9dcd.be4ac8","6510ae65.24285"],["df6f9dcd.be4ac8","b8ee3ac3.d9da88"],["df6f9dcd.be4ac8","f7f5e356.c4fbc8"],["df6f9dcd.be4ac8","e1ac5ce7.79d01"],["df6f9dcd.be4ac8","78a37bb3.669194"],["df6f9dcd.be4ac8","22bb5e67.2db812"],["df6f9dcd.be4ac8","9e24e068.b783c"],["df6f9dcd.be4ac8","30549d10.d7f73a"]],"info":"Vorlauf: \"22.3°C\"\nRücklauf: \"23.0°C\"\nRückl.-Soll: \"5.0°C\"\nHeissgas: \"52.3°C\"\nAussentemperatur: \"19.4°C\"\nMitteltemperatur: \"20.9°C\"\nWarmwasser-Ist: \"54.3°C\"\nWarmwasser-Soll: \"53.7°C\"\nWärmequelle-Ein: \"20.1°C\"\nMischkreis1-Vorlauf: \"22.3°C\"\nMischkreis1 VL-Soll: \"20.0°C\"\nVorlauf max.: \"60.0°C\"\nAnsaug VD: \"23.4°C\"\nVD-Heizung: \"48.8°C\"\nÜberhitzung: \"0.9 K\"\nÜberhitzung Soll: \"20.0 K\"\nTFL1: \"27.4°C\"\nTFL2: \"27.7°C\""},{"id":"df6f9dcd.be4ac8","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":910,"y":560,"wires":[]},{"id":"739c2b12.dae2bc","type":"function","z":"fcd1fad6.c6a83","name":"Informationen/Betriebsstunden","func":"var data = msg.payload[\"Informationen\"][\"Betriebsstunden\"];\nvar n = 7;\n\nvar msgTEMP = {};\nvar msgArray = [];\nfor (var i = 0; i < n; i++)\n msgArray.push({});\n\n msgTEMP.topic = \"Betriebstund. VD1\";\n msgTEMP.unit = \"h\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[0].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Impulse Verdichter 1\";\n msgTEMP.unit = \"h\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[1].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Betriebstunden ZWE1\";\n msgTEMP.unit = \"h\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[2].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Betriebstunden WP\";\n msgTEMP.unit = \"h\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[3].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Betriebstunden Heiz.\";\n msgTEMP.unit = \"h\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[4].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Betriebstunden WW\";\n msgTEMP.unit = \"h\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[5].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Betriebstunden Kuehl\";\n msgTEMP.unit = \"h\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[6].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\nreturn msgArray;","outputs":7,"noerr":0,"initialize":"","finalize":"","x":710,"y":900,"wires":[["36c8f6b1.bd7f92","da0b0136.126ad8"],["36c8f6b1.bd7f92","b30a7db3.e164a"],["36c8f6b1.bd7f92","46c74061.3f5de"],["36c8f6b1.bd7f92","be29d908.869d18"],["36c8f6b1.bd7f92","d4138717.68e728"],["36c8f6b1.bd7f92","8a33bde0.4754c8"],["36c8f6b1.bd7f92","4bc03812.3c1fb8"]],"info":"Vorlauf: \"22.3°C\"\nRücklauf: \"23.0°C\"\nRückl.-Soll: \"5.0°C\"\nHeissgas: \"52.3°C\"\nAussentemperatur: \"19.4°C\"\nMitteltemperatur: \"20.9°C\"\nWarmwasser-Ist: \"54.3°C\"\nWarmwasser-Soll: \"53.7°C\"\nWärmequelle-Ein: \"20.1°C\"\nMischkreis1-Vorlauf: \"22.3°C\"\nMischkreis1 VL-Soll: \"20.0°C\"\nVorlauf max.: \"60.0°C\"\nAnsaug VD: \"23.4°C\"\nVD-Heizung: \"48.8°C\"\nÜberhitzung: \"0.9 K\"\nÜberhitzung Soll: \"20.0 K\"\nTFL1: \"27.4°C\"\nTFL2: \"27.7°C\""},{"id":"36c8f6b1.bd7f92","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":860,"wires":[]},{"id":"2a80c664.3a11e2","type":"function","z":"fcd1fad6.c6a83","name":"Informationen/Anlagenstatus","func":"var data = msg.payload[\"Informationen\"][\"Anlagenstatus\"];\nvar n = 2;\n\nvar msgTEMP = {};\nvar msgArray = [];\nfor (var i = 0; i < n; i++)\n msgArray.push({});\n\n msgTEMP.topic = \"Betriebszustand\";\n msgTEMP.unit = \"\";\n msgTEMP.payload = ((data[msgTEMP.topic]===\"Kühl\") ? -1 : ((data[msgTEMP.topic]===\"Heizen\") ? 1 : ((data[msgTEMP.topic]===\"WW\") ? 2 : 0)) );\nmsgArray[0].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Leistung Ist\";\n msgTEMP.unit = \"kW\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[1].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\nreturn msgArray;","outputs":2,"noerr":0,"initialize":"","finalize":"","x":700,"y":1020,"wires":[["4adef334.d2e43c","70095141.f9b0e"],["4adef334.d2e43c","92bd4eb6.2587f"]],"info":"Vorlauf: \"22.3°C\"\nRücklauf: \"23.0°C\"\nRückl.-Soll: \"5.0°C\"\nHeissgas: \"52.3°C\"\nAussentemperatur: \"19.4°C\"\nMitteltemperatur: \"20.9°C\"\nWarmwasser-Ist: \"54.3°C\"\nWarmwasser-Soll: \"53.7°C\"\nWärmequelle-Ein: \"20.1°C\"\nMischkreis1-Vorlauf: \"22.3°C\"\nMischkreis1 VL-Soll: \"20.0°C\"\nVorlauf max.: \"60.0°C\"\nAnsaug VD: \"23.4°C\"\nVD-Heizung: \"48.8°C\"\nÜberhitzung: \"0.9 K\"\nÜberhitzung Soll: \"20.0 K\"\nTFL1: \"27.4°C\"\nTFL2: \"27.7°C\""},{"id":"4adef334.d2e43c","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":1020,"wires":[]},{"id":"d86dfedb.01f9c","type":"function","z":"fcd1fad6.c6a83","name":"Informationen/Wärmemenge","func":"var data = msg.payload[\"Informationen\"][\"Wärmemenge\"];\nvar n = 4;\n\nvar msgTEMP = {};\nvar msgArray = [];\nfor (var i = 0; i < n; i++)\n msgArray.push({});\n\n msgTEMP.topic = \"Heizung\";\n msgTEMP.unit = \"kWh\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[0].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Warmwasser\";\n msgTEMP.unit = \"kWh\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[1].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Gesamt\";\n msgTEMP.unit = \"kWh\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[2].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\n msgTEMP.topic = \"Zus. Wärmeerz\";\n msgTEMP.unit = \"kWh\";\n msgTEMP.payload = parseFloat(data[msgTEMP.topic]);\nmsgArray[3].payload = {topic:msgTEMP.topic, value:msgTEMP.payload, unit:msgTEMP.unit};\n\nreturn msgArray;","outputs":4,"noerr":0,"initialize":"","finalize":"","x":700,"y":1080,"wires":[["adb7ce72.730ad8","c42fb4ec.84d988"],["adb7ce72.730ad8","8153c705.331ab"],["adb7ce72.730ad8","a947ce0b.2ddb9"],["adb7ce72.730ad8","c9075cdb.cc4358"]],"info":"Vorlauf: \"22.3°C\"\nRücklauf: \"23.0°C\"\nRückl.-Soll: \"5.0°C\"\nHeissgas: \"52.3°C\"\nAussentemperatur: \"19.4°C\"\nMitteltemperatur: \"20.9°C\"\nWarmwasser-Ist: \"54.3°C\"\nWarmwasser-Soll: \"53.7°C\"\nWärmequelle-Ein: \"20.1°C\"\nMischkreis1-Vorlauf: \"22.3°C\"\nMischkreis1 VL-Soll: \"20.0°C\"\nVorlauf max.: \"60.0°C\"\nAnsaug VD: \"23.4°C\"\nVD-Heizung: \"48.8°C\"\nÜberhitzung: \"0.9 K\"\nÜberhitzung Soll: \"20.0 K\"\nTFL1: \"27.4°C\"\nTFL2: \"27.7°C\""},{"id":"adb7ce72.730ad8","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":1080,"wires":[]},{"id":"26d99a32.d353ce","type":"influxdb out","z":"fcd1fad6.c6a83","influxdb":"861fa3dd.7d5fa","name":"","measurement":"NOVELAN","precision":"","retentionPolicy":"","x":1580,"y":620,"wires":[]},{"id":"22e1055c.7d37c2","type":"inject","z":"fcd1fad6.c6a83","name":"every 120s ->10s","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":150,"y":220,"wires":[["71549fd2.a224d"]]},{"id":"d4e23c6a.734c4","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":460,"wires":[["26d99a32.d353ce","cec52d2a.9f3bf8"]]},{"id":"4db7f50.38e920c","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":480,"wires":[["26d99a32.d353ce"]]},{"id":"eb5ddc1f.294638","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":500,"wires":[["26d99a32.d353ce"]]},{"id":"3f8033ba.e2570c","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":520,"wires":[["26d99a32.d353ce"]]},{"id":"33203187.8f0f0e","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":540,"wires":[["26d99a32.d353ce"]]},{"id":"1617c6a9.9ecf49","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":560,"wires":[["26d99a32.d353ce"]]},{"id":"bb8a9a37.6b6e7","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":580,"wires":[["26d99a32.d353ce"]]},{"id":"39f57027.6b89e","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":600,"wires":[["26d99a32.d353ce"]]},{"id":"da0b0136.126ad8","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1060,"wires":[["26d99a32.d353ce"]]},{"id":"b30a7db3.e164a","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1080,"wires":[["26d99a32.d353ce"]]},{"id":"46c74061.3f5de","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1100,"wires":[["26d99a32.d353ce"]]},{"id":"be29d908.869d18","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1120,"wires":[["26d99a32.d353ce"]]},{"id":"d4138717.68e728","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1140,"wires":[["26d99a32.d353ce"]]},{"id":"8a33bde0.4754c8","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1160,"wires":[["26d99a32.d353ce"]]},{"id":"4bc03812.3c1fb8","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1180,"wires":[["26d99a32.d353ce"]]},{"id":"70095141.f9b0e","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1200,"wires":[["26d99a32.d353ce"]]},{"id":"92bd4eb6.2587f","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1220,"wires":[["26d99a32.d353ce"]]},{"id":"c42fb4ec.84d988","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1240,"wires":[["26d99a32.d353ce"]]},{"id":"8153c705.331ab","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1260,"wires":[["26d99a32.d353ce"]]},{"id":"a947ce0b.2ddb9","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1280,"wires":[["26d99a32.d353ce"]]},{"id":"c9075cdb.cc4358","type":"rbe","z":"fcd1fad6.c6a83","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload.value","x":1250,"y":1300,"wires":[["26d99a32.d353ce"]]},{"id":"2c3ab751.65fb08","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":910,"y":420,"wires":[]},{"id":"cec52d2a.9f3bf8","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1490,"y":460,"wires":[]},{"id":"fbd64ca7.e0a668","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":80,"wires":[["26d99a32.d353ce"]]},{"id":"e424624a.96217","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":100,"wires":[["26d99a32.d353ce"]]},{"id":"f15dd20b.251768","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":120,"wires":[["26d99a32.d353ce"]]},{"id":"b97a13f7.5965d","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":140,"wires":[["26d99a32.d353ce"]]},{"id":"12e3a86f.7ce17","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":160,"wires":[["26d99a32.d353ce"]]},{"id":"fb4e4832.38961","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":180,"wires":[["26d99a32.d353ce"]]},{"id":"1f0bee9d.6a7641","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":200,"wires":[["26d99a32.d353ce"]]},{"id":"9c2c1fca.9d791","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":220,"wires":[["26d99a32.d353ce"]]},{"id":"b3d9ebb9.e474c8","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":240,"wires":[["26d99a32.d353ce"]]},{"id":"b92f834d.076a98","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":260,"wires":[["26d99a32.d353ce"]]},{"id":"96a961f2.23ad68","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":280,"wires":[["26d99a32.d353ce"]]},{"id":"1b799e6e.eb58d2","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":300,"wires":[["26d99a32.d353ce"]]},{"id":"873c7602.a81d38","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":320,"wires":[["26d99a32.d353ce"]]},{"id":"94e56f9c.684a48","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":340,"wires":[["26d99a32.d353ce"]]},{"id":"c16c30b7.21ddf8","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":360,"wires":[["26d99a32.d353ce"]]},{"id":"df4a1a79.5fbd48","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":380,"wires":[["26d99a32.d353ce"]]},{"id":"979379a.97f3f88","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":400,"wires":[["26d99a32.d353ce"]]},{"id":"1f4a348b.859d43","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":420,"wires":[["26d99a32.d353ce"]]},{"id":"c477d7b4.e8a4a8","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":660,"wires":[["26d99a32.d353ce"]]},{"id":"cf8ad9fd.c63af8","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":680,"wires":[["26d99a32.d353ce"]]},{"id":"f160e50c.7546","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":700,"wires":[["26d99a32.d353ce"]]},{"id":"1f63c782.8fb758","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":720,"wires":[["26d99a32.d353ce"]]},{"id":"2a4d0e4.57d5272","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":740,"wires":[["26d99a32.d353ce"]]},{"id":"a1d6ff71.0b8368","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":760,"wires":[["26d99a32.d353ce"]]},{"id":"d0348645.8654d","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":780,"wires":[["26d99a32.d353ce"]]},{"id":"c6fde6c5.4c2c3","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":800,"wires":[["26d99a32.d353ce"]]},{"id":"19956d67.42b9f3","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":820,"wires":[["26d99a32.d353ce"]]},{"id":"ed3861c9.6a1e7","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":840,"wires":[["26d99a32.d353ce"]]},{"id":"67580736.664648","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":860,"wires":[["26d99a32.d353ce"]]},{"id":"6510ae65.24285","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":880,"wires":[["26d99a32.d353ce"]]},{"id":"b8ee3ac3.d9da88","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":900,"wires":[["26d99a32.d353ce"]]},{"id":"f7f5e356.c4fbc8","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":920,"wires":[["26d99a32.d353ce"]]},{"id":"e1ac5ce7.79d01","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":940,"wires":[["26d99a32.d353ce"]]},{"id":"78a37bb3.669194","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":960,"wires":[["26d99a32.d353ce"]]},{"id":"22bb5e67.2db812","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":980,"wires":[["26d99a32.d353ce"]]},{"id":"9e24e068.b783c","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":1000,"wires":[["26d99a32.d353ce"]]},{"id":"30549d10.d7f73a","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\nnode.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.value +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.value != value || count >= 6*30) {\n context.set('value',msg.payload.value);\n context.set('count',0);\n //return [msg, {payload: count}];\n return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1270,"y":1020,"wires":[["26d99a32.d353ce"]]},{"id":"ff87ec2e.34c3d8","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":630,"y":1140,"wires":[]},{"id":"71549fd2.a224d","type":"Luxtronik2","z":"fcd1fad6.c6a83","host":"192.168.178.242","port":8214,"password":"999999","x":350,"y":220,"wires":[["4e38bb2d.01151c","22646af.adbf916","78b1eb9a.be3404","739c2b12.dae2bc","2a80c664.3a11e2","d86dfedb.01f9c","ff87ec2e.34c3d8","25e425d2.4b1312"]]},{"id":"795aae5a.66bfc","type":"function","z":"fcd1fad6.c6a83","name":"Heizkreislauf: VOR/RÜCK","func":"var msg1 = {};\nvar msg2 = {};\nvar msg3 = {};\nvar msg4 = {};\nvar msgTEMP = {};\nvar msgIN = {};\n\nmsgIN.payload = msg.payload[\"Vorlauf\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Vorlauf\";\nmsg1.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nmsgIN.payload = msg.payload[\"Rücklauf\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Rücklauf\";\nmsg2.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nmsgIN.payload = msg.payload[\"Vorlauf max.\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Vorlauf max.\";\nmsg3.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nmsgIN.payload = msg.payload[\"Rückl.-Soll\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Rücklauf soll\";\nmsg4.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\n\nreturn [msg1, msg2, msg3, msg4];","outputs":4,"noerr":0,"initialize":"","finalize":"","x":690,"y":1360,"wires":[["457f3539.883584"],["ada7c97f.527e98"],["81a7c7a4.7dc2b"],["941b3c31.5ca42"]]},{"id":"96a33ea1.059448","type":"function","z":"fcd1fad6.c6a83","name":"Warmwasser: IST/SOLL","func":"var msg1 = {};\nvar msg2 = {};\nvar msgTEMP = {};\nvar msgIN = {};\n\nmsgIN.payload = msg.payload[\"Warmwasser-Ist\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Warmwasser IST\";\nmsg1.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nmsgIN.payload = msg.payload[\"Warmwasser-Soll\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Warmwasser SOLL\";\nmsg2.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nreturn [msg1, msg2];","outputs":2,"noerr":0,"x":690,"y":1400,"wires":[["e42c074a.8e9508"],["2eba349a.900694"]]},{"id":"f0db809f.b10bb","type":"function","z":"fcd1fad6.c6a83","name":"Fußbodenheizung","func":"var msg1 = {};\nvar msg2 = {};\nvar msgTEMP = {};\nvar msgIN = {};\n\nmsgIN.payload = msg.payload[\"Mischkreis1-Vorlauf\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"FBHZ Vorlauf\";\nmsg1.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nmsgIN.payload = msg.payload[\"Mischkreis1 VL-Soll\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"FBHZ SOLL\";\nmsg2.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nreturn [msg1, msg2];","outputs":2,"noerr":0,"x":670,"y":1440,"wires":[["f1e9b4bf.829d38"],["e844d113.f19118"]]},{"id":"40d20f78.3d69d","type":"function","z":"fcd1fad6.c6a83","name":"Aussentemperatur","func":"var msg1 = {};\nvar msg2 = {};\nvar msg3 = {};\nvar msgTEMP = {};\nvar msgIN = {};\n\nmsgIN.payload = msg.payload[\"Aussentemperatur\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Aussentemperatur\";\nmsg1.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nmsgIN.payload = msg.payload[\"Mitteltemperatur\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Mitteltemperatur\";\nmsg2.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nmsgIN.payload = msg.payload[\"Wärmequelle-Ein\"];\nmsgTEMP.payload = parseFloat(msgIN.payload);\nmsgTEMP.topic = \"Wäremquelle Eingang\";\nmsg3.payload = {location:msgTEMP.topic, temperature:msgTEMP.payload, unit:\"°C\"};\n\nreturn [msg1, msg2, msg3];","outputs":3,"noerr":0,"initialize":"","finalize":"","x":670,"y":1480,"wires":[["c7585c94.312488","cf1e2616.02f028","9507d854.da9f8"],["4d8e13fb.4f3e5c"],[]]},{"id":"816cf843.c94a28","type":"influxdb out","z":"fcd1fad6.c6a83","influxdb":"861fa3dd.7d5fa","name":"","measurement":"TEMPERATURE","precision":"","retentionPolicy":"","x":1440,"y":1400,"wires":[]},{"id":"c7585c94.312488","type":"debug","z":"fcd1fad6.c6a83","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":970,"y":1600,"wires":[]},{"id":"25e425d2.4b1312","type":"function","z":"fcd1fad6.c6a83","name":"proccess Informationen-Temperaturen","func":"var data = msg.payload;\nvar result = {}\n\nfor(var t in data[\"Informationen\"][\"Temperaturen\"]){\n result[t] = data[\"Informationen\"][\"Temperaturen\"][t];\n}\n\nmsg.payload = result;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":730,"y":1200,"wires":[["795aae5a.66bfc","96a33ea1.059448","f0db809f.b10bb","40d20f78.3d69d"]]},{"id":"cf1e2616.02f028","type":"function","z":"fcd1fad6.c6a83","name":"set dest ","func":"msg.payload={\"srcphy\":\"1.1.100\",\"dstgad\":\"3/1/0\",\"value\":msg.payload.temperature.toString(),\"dpt\":\"9\"};\nmsg.topic=\"write\";\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":980,"y":1560,"wires":[["4410f295.8c976c","c7585c94.312488"]]},{"id":"4410f295.8c976c","type":"link out","z":"fcd1fad6.c6a83","name":"KNX_OUT_TEMP_AUSSEN","links":["f5754854.8a91b8"],"x":1195,"y":1560,"wires":[]},{"id":"457f3539.883584","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":990,"y":1340,"wires":[["816cf843.c94a28"]]},{"id":"ada7c97f.527e98","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1070,"y":1360,"wires":[["816cf843.c94a28"]]},{"id":"81a7c7a4.7dc2b","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":990,"y":1380,"wires":[["816cf843.c94a28"]]},{"id":"941b3c31.5ca42","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1070,"y":1400,"wires":[["816cf843.c94a28"]]},{"id":"e42c074a.8e9508","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":990,"y":1420,"wires":[["816cf843.c94a28"]]},{"id":"2eba349a.900694","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1070,"y":1440,"wires":[["816cf843.c94a28"]]},{"id":"f1e9b4bf.829d38","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":990,"y":1460,"wires":[["816cf843.c94a28"]]},{"id":"e844d113.f19118","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1070,"y":1480,"wires":[["816cf843.c94a28"]]},{"id":"9507d854.da9f8","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":990,"y":1500,"wires":[["816cf843.c94a28"]]},{"id":"4d8e13fb.4f3e5c","type":"function","z":"fcd1fad6.c6a83","name":"rbe || 30min","func":"// initialise the counter to 0 if it doesn't exist already\nvar value = context.get('value')||\"\";\nvar count = context.get('count')||0;\n\ncount += 1;\n\ncontext.set('count',count);\nif (msg.payload.temperature != value || count >= 6*30) {\n context.set('value',msg.payload.temperature);\n context.set('count',0);\n node.status({fill:\"green\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n return msg;\n}\nnode.status({fill:\"yellow\",shape:\"dot\",text: 'value: ' + msg.payload.temperature +' | ' + count+'/'+(6*30)+' / '+ (count/(6*30)).toFixed(2)+ '%' });\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1070,"y":1520,"wires":[["816cf843.c94a28"]]},{"id":"861fa3dd.7d5fa","type":"influxdb","z":0,"hostname":"127.0.0.1","port":"8086","protocol":"http","database":"nodered","name":"","usetls":false,"tls":""}]
RAW Paste Data