[
{
"id": "2dd56da2.048d82",
"type": "http request",
"z": "e6fd3a1c.5e9548",
"name": "Mate3",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "http://<mate3IP>/Dev_status.cgi?Port=0%20A",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 290,
"y": 1660,
"wires": [
[
"d40648f9.b12dc8",
"d026a702.9231f8",
"5077acd5.17a9c4",
"7777fab6.2a3ae4",
"11634c6d.b4afd4",
"29e7a5db.b29d9a",
"cb2a046e.8303a8",
"fd82fc3e.a0d6b",
"55cc3d2.1525cc4",
"794e591c.f05aa8",
"4c5cf16f.6d369",
"1ef81d42.82e973",
"1fb8afd6.a5678"
]
]
},
{
"id": "8511eb15.b245c8",
"type": "inject",
"z": "e6fd3a1c.5e9548",
"name": "5 sec",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "5",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 150,
"y": 1660,
"wires": [
[
"2dd56da2.048d82"
]
]
},
{
"id": "d40648f9.b12dc8",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.devstatus.ports[0].VAC_out",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1000,
"y": 1420,
"wires": []
},
{
"id": "d026a702.9231f8",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.devstatus.ports[0].Inv_I",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 990,
"y": 1460,
"wires": []
},
{
"id": "47933888.201778",
"type": "influxdb out",
"z": "e6fd3a1c.5e9548",
"influxdb": "abf95fe7.620b8",
"name": "fx60",
"measurement": "fx60",
"precision": "",
"retentionPolicy": "",
"database": "",
"retentionPolicyV18Flux": "",
"org": "",
"bucket": "",
"x": 890,
"y": 1880,
"wires": []
},
{
"id": "7dd099d5.4cca98",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "Inv1 kW Output",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.inv1kw",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 700,
"y": 1420,
"wires": []
},
{
"id": "5077acd5.17a9c4",
"type": "function",
"z": "e6fd3a1c.5e9548",
"name": "Inv1 kW",
"func": "var inv1kw = 0;\n\ninv1kw = Number(msg.payload.devstatus.ports[0].VAC_out * msg.payload.devstatus.ports[0].Inv_I);\nmsg.payload =\n{\n inv1kw: inv1kw,\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 480,
"y": 1420,
"wires": [
[
"7dd099d5.4cca98",
"d0e6c69.2398638"
]
]
},
{
"id": "7777fab6.2a3ae4",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.devstatus.ports[1].VAC_out",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1000,
"y": 1500,
"wires": []
},
{
"id": "11634c6d.b4afd4",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.devstatus.ports[1].Inv_I",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 990,
"y": 1540,
"wires": []
},
{
"id": "d5eac968.26ae98",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "Inv2 kW Output",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.inv2kw",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 700,
"y": 1500,
"wires": []
},
{
"id": "29e7a5db.b29d9a",
"type": "function",
"z": "e6fd3a1c.5e9548",
"name": "Inv2 kW",
"func": "var inv2kw = 0;\n\ninv2kw = Number(msg.payload.devstatus.ports[1].VAC_out * msg.payload.devstatus.ports[1].Inv_I);\nmsg.payload =\n{\n inv2kw: inv2kw,\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 480,
"y": 1500,
"wires": [
[
"d5eac968.26ae98",
"c1420abe.d91588"
]
]
},
{
"id": "cb2a046e.8303a8",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.devstatus.ports[2].VAC_out",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1000,
"y": 1580,
"wires": []
},
{
"id": "fd82fc3e.a0d6b",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.devstatus.ports[2].Inv_I",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 990,
"y": 1620,
"wires": []
},
{
"id": "1053084e.e783d8",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "Inv3 kW Output",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.inv3kw",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 700,
"y": 1580,
"wires": []
},
{
"id": "55cc3d2.1525cc4",
"type": "function",
"z": "e6fd3a1c.5e9548",
"name": "Inv3 kW",
"func": "var inv3kw = 0;\n\ninv3kw = Number(msg.payload.devstatus.ports[2].VAC_out * msg.payload.devstatus.ports[2].Inv_I);\nmsg.payload =\n{\n inv3kw: inv3kw,\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 480,
"y": 1580,
"wires": [
[
"1053084e.e783d8",
"f854290d.65a438"
]
]
},
{
"id": "f22635ce.61c368",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "FX60 kW Output",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.fx60",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 700,
"y": 1900,
"wires": []
},
{
"id": "794e591c.f05aa8",
"type": "function",
"z": "e6fd3a1c.5e9548",
"name": "FX60 kW",
"func": "var fx60 = 0;\n\nfx60 = Number(msg.payload.devstatus.ports[3].Out_I * msg.payload.devstatus.ports[3].Batt_V);\nmsg.payload =\n{\n fx60: fx60,\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 480,
"y": 1900,
"wires": [
[
"f22635ce.61c368",
"47933888.201778"
]
]
},
{
"id": "824e1c12.ca1cb",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "MX60 kW Output",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.mx60",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 710,
"y": 1940,
"wires": []
},
{
"id": "4c5cf16f.6d369",
"type": "function",
"z": "e6fd3a1c.5e9548",
"name": "MX60 kW",
"func": "var mx60 = 0;\n\nmx60 = Number(msg.payload.devstatus.ports[4].Out_I * msg.payload.devstatus.ports[4].Batt_V);\nmsg.payload =\n{\n mx60: mx60,\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 480,
"y": 1940,
"wires": [
[
"824e1c12.ca1cb",
"e370423c.c096c"
]
]
},
{
"id": "6a457149.45b0e",
"type": "comment",
"z": "e6fd3a1c.5e9548",
"name": "Solar Charge Controllers",
"info": "",
"x": 530,
"y": 1840,
"wires": []
},
{
"id": "d46dc3e5.1433e",
"type": "comment",
"z": "e6fd3a1c.5e9548",
"name": "3.5kW Inverters",
"info": "",
"x": 500,
"y": 1380,
"wires": []
},
{
"id": "1ef81d42.82e973",
"type": "function",
"z": "e6fd3a1c.5e9548",
"name": "Total PV",
"func": "var totalpv = 0;\n\ntotalpv = Number(msg.payload.devstatus.ports[3].Out_I * msg.payload.devstatus.ports[3].Batt_V) + (msg.payload.devstatus.ports[4].Out_I * msg.payload.devstatus.ports[4].Batt_V);\nmsg.payload =\n{\n totalpv: totalpv,\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 480,
"y": 1980,
"wires": [
[
"e3da2252.bb595",
"4613b28e.2d915c"
]
]
},
{
"id": "e3da2252.bb595",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "Total PV kW",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.totalpv",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 690,
"y": 1980,
"wires": []
},
{
"id": "e370423c.c096c",
"type": "influxdb out",
"z": "e6fd3a1c.5e9548",
"influxdb": "abf95fe7.620b8",
"name": "mx60",
"measurement": "mx60",
"precision": "",
"retentionPolicy": "",
"database": "",
"retentionPolicyV18Flux": "",
"org": "",
"bucket": "",
"x": 890,
"y": 1920,
"wires": []
},
{
"id": "4613b28e.2d915c",
"type": "influxdb out",
"z": "e6fd3a1c.5e9548",
"influxdb": "abf95fe7.620b8",
"name": "totalpv",
"measurement": "totalpv",
"precision": "",
"retentionPolicy": "",
"database": "",
"retentionPolicyV18Flux": "",
"org": "",
"bucket": "",
"x": 890,
"y": 1960,
"wires": []
},
{
"id": "c1420abe.d91588",
"type": "influxdb out",
"z": "e6fd3a1c.5e9548",
"influxdb": "abf95fe7.620b8",
"name": "inv2",
"measurement": "inv2",
"precision": "",
"retentionPolicy": "",
"database": "",
"retentionPolicyV18Flux": "",
"org": "",
"bucket": "",
"x": 670,
"y": 1460,
"wires": []
},
{
"id": "f854290d.65a438",
"type": "influxdb out",
"z": "e6fd3a1c.5e9548",
"influxdb": "abf95fe7.620b8",
"name": "inv3",
"measurement": "inv3",
"precision": "",
"retentionPolicy": "",
"database": "",
"retentionPolicyV18Flux": "",
"org": "",
"bucket": "",
"x": 670,
"y": 1540,
"wires": []
},
{
"id": "d0e6c69.2398638",
"type": "influxdb out",
"z": "e6fd3a1c.5e9548",
"influxdb": "abf95fe7.620b8",
"name": "inv1",
"measurement": "inv1",
"precision": "",
"retentionPolicy": "",
"database": "",
"retentionPolicyV18Flux": "",
"org": "",
"bucket": "",
"x": 670,
"y": 1380,
"wires": []
},
{
"id": "1fb8afd6.a5678",
"type": "function",
"z": "e6fd3a1c.5e9548",
"name": "totalinv",
"func": "var totalinv = 0;\n\ntotalinv = Number(msg.payload.devstatus.ports[0].VAC_out * msg.payload.devstatus.ports[0].Inv_I)+(msg.payload.devstatus.ports[1].VAC_out * msg.payload.devstatus.ports[1].Inv_I)+(msg.payload.devstatus.ports[2].VAC_out * msg.payload.devstatus.ports[2].Inv_I);\nmsg.payload =\n{\n totalinv: totalinv,\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 480,
"y": 1680,
"wires": [
[
"88aa435.7052fc",
"5f2e3490.d93b9c"
]
]
},
{
"id": "88aa435.7052fc",
"type": "debug",
"z": "e6fd3a1c.5e9548",
"name": "totalinv",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.totalinv",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 900,
"y": 1660,
"wires": []
},
{
"id": "5f2e3490.d93b9c",
"type": "influxdb out",
"z": "e6fd3a1c.5e9548",
"influxdb": "abf95fe7.620b8",
"name": "totalinv",
"measurement": "totalinv",
"precision": "",
"retentionPolicy": "",
"database": "",
"retentionPolicyV18Flux": "",
"org": "",
"bucket": "",
"x": 680,
"y": 1640,
"wires": []
},
{
"id": "abf95fe7.620b8",
"type": "influxdb",
"hostname": "127.0.0.1",
"port": "8086",
"protocol": "http",
"database": "mate",
"name": "",
"usetls": false,
"tls": "b56a2f8c.4744d",
"influxdbVersion": "1.x",
"url": "http://localhost:8086",
"rejectUnauthorized": true
},
{
"id": "b56a2f8c.4744d",
"type": "tls-config",
"name": "local-tls",
"cert": "",
"key": "",
"ca": "",
"certname": "",
"keyname": "",
"caname": "",
"verifyservercert": false
}
]