Hallo ich habe die kompletten Flows hochgeladen. Wenn nur ein WR abgefragt wird, werden die String & Array Bausteine nicht benötigt.
Freu mich wenn´s hilft.
Die Daten kommen dann als JSON rein… die IP Adresse ist natürlich anzupassen.
[
{
"id": "5c0b35da34348aee",
"type": "tab",
"label": "Daten holen",
"disabled": false,
"info": "",
"env": []
},
{
"id": "c50808832b04496e",
"type": "inject",
"z": "5c0b35da34348aee",
"name": "get dev set infor",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "devsetinfor",
"payload": "wifilocalMonitor:get dev set infor",
"payloadType": "str",
"x": 300,
"y": 300,
"wires": [
[
"bc737b9b2149196a"
]
]
},
{
"id": "0912f67552aa3207",
"type": "debug",
"z": "5c0b35da34348aee",
"name": "debug 2",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1020,
"y": 300,
"wires": []
},
{
"id": "bc737b9b2149196a",
"type": "tcp request",
"z": "5c0b35da34348aee",
"name": "",
"server": "192.168.178.52",
"port": "53970",
"out": "time",
"ret": "string",
"splitc": "1000",
"newline": "",
"trim": false,
"tls": "",
"x": 770,
"y": 300,
"wires": [
[
"0912f67552aa3207",
"025394cdf4e55bad"
]
]
},
{
"id": "f6474b25abdd27bb",
"type": "inject",
"z": "5c0b35da34348aee",
"name": "get dev basice infor",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "devbasiceinfor",
"payload": "wifilocalMonitor:get dev basice infor",
"payloadType": "str",
"x": 310,
"y": 360,
"wires": [
[
"bc737b9b2149196a"
]
]
},
{
"id": "cde5658634725368",
"type": "inject",
"z": "5c0b35da34348aee",
"name": "get dev real infor",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "devrealinfor",
"payload": "wifilocalMonitor:get dev real infor",
"payloadType": "str",
"x": 300,
"y": 420,
"wires": [
[
"bc737b9b2149196a"
]
]
},
{
"id": "eca69a13889ce1ca",
"type": "inject",
"z": "5c0b35da34348aee",
"name": "get Date",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "getdate",
"payload": "wifilocalMonitor:get Date",
"payloadType": "str",
"x": 280,
"y": 480,
"wires": [
[
"bc737b9b2149196a"
]
]
},
{
"id": "239574fd2adcb9d6",
"type": "function",
"z": "5c0b35da34348aee",
"name": "global set devsetinfor",
"func": "global.set(\"devsetinfor\",msg.payload);\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1240,
"y": 360,
"wires": [
[]
]
},
{
"id": "75a9f5db9ca67c96",
"type": "function",
"z": "5c0b35da34348aee",
"name": "global set devrealnfor",
"func": "global.set(\"devrealinfor\",msg.payload);\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1240,
"y": 480,
"wires": [
[]
]
},
{
"id": "c0a5ac693bd048d5",
"type": "comment",
"z": "5c0b35da34348aee",
"name": "Hilfe",
"info": "Die IP des Wechselrichters ist zu ersetzen!",
"x": 770,
"y": 240,
"wires": []
},
{
"id": "025394cdf4e55bad",
"type": "switch",
"z": "5c0b35da34348aee",
"name": "",
"property": "topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "devsetinfor",
"vt": "str"
},
{
"t": "eq",
"v": "devbasiceinfor",
"vt": "str"
},
{
"t": "eq",
"v": "devrealinfor",
"vt": "str"
},
{
"t": "eq",
"v": "getdate",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 990,
"y": 400,
"wires": [
[
"239574fd2adcb9d6"
],
[
"d7b0e7de725a8d9a"
],
[
"75a9f5db9ca67c96"
],
[
"f44666bb6637c7e6"
]
]
},
{
"id": "d7b0e7de725a8d9a",
"type": "function",
"z": "5c0b35da34348aee",
"name": "global set devbasiceinfor",
"func": "global.set(\"devbasiceinfor\",msg.payload);\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1250,
"y": 420,
"wires": [
[]
]
},
{
"id": "f44666bb6637c7e6",
"type": "function",
"z": "5c0b35da34348aee",
"name": "global get Date",
"func": "global.set(\"getdate\",msg.payload);\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1220,
"y": 540,
"wires": [
[]
]
},
{
"id": "9b7b42abcd132849",
"type": "tab",
"label": "Softwarestand",
"disabled": false,
"info": "",
"env": []
},
{
"id": "039c95c2c8c00770",
"type": "inject",
"z": "9b7b42abcd132849",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 100,
"y": 80,
"wires": [
[
"d48914c3b9458516"
]
]
},
{
"id": "292822f5736e2cfb",
"type": "debug",
"z": "9b7b42abcd132849",
"name": "debug 4",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "jsonata",
"statusVal": "",
"statusType": "auto",
"x": 720,
"y": 80,
"wires": []
},
{
"id": "dc45a99a2e88dde6",
"type": "json",
"z": "9b7b42abcd132849",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 530,
"y": 80,
"wires": [
[
"292822f5736e2cfb"
]
]
},
{
"id": "d48914c3b9458516",
"type": "function",
"z": "9b7b42abcd132849",
"name": "Device Basic Informations",
"func": "msg.payload = global.get(\"devbasiceinfor\");\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 310,
"y": 80,
"wires": [
[
"dc45a99a2e88dde6"
]
]
},
{
"id": "8fc43c6757c73477",
"type": "tab",
"label": "Geraeteeinstellungen",
"disabled": false,
"info": "",
"env": []
},
{
"id": "b4dad6a5d908b026",
"type": "debug",
"z": "8fc43c6757c73477",
"name": "debug 8",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "jsonata",
"statusVal": "",
"statusType": "auto",
"x": 1080,
"y": 80,
"wires": []
},
{
"id": "4e668195a001e8c5",
"type": "debug",
"z": "8fc43c6757c73477",
"name": "debug 9",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1080,
"y": 160,
"wires": []
},
{
"id": "d921bc1f71291e48",
"type": "json",
"z": "8fc43c6757c73477",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 910,
"y": 80,
"wires": [
[
"b4dad6a5d908b026"
]
]
},
{
"id": "da47b5d64a1e5ce1",
"type": "json",
"z": "8fc43c6757c73477",
"name": "",
"property": "payload",
"action": "",
"pretty": true,
"x": 920,
"y": 160,
"wires": [
[
"4e668195a001e8c5"
]
]
},
{
"id": "9862b51a9e73dc3b",
"type": "inject",
"z": "8fc43c6757c73477",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 80,
"wires": [
[
"baab2536e7f2ee58"
]
]
},
{
"id": "baab2536e7f2ee58",
"type": "function",
"z": "8fc43c6757c73477",
"name": "Device Set Informations",
"func": "msg.payload = global.get(\"devsetinfor\");\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 350,
"y": 80,
"wires": [
[
"56ad239c495a411e"
]
]
},
{
"id": "19d5056e9ea0eecc",
"type": "function",
"z": "8fc43c6757c73477",
"name": "Array[0]",
"func": "msg.payload = msg.payload[0]+ \"}\";\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 740,
"y": 80,
"wires": [
[
"d921bc1f71291e48"
]
]
},
{
"id": "10263c8e2b9b12e2",
"type": "function",
"z": "8fc43c6757c73477",
"name": "Array[1]",
"func": "msg.payload = \"{\" + msg.payload[1];\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 740,
"y": 160,
"wires": [
[
"da47b5d64a1e5ce1"
]
]
},
{
"id": "56ad239c495a411e",
"type": "string",
"z": "8fc43c6757c73477",
"name": "",
"methods": [
{
"name": "split",
"params": [
{
"type": "str",
"value": "}{"
},
{
"type": "num",
"value": "300000"
}
]
}
],
"prop": "payload",
"propout": "payload",
"object": "msg",
"objectout": "msg",
"x": 550,
"y": 80,
"wires": [
[
"19d5056e9ea0eecc",
"10263c8e2b9b12e2"
]
]
},
{
"id": "61f50c1675d21aa1",
"type": "tab",
"label": "Daten Echtzeit",
"disabled": false,
"info": "",
"env": []
},
{
"id": "ca486dac92734db2",
"type": "inject",
"z": "61f50c1675d21aa1",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 100,
"y": 120,
"wires": [
[
"7d6245613e3e6c6f"
]
]
},
{
"id": "7d6245613e3e6c6f",
"type": "function",
"z": "61f50c1675d21aa1",
"name": "Real Informations",
"func": "msg.payload = global.get(\"devrealinfor\");\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 310,
"y": 120,
"wires": [
[
"d315b42003b16b73"
]
]
},
{
"id": "d315b42003b16b73",
"type": "string",
"z": "61f50c1675d21aa1",
"name": "",
"methods": [
{
"name": "split",
"params": [
{
"type": "str",
"value": "}{"
},
{
"type": "num",
"value": "10000"
}
]
}
],
"prop": "payload",
"propout": "payload",
"object": "msg",
"objectout": "msg",
"x": 510,
"y": 120,
"wires": [
[
"43307e9bbebd8c86",
"be197eaa5b35810b"
]
]
},
{
"id": "5a62ece942b21929",
"type": "debug",
"z": "61f50c1675d21aa1",
"name": "debug 17",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "jsonata",
"statusVal": "",
"statusType": "auto",
"x": 1080,
"y": 120,
"wires": []
},
{
"id": "6f56b8ba3066bd32",
"type": "debug",
"z": "61f50c1675d21aa1",
"name": "debug 18",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1080,
"y": 200,
"wires": []
},
{
"id": "43307e9bbebd8c86",
"type": "function",
"z": "61f50c1675d21aa1",
"name": "Array[0]",
"func": "msg.payload = msg.payload[0]+ \"}\";\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 700,
"y": 120,
"wires": [
[
"e28b55691b720a70"
]
]
},
{
"id": "e28b55691b720a70",
"type": "json",
"z": "61f50c1675d21aa1",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 890,
"y": 120,
"wires": [
[
"5a62ece942b21929"
]
]
},
{
"id": "be197eaa5b35810b",
"type": "function",
"z": "61f50c1675d21aa1",
"name": "Array[1]",
"func": "msg.payload = \"{\" + msg.payload[1];\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 700,
"y": 200,
"wires": [
[
"d8da03b24201531d"
]
]
},
{
"id": "d8da03b24201531d",
"type": "json",
"z": "61f50c1675d21aa1",
"name": "",
"property": "payload",
"action": "",
"pretty": true,
"x": 880,
"y": 200,
"wires": [
[
"6f56b8ba3066bd32"
]
]
},
{
"id": "155723a7a498260e",
"type": "tab",
"label": "Uhrzeit",
"disabled": false,
"info": "",
"env": []
},
{
"id": "f975745e9b37e261",
"type": "inject",
"z": "155723a7a498260e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 100,
"y": 100,
"wires": [
[
"4e780b11deca9d16"
]
]
},
{
"id": "4e780b11deca9d16",
"type": "function",
"z": "155723a7a498260e",
"name": "Get Date",
"func": "msg.payload = global.get(\"getdate\");\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 280,
"y": 100,
"wires": [
[
"8a6772914449867f"
]
]
},
{
"id": "1f608bef2a8420be",
"type": "debug",
"z": "155723a7a498260e",
"name": "debug 20",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "jsonata",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 100,
"wires": []
},
{
"id": "8a6772914449867f",
"type": "json",
"z": "155723a7a498260e",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 470,
"y": 100,
"wires": [
[
"1f608bef2a8420be"
]
]
}
]