Soo ich habs nun auch geschafft
Seid gestern ist meine mini PV Anlage in Betrieb.
2x 300Wp Panel Phono Solar 300 Watt PS300P-20/UM
Wechselrichter Solax X1 Mini X1-0.7
Montage 30° Aufständerung auf der Garage (Hochkant-Motage)
zum Messen der Einspeisung myStrom Wifi Steckdose
Hausanschluss Aeotec 3 Phase Meter
Ich bin Mega zufrieden habe bis jetzt einen Peak von 579Watt erreicht.
Die Anbindung erfolgt lediglich über den homee Adapter in ioBroker.
Danke auch nochmal an @Micha und @medicus07 mit deren Vorarbeit ich den HEM in Node Red angelegt habe.
Habe mit dies hier mit Hilfe vom sourceanalytix Adapter noch um die summierten kwh Daten erweitert. (vllt. ist das ja was für den ein oder anderen, der nur aktuelle Verbräuche hat und diese gerne um Summen für Woche,Monat,Jahr etc. erweitern will)
Standby
Der Haartrockner ist sehr gut zu erkennen ^^
Prduktion in HEM
Produktion im myStrom Plug
Für alle die sich evtl. die selbe Frage stellen, wie ich:
Wie sehen die Messwerte aus, die homee bekommt…
-
der myStrom Plug übergibt positive Werte, trotz „falscher“ Einspeiserichtung (Produktion PV)
-
das Aeotec 3 Phasen Smart Meter am Hausanschluss gibt den aktuellen Verbrauch (über alle 3 Phasen) als positiven Wert (Netzbezug) bzw. negativen Wert (Einspeisung) wieder. (Hausanschluss)
Hiermit kann dann der Verbrauch und die Einspeisung ermittelt werden.
[
{
"id": "e46c0c4b.b5004",
"type": "tab",
"label": "HEM ID:9",
"disabled": false,
"info": ""
},
{
"id": "87819a11.36ec98",
"type": "join",
"z": "e46c0c4b.b5004",
"name": "",
"mode": "custom",
"build": "array",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 570,
"y": 840,
"wires": [
[
"b6f074c8.afc228"
]
]
},
{
"id": "b6f074c8.afc228",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "Summe",
"func": "msg.payload = msg.payload[0] + msg.payload[1]\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 700,
"y": 840,
"wires": [
[
"e9090521.be0888"
]
]
},
{
"id": "e9090521.be0888",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "Vorzeichen +/-",
"func": "var wert = msg.payload\n\nif (wert < 0){\nreturn {payload:-wert};\n}\nif (wert >= 0){\nreturn {payload:wert};\n}\n\n\n\n",
"outputs": 1,
"noerr": 0,
"x": 860,
"y": 840,
"wires": [
[
"b6f1b4f4.257028",
"f19c823a.c2ea7"
]
]
},
{
"id": "1f4ca77f.b92429",
"type": "homeeDevice",
"z": "e46c0c4b.b5004",
"virtual-homee": "",
"name": "hEM",
"nodeId": "9",
"showNodeId": false,
"profile": "38",
"icon": "default",
"attributes": "[{\"id\":900,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":10000,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"text\",\"step_value\":1,\"editable\":0,\"type\":84,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"HM0000422\"},{\"id\":901,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":10000,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"text\",\"step_value\":1,\"editable\":0,\"type\":45,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"11.4.11\"},{\"id\":902,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":1700,\"target_value\":1700,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":264,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":903,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":2500,\"target_value\":2500,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":265,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":904,\"node_id\":9,\"instance\":0,\"minimum\":-50000,\"maximum\":50000,\"current_value\":258,\"target_value\":258,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":267,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":905,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":0,\"target_value\":200,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":268,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":906,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":0,\"target_value\":980,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":269,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":907,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":0,\"target_value\":37,\"last_value\":0,\"unit\":\"%25\",\"step_value\":1,\"editable\":0,\"type\":273,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":908,\"node_id\":9,\"instance\":0,\"minimum\":-50000,\"maximum\":50000,\"current_value\":1180,\"target_value\":1180,\"last_value\":1240,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":266,\"state\":1,\"last_changed\":1572785663,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":909,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":274,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":910,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":275,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":911,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":276,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":912,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":277,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":913,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":278,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":914,\"node_id\":9,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":279,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"}]",
"x": 1770,
"y": 500,
"wires": [
[]
]
},
{
"id": "34c98d44.783ee2",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "Verbrauch ID:904",
"info": "",
"x": 1040,
"y": 800,
"wires": []
},
{
"id": "bc85f57d.c195f8",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "Produktion ID:908",
"info": "",
"x": 610,
"y": 580,
"wires": []
},
{
"id": "47103fa9.ef89f",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "Einspeisung ID:903",
"info": "",
"x": 1650,
"y": 120,
"wires": []
},
{
"id": "5631e726.6402c8",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "Netzbezug ID:902",
"info": "",
"x": 510,
"y": 420,
"wires": []
},
{
"id": "82c0fc49.e332e",
"type": "ioBroker in",
"z": "e46c0c4b.b5004",
"name": "Netzbezug ID:902",
"topic": "homee.1.EnergyMeter-14.TotalCurrentEnergyUse-37",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 90,
"y": 260,
"wires": [
[
"1ee0dc17.a2dc04"
]
]
},
{
"id": "a3cc3fc5.df94a",
"type": "ioBroker in",
"z": "e46c0c4b.b5004",
"name": "Produktion PV ID:908",
"topic": "homee.0.MeteringPlug-184.CurrentEnergyUse-718",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 100,
"y": 160,
"wires": [
[
"ae282009.ed014"
]
]
},
{
"id": "5203d9cb.aeeb88",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":902,\"value\":{{payload}}}}",
"output": "json",
"x": 540,
"y": 520,
"wires": [
[
"1f4ca77f.b92429",
"524600f2.e2cf8"
]
]
},
{
"id": "9606b06c.480c4",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":903,\"value\":{{payload}}}}",
"output": "json",
"x": 1660,
"y": 160,
"wires": [
[
"1f4ca77f.b92429",
"4ddd14a9.473c1c"
]
]
},
{
"id": "775c12c9.696c2c",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":908,\"value\":{{payload}}}}",
"output": "json",
"x": 580,
"y": 620,
"wires": [
[
"1f4ca77f.b92429",
"70f90a56.46f534"
]
]
},
{
"id": "89ba010a.c5cb3",
"type": "change",
"z": "e46c0c4b.b5004",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$number(payload)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 900,
"wires": [
[
"87819a11.36ec98"
]
]
},
{
"id": "b6f1b4f4.257028",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":904,\"value\":{{payload}}}}",
"output": "json",
"x": 1040,
"y": 840,
"wires": [
[
"1f4ca77f.b92429",
"7066fbfb.e19b24"
]
]
},
{
"id": "ac752b2b.1cf608",
"type": "change",
"z": "e46c0c4b.b5004",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$number(payload)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 840,
"wires": [
[
"87819a11.36ec98"
]
]
},
{
"id": "4e9fa297.0a332c",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "Vorzeichen auf -",
"func": "var wert = msg.payload\n\nreturn {payload:-wert};\n\n",
"outputs": 1,
"noerr": 0,
"x": 720,
"y": 160,
"wires": [
[
"581deb3.34a8314"
]
]
},
{
"id": "581deb3.34a8314",
"type": "join",
"z": "e46c0c4b.b5004",
"name": "",
"mode": "custom",
"build": "array",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 910,
"y": 160,
"wires": [
[
"165b495.f674bb7"
]
]
},
{
"id": "165b495.f674bb7",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "Summe",
"func": "msg.payload = msg.payload[0] + msg.payload[1]\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1060,
"y": 160,
"wires": [
[
"33827cf7.8eca64"
]
]
},
{
"id": "e9c4f3da.57722",
"type": "change",
"z": "e46c0c4b.b5004",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$number(payload)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 510,
"y": 220,
"wires": [
[
"581deb3.34a8314"
]
]
},
{
"id": "1f80ad58.968ce3",
"type": "change",
"z": "e46c0c4b.b5004",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$number(payload)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 510,
"y": 160,
"wires": [
[
"4e9fa297.0a332c"
]
]
},
{
"id": "33827cf7.8eca64",
"type": "switch",
"z": "e46c0c4b.b5004",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lte",
"v": "0",
"vt": "num"
},
{
"t": "gt",
"v": "0",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 1210,
"y": 160,
"wires": [
[
"b7263344.e8ded"
],
[
"9606b06c.480c4"
]
]
},
{
"id": "b7263344.e8ded",
"type": "change",
"z": "e46c0c4b.b5004",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1390,
"y": 160,
"wires": [
[
"9606b06c.480c4"
]
]
},
{
"id": "cedf030f.46913",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "Zustände -> Attribute.ID",
"info": "902=Netzbezug\n903=Einspeisung\n904=Verbrauch\n905=Entladung\n906=Ladung\n907=Ladezustand\n908=Produktion\n909= Gesamt Verbrauch\n910= Gesamt Produktion\n911= Gesamt bezogene Energie Netz\n912=Gesamt eingespeißte Energie\n913=Gesamt gespeicherte Energie\n914=Gesamt bezogene Energie Speicher",
"x": 100,
"y": 40,
"wires": []
},
{
"id": "57bc0681.650738",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "Gesamt verbrauchte Energie aus SourceAnalytix ID:909",
"info": "",
"x": 1740,
"y": 800,
"wires": []
},
{
"id": "32962c6c.886734",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "Gesamt produzierte Energie aus SourceAnalytix ID:910",
"info": "",
"x": 1340,
"y": 580,
"wires": []
},
{
"id": "37f81e76.e742c2",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "bezogene Ernergie Netz aus SourceAnalytix ID:911",
"info": "",
"x": 1370,
"y": 420,
"wires": []
},
{
"id": "4510e429.99ff1c",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "eingespeißte Energie aus SourceAnalytix ID:912",
"info": "",
"x": 1480,
"y": 220,
"wires": []
},
{
"id": "2fb69a0e.0f6416",
"type": "ioBroker out",
"z": "e46c0c4b.b5004",
"name": "hem.verbrauch",
"topic": "node-red.0.hemGes.verbrauch",
"ack": "true",
"autoCreate": "true",
"x": 1420,
"y": 840,
"wires": []
},
{
"id": "7066fbfb.e19b24",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{{payload.attribute.value}}",
"output": "str",
"x": 1240,
"y": 840,
"wires": [
[
"2fb69a0e.0f6416"
]
]
},
{
"id": "c25e3a37.f6f5f8",
"type": "ioBroker out",
"z": "e46c0c4b.b5004",
"name": "hem.einspeisung",
"topic": "node-red.0.hemGes.einspeisung",
"ack": "true",
"autoCreate": "true",
"x": 1090,
"y": 260,
"wires": []
},
{
"id": "4ddd14a9.473c1c",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{{payload.attribute.value}}",
"output": "str",
"x": 900,
"y": 260,
"wires": [
[
"c25e3a37.f6f5f8"
]
]
},
{
"id": "5779c29a.f77e7c",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "objekt in iobroker für SourcAnalytix",
"info": "",
"x": 960,
"y": 220,
"wires": []
},
{
"id": "7a9f52d1.a4468c",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "objekt in iobroker für SourcAnalytix",
"info": "",
"x": 1340,
"y": 800,
"wires": []
},
{
"id": "ceff82fe.590c3",
"type": "ioBroker out",
"z": "e46c0c4b.b5004",
"name": "hem.produktionGes",
"topic": "node-red.0.hemGes.produktionGes",
"ack": "true",
"autoCreate": "true",
"x": 1050,
"y": 620,
"wires": []
},
{
"id": "70f90a56.46f534",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{{payload.attribute.value}}",
"output": "str",
"x": 800,
"y": 620,
"wires": [
[
"ceff82fe.590c3"
]
]
},
{
"id": "253fa937.4dbd56",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "objekt in iobroker für SourcAnalytix",
"info": "",
"x": 940,
"y": 580,
"wires": []
},
{
"id": "64859df.b855d64",
"type": "ioBroker out",
"z": "e46c0c4b.b5004",
"name": "hem.netzbezug",
"topic": "node-red.0.hemGes.netzbezug",
"ack": "true",
"autoCreate": "true",
"x": 1060,
"y": 460,
"wires": []
},
{
"id": "524600f2.e2cf8",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{{payload.attribute.value}}",
"output": "str",
"x": 820,
"y": 460,
"wires": [
[
"64859df.b855d64"
]
]
},
{
"id": "ce2bb934.7d6858",
"type": "comment",
"z": "e46c0c4b.b5004",
"name": "objekt in iobroker für SourcAnalytix",
"info": "",
"x": 960,
"y": 420,
"wires": []
},
{
"id": "3050acbb.534844",
"type": "ioBroker in",
"z": "e46c0c4b.b5004",
"name": "Verbr Ges",
"topic": "sourceanalytix.0.node-red__0__hemGes__verbrauch.Current_Reading",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 1600,
"y": 840,
"wires": [
[
"bbccdbfc.ba1958"
]
]
},
{
"id": "bbccdbfc.ba1958",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":909,\"value\":{{payload}}}}",
"output": "json",
"x": 1760,
"y": 840,
"wires": [
[
"1f4ca77f.b92429"
]
]
},
{
"id": "c8859732.22cf38",
"type": "ioBroker in",
"z": "e46c0c4b.b5004",
"name": "Prod Ges",
"topic": "sourceanalytix.0.node-red__0__hemGes__produktionGes.Current_Reading",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 1240,
"y": 620,
"wires": [
[
"299a363a.fc753a"
]
]
},
{
"id": "299a363a.fc753a",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":910,\"value\":{{payload}}}}",
"output": "json",
"x": 1400,
"y": 620,
"wires": [
[
"1f4ca77f.b92429"
]
]
},
{
"id": "53af4072.b8d2",
"type": "ioBroker in",
"z": "e46c0c4b.b5004",
"name": "Netz Ges",
"topic": "sourceanalytix.0.node-red__0__hemGes__netzbezug.Current_Reading",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 1240,
"y": 460,
"wires": [
[
"c1fdb2cd.6f732"
]
]
},
{
"id": "c1fdb2cd.6f732",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":911,\"value\":{{payload}}}}",
"output": "json",
"x": 1400,
"y": 460,
"wires": [
[
"1f4ca77f.b92429"
]
]
},
{
"id": "f9da1826.911628",
"type": "ioBroker in",
"z": "e46c0c4b.b5004",
"name": "Gesamt Einspeisung",
"topic": "sourceanalytix.0.node-red__0__hemGes__einspeisung.Current_Reading",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 1310,
"y": 260,
"wires": [
[
"83896735.b71828"
]
]
},
{
"id": "83896735.b71828",
"type": "template",
"z": "e46c0c4b.b5004",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"attribute\":{\"id\":912,\"value\":{{payload}}}}",
"output": "json",
"x": 1520,
"y": 260,
"wires": [
[
"1f4ca77f.b92429"
]
]
},
{
"id": "1ee0dc17.a2dc04",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "netz",
"func": "flow.set(\"netz\",msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 90,
"y": 320,
"wires": [
[]
]
},
{
"id": "ae282009.ed014",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "prod",
"func": "flow.set(\"prod\",msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 90,
"y": 220,
"wires": [
[]
]
},
{
"id": "385ebfe7.780d2",
"type": "inject",
"z": "e46c0c4b.b5004",
"name": "",
"topic": "",
"payload": "",
"payloadType": "num",
"repeat": "5",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 90,
"y": 540,
"wires": [
[
"ea7ea0a.031ec6",
"22b8706f.b90dd",
"df8d1c75.fb064",
"cabc8f47.5c7e4",
"516cdb86.97a2f4",
"143a5cd.5e614a3"
]
]
},
{
"id": "ea7ea0a.031ec6",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "prod",
"func": "msg.payload=flow.get(\"prod\");\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 330,
"y": 220,
"wires": [
[
"e9c4f3da.57722"
]
]
},
{
"id": "22b8706f.b90dd",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "prod",
"func": "msg.payload=flow.get(\"prod\");\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 430,
"y": 620,
"wires": [
[
"775c12c9.696c2c"
]
]
},
{
"id": "df8d1c75.fb064",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "netz",
"func": "msg.payload=flow.get(\"netz\");\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 210,
"y": 480,
"wires": [
[
"3afb6f6e.efcf6"
]
]
},
{
"id": "f19c823a.c2ea7",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "",
"func": "flow.set(\"verb\",msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1050,
"y": 920,
"wires": [
[]
]
},
{
"id": "cabc8f47.5c7e4",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "verb",
"func": "msg.payload=flow.get(\"verb\");\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 330,
"y": 160,
"wires": [
[
"1f80ad58.968ce3"
]
]
},
{
"id": "3afb6f6e.efcf6",
"type": "switch",
"z": "e46c0c4b.b5004",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lte",
"v": "0",
"vt": "num"
},
{
"t": "gt",
"v": "0",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 350,
"y": 480,
"wires": [
[
"7da20557.57f33c"
],
[
"5203d9cb.aeeb88"
]
]
},
{
"id": "7da20557.57f33c",
"type": "change",
"z": "e46c0c4b.b5004",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 570,
"y": 460,
"wires": [
[
"5203d9cb.aeeb88"
]
]
},
{
"id": "516cdb86.97a2f4",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "netz <> prod",
"func": "var netz = flow.get(\"netz\");\nvar prod = flow.get(\"prod\");\n\nif (netz < prod){\nreturn {payload:netz};\n}\nif (netz >= prod){\nreturn {payload:prod};\n}\n\n\n\n",
"outputs": 1,
"noerr": 0,
"x": 150,
"y": 840,
"wires": [
[
"ac752b2b.1cf608"
]
]
},
{
"id": "143a5cd.5e614a3",
"type": "function",
"z": "e46c0c4b.b5004",
"name": "netz <> prod",
"func": "var netz = flow.get(\"netz\");\nvar prod = flow.get(\"prod\");\n\nif (netz < prod){\nreturn {payload:prod};\n}\nif (netz >= prod){\nreturn {payload:netz};\n}\n\n\n\n",
"outputs": 1,
"noerr": 0,
"x": 150,
"y": 900,
"wires": [
[
"89ba010a.c5cb3"
]
]
}
]