ich weiss nicht was ‚energy‘ ganz unten soll - aber für die anderen würde es in etwa so aussehen
[
{
"id": "9ad3fd4602a12d76",
"type": "tab",
"label": "Testflow Tobi",
"disabled": false,
"info": "",
"env": []
},
{
"id": "6aceedc17be08e59",
"type": "group",
"z": "9ad3fd4602a12d76",
"name": "L1",
"style": {
"label": true
},
"nodes": [
"1afcd6349e4359c3",
"692e9aa6b1037468",
"3b7f13e9f2a87e38",
"b0874e0b014163e9",
"2e56e080a57b949b",
"13068166097c6cf7"
],
"x": 34,
"y": 39,
"w": 492,
"h": 162
},
{
"id": "c8173d20860a765e",
"type": "group",
"z": "9ad3fd4602a12d76",
"name": "L2",
"style": {
"label": true
},
"nodes": [
"bfb6504a93d2b480",
"43570f957e456c64",
"d746f4e757909cc5",
"a64d2ca2c3e25fd4",
"75a0afd1c9913021",
"0fb945702bbc1bc6"
],
"x": 34,
"y": 219,
"w": 492,
"h": 162
},
{
"id": "6f4e7b17c6c1ba6d",
"type": "group",
"z": "9ad3fd4602a12d76",
"name": "L3",
"style": {
"label": true
},
"nodes": [
"32f562d90c3d6a74",
"7109bae44a9b79f7",
"e52f0a05f1e9e0be",
"dd57b630287807fc",
"540eaad780601fb6",
"80320f105f9b242d"
],
"x": 34,
"y": 399,
"w": 492,
"h": 162
},
{
"id": "134334529297137e",
"type": "group",
"z": "9ad3fd4602a12d76",
"name": "Totals",
"style": {
"label": true
},
"nodes": [
"2092ee197907b4e9"
],
"x": 594,
"y": 239,
"w": 272,
"h": 82
},
{
"id": "80fe7c43c7f3ef93",
"type": "group",
"z": "9ad3fd4602a12d76",
"name": "http",
"style": {
"label": true
},
"nodes": [
"c8107088.37ef9",
"4e8237da.b17dc8",
"65401623.9abfe8",
"f7d3e35a.082c2",
"078793b6b8d58f69",
"b9bd869d3852a6ce",
"0470cfd21a4746e6",
"de297cde72b6325b",
"d232a2129163c178",
"01312e5945340821"
],
"x": 34,
"y": 579,
"w": 672,
"h": 302
},
{
"id": "c8107088.37ef9",
"type": "http in",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "",
"url": "/status",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 130,
"y": 620,
"wires": [
[
"b9bd869d3852a6ce",
"4e8237da.b17dc8"
]
]
},
{
"id": "4e8237da.b17dc8",
"type": "template",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "page",
"field": "payload",
"fieldType": "msg",
"format": "json",
"syntax": "mustache",
"template": "{\n \"wifi_sta\": {\n \"connected\": true,\n \"ssid\": \"WLAN\",\n \"ip\": \"192.168.0.144\",\n \"rssi\": -36\n },\n \"cloud\": {\n \"enabled\": true,\n \"connected\": true\n },\n \"mqtt\": {\n \"connected\": false\n },\n \"time\": \"11:03\",\n \"unixtime\": 1649754212,\n \"serial\": 59968,\n \"has_update\": true,\n \"mac\": \"68C63AFB5737\",\n \"cfg_changed_cnt\": 3,\n \"actions_stats\": {\n \"skipped\": 0\n },\n \"relays\": [\n {\n \"ison\": false,\n \"has_timer\": false,\n \"timer_started\": 0,\n \"timer_duration\": 0,\n \"timer_remaining\": 0,\n \"overpower\": false,\n \"is_valid\": true,\n \"source\": \"http\"\n }\n ],\n \"emeters\": [\n {\n \"power\": -1696.09,\n \"pf\": -0.98,\n \"current\": 7.33,\n \"voltage\": 236.95,\n \"is_valid\": true,\n \"total\": 177173.9,\n \"total_returned\": 542320.4\n },\n {\n \"power\": -1679.18,\n \"pf\": -0.98,\n \"current\": 7.30,\n \"voltage\": 234.63,\n \"is_valid\": true,\n \"total\": 186179.5,\n \"total_returned\": 461668.3\n },\n {\n \"power\": -1061.61,\n \"pf\": -0.95,\n \"current\": 4.76,\n \"voltage\": 234.03,\n \"is_valid\": true,\n \"total\": 888586.5,\n \"total_returned\": 183124.3\n }\n ],\n \"total_power\": -4436.88,\n \"fs_mounted\": true,\n \"update\": {\n \"status\": \"pending\",\n \"has_update\": true,\n \"new_version\": \"20220324-123835/v1.11.8-3EM-fix-g0014dcb\",\n \"old_version\": \"20210909-150410/v1.11.4-DNSfix-ge6b2f6d\"\n },\n \"ram_total\": 49440,\n \"ram_free\": 30132,\n \"fs_size\": 233681,\n \"fs_free\": 154867,\n \"uptime\": 7890250\n}",
"output": "json",
"x": 130,
"y": 680,
"wires": [
[
"078793b6b8d58f69"
]
]
},
{
"id": "65401623.9abfe8",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "Set Headers",
"rules": [
{
"t": "set",
"p": "headers",
"pt": "msg",
"to": "{}",
"tot": "json"
},
{
"t": "set",
"p": "headers.content-type",
"pt": "msg",
"to": "application/json",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 430,
"y": 840,
"wires": [
[
"f7d3e35a.082c2"
]
]
},
{
"id": "f7d3e35a.082c2",
"type": "http response",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "http-out",
"statusCode": "",
"headers": {},
"x": 620,
"y": 840,
"wires": []
},
{
"id": "078793b6b8d58f69",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "update L1",
"rules": [
{
"t": "set",
"p": "payload.emeters[0].current",
"pt": "msg",
"to": "aeotechem_current_1",
"tot": "flow"
},
{
"t": "set",
"p": "payload.emeters[0].voltage",
"pt": "msg",
"to": "aeotechem_voltage_1",
"tot": "flow"
},
{
"t": "set",
"p": "payload.emeters[0].power",
"pt": "msg",
"to": "aeotechem_power_1",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 180,
"y": 720,
"wires": [
[
"0470cfd21a4746e6"
]
]
},
{
"id": "b9bd869d3852a6ce",
"type": "debug",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "GET /status",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 470,
"y": 620,
"wires": []
},
{
"id": "1afcd6349e4359c3",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "6aceedc17be08e59",
"name": "aeotechem_current_1",
"topic": "homeassistant/input_number/input_number.aeotechem_current_1/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 80,
"wires": [
[
"b0874e0b014163e9"
]
]
},
{
"id": "692e9aa6b1037468",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "6aceedc17be08e59",
"name": "aeotechem_voltage_1",
"topic": "homeassistant/input_number/input_number.aeotechem_voltage_1/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 120,
"wires": [
[
"2e56e080a57b949b"
]
]
},
{
"id": "3b7f13e9f2a87e38",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "6aceedc17be08e59",
"name": "aeotechem_power_1",
"topic": "homeassistant/input_number/input_number.aeotechem_power_1/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 160,
"wires": [
[
"13068166097c6cf7"
]
]
},
{
"id": "b0874e0b014163e9",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "6aceedc17be08e59",
"name": "aeotechem_current_1",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_current_1",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 80,
"wires": [
[]
]
},
{
"id": "2e56e080a57b949b",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "6aceedc17be08e59",
"name": "aeotechem_voltage_1",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_voltage_1",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 120,
"wires": [
[]
]
},
{
"id": "13068166097c6cf7",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "6aceedc17be08e59",
"name": "aeotechem_power_1",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_power_1",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 160,
"wires": [
[
"2092ee197907b4e9"
]
]
},
{
"id": "bfb6504a93d2b480",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "c8173d20860a765e",
"name": "aeotechem_current_2",
"topic": "homeassistant/input_number/input_number.aeotechem_current_2/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 260,
"wires": [
[
"a64d2ca2c3e25fd4"
]
]
},
{
"id": "43570f957e456c64",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "c8173d20860a765e",
"name": "aeotechem_voltage_2",
"topic": "homeassistant/input_number/input_number.aeotechem_voltage_2/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 300,
"wires": [
[
"75a0afd1c9913021"
]
]
},
{
"id": "d746f4e757909cc5",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "c8173d20860a765e",
"name": "aeotechem_power_2",
"topic": "homeassistant/input_number/input_number.aeotechem_power_2/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 340,
"wires": [
[
"0fb945702bbc1bc6"
]
]
},
{
"id": "a64d2ca2c3e25fd4",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "c8173d20860a765e",
"name": "aeotechem_current_2",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_current_2",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 260,
"wires": [
[]
]
},
{
"id": "75a0afd1c9913021",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "c8173d20860a765e",
"name": "aeotechem_voltage_2",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_voltage_2",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 300,
"wires": [
[]
]
},
{
"id": "0fb945702bbc1bc6",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "c8173d20860a765e",
"name": "aeotechem_power_2",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_power_2",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 340,
"wires": [
[
"2092ee197907b4e9"
]
]
},
{
"id": "32f562d90c3d6a74",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "6f4e7b17c6c1ba6d",
"name": "aeotechem_current_3",
"topic": "homeassistant/input_number/input_number.aeotechem_current_3/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 440,
"wires": [
[
"dd57b630287807fc"
]
]
},
{
"id": "7109bae44a9b79f7",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "6f4e7b17c6c1ba6d",
"name": "aeotechem_voltage_3",
"topic": "homeassistant/input_number/input_number.aeotechem_voltage_3/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 480,
"wires": [
[
"540eaad780601fb6"
]
]
},
{
"id": "e52f0a05f1e9e0be",
"type": "mqtt in",
"z": "9ad3fd4602a12d76",
"g": "6f4e7b17c6c1ba6d",
"name": "aeotechem_power_3",
"topic": "homeassistant/input_number/input_number.aeotechem_power_3/state",
"qos": "2",
"datatype": "auto-detect",
"broker": "",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 160,
"y": 520,
"wires": [
[
"80320f105f9b242d"
]
]
},
{
"id": "dd57b630287807fc",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "6f4e7b17c6c1ba6d",
"name": "aeotechem_current_3",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_current_3",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 440,
"wires": [
[]
]
},
{
"id": "540eaad780601fb6",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "6f4e7b17c6c1ba6d",
"name": "aeotechem_voltage_3",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_voltage_3",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 480,
"wires": [
[]
]
},
{
"id": "80320f105f9b242d",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "6f4e7b17c6c1ba6d",
"name": "aeotechem_power_3",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "aeotechem_power_3",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 520,
"wires": [
[
"2092ee197907b4e9"
]
]
},
{
"id": "2092ee197907b4e9",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "134334529297137e",
"name": "aeotechem_total_power",
"rules": [
{
"t": "set",
"p": "aeotechem_power_1",
"pt": "msg",
"to": "aeotechem_power_1",
"tot": "flow"
},
{
"t": "set",
"p": "aeotechem_power_2",
"pt": "msg",
"to": "aeotechem_power_2",
"tot": "flow"
},
{
"t": "set",
"p": "aeotechem_power_3",
"pt": "msg",
"to": "aeotechem_power_3",
"tot": "flow"
},
{
"t": "set",
"p": "aeotechem_total_power",
"pt": "flow",
"to": "(msg.aeotechem_power_1 + msg.aeotechem_power_2 + msg.aeotechem_power_3)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 730,
"y": 280,
"wires": [
[]
]
},
{
"id": "0470cfd21a4746e6",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "update L2",
"rules": [
{
"t": "set",
"p": "payload.emeters[1].current",
"pt": "msg",
"to": "aeotechem_current_2",
"tot": "flow"
},
{
"t": "set",
"p": "payload.emeters[1].voltage",
"pt": "msg",
"to": "aeotechem_voltage_2",
"tot": "flow"
},
{
"t": "set",
"p": "payload.emeters[1].power",
"pt": "msg",
"to": "aeotechem_power_2",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 200,
"y": 760,
"wires": [
[
"de297cde72b6325b"
]
]
},
{
"id": "de297cde72b6325b",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "update L3",
"rules": [
{
"t": "set",
"p": "payload.emeters[2].current",
"pt": "msg",
"to": "aeotechem_current_3",
"tot": "flow"
},
{
"t": "set",
"p": "payload.emeters[2].voltage",
"pt": "msg",
"to": "aeotechem_voltage_3",
"tot": "flow"
},
{
"t": "set",
"p": "payload.emeters[2].power",
"pt": "msg",
"to": "aeotechem_power_3",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 220,
"y": 800,
"wires": [
[
"d232a2129163c178"
]
]
},
{
"id": "d232a2129163c178",
"type": "change",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "update Totals",
"rules": [
{
"t": "set",
"p": "payload.total_power",
"pt": "msg",
"to": "aeotechem_total_power",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 250,
"y": 840,
"wires": [
[
"65401623.9abfe8",
"01312e5945340821"
]
]
},
{
"id": "01312e5945340821",
"type": "debug",
"z": "9ad3fd4602a12d76",
"g": "80fe7c43c7f3ef93",
"name": "JSON out",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 500,
"y": 740,
"wires": []
}
]