[
    {
        "id": "b24c5013a9edd351",
        "type": "tab",
        "label": "KSEM",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "f28bc9b4ca125038",
        "type": "mqtt in",
        "z": "b24c5013a9edd351",
        "name": "KSEM",
        "topic": "device/cb001/DBus",
        "qos": "0",
        "datatype": "json",
        "broker": "cab24cd2a9a3f70d",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 90,
        "y": 120,
        "wires": [
            [
                "61718ebe8fb86feb"
            ]
        ]
    },
    {
        "id": "61718ebe8fb86feb",
        "type": "debug",
        "z": "b24c5013a9edd351",
        "name": "KSEM",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 290,
        "y": 120,
        "wires": []
    },
    {
        "id": "d880163682aa28db",
        "type": "inject",
        "z": "b24c5013a9edd351",
        "name": "KSEM",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": "5",
        "topic": "",
        "payload": "{\"clientId\":\"cb001\",\"connected\":1,\"version\":\"v1\",\"services\":{\"KSEM\":\"grid\"}}",
        "payloadType": "json",
        "x": 90,
        "y": 60,
        "wires": [
            [
                "6eb405c175f6eb93"
            ]
        ]
    },
    {
        "id": "6eb405c175f6eb93",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "KSEM",
        "topic": "device/cb001/Status",
        "qos": "0",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 290,
        "y": 60,
        "wires": []
    },
    {
        "id": "1ed653e1a3d5cbd2",
        "type": "comment",
        "z": "b24c5013a9edd351",
        "name": "KSEM Gridmeter",
        "info": "",
        "x": 120,
        "y": 20,
        "wires": []
    },
    {
        "id": "b7c68fd4574a6a1f",
        "type": "modbus-getter",
        "z": "b24c5013a9edd351",
        "name": "512 - 519",
        "showStatusActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "logIOActivities": false,
        "unitid": "71",
        "dataType": "HoldingRegister",
        "adr": "512",
        "quantity": "8",
        "server": "b4cd9e0d.fcbb7",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 100,
        "y": 640,
        "wires": [
            [
                "4e895373b1890e21"
            ],
            []
        ]
    },
    {
        "id": "4e895373b1890e21",
        "type": "buffer-parser",
        "z": "b24c5013a9edd351",
        "name": "W",
        "data": "payload",
        "dataType": "msg",
        "specification": "spec",
        "specificationType": "ui",
        "items": [
            {
                "type": "biguint64be",
                "name": "W_bez",
                "offset": 0,
                "length": 1,
                "offsetbit": 0,
                "scale": "1",
                "mask": ""
            }
        ],
        "swap1": "",
        "swap2": "",
        "swap3": "",
        "swap1Type": "swap",
        "swap2Type": "swap",
        "swap3Type": "swap",
        "msgProperty": "payload",
        "msgPropertyType": "str",
        "resultType": "value",
        "resultTypeType": "return",
        "multipleResult": true,
        "fanOutMultipleResult": false,
        "setTopic": true,
        "outputs": 1,
        "x": 290,
        "y": 640,
        "wires": [
            [
                "afe10d6a8e05b465"
            ]
        ]
    },
    {
        "id": "285e5a3712d79e4c",
        "type": "modbus-getter",
        "z": "b24c5013a9edd351",
        "name": "0 - 3",
        "showStatusActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "logIOActivities": false,
        "unitid": "71",
        "dataType": "HoldingRegister",
        "adr": "0",
        "quantity": "4",
        "server": "b4cd9e0d.fcbb7",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 90,
        "y": 220,
        "wires": [
            [
                "fedd15222b07ae0e"
            ],
            [
                "7ecf7492721bf43b"
            ]
        ]
    },
    {
        "id": "fedd15222b07ae0e",
        "type": "buffer-parser",
        "z": "b24c5013a9edd351",
        "name": "P",
        "data": "payload",
        "dataType": "msg",
        "specification": "spec",
        "specificationType": "ui",
        "items": [
            {
                "type": "uint32be",
                "name": "P_bez",
                "offset": 0,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.1",
                "mask": ""
            },
            {
                "type": "uint32be",
                "name": "P_ein",
                "offset": 4,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.1",
                "mask": ""
            }
        ],
        "swap1": "",
        "swap2": "",
        "swap3": "",
        "swap1Type": "swap",
        "swap2Type": "swap",
        "swap3Type": "swap",
        "msgProperty": "payload",
        "msgPropertyType": "str",
        "resultType": "value",
        "resultTypeType": "return",
        "multipleResult": true,
        "fanOutMultipleResult": false,
        "setTopic": true,
        "outputs": 1,
        "x": 290,
        "y": 220,
        "wires": [
            [
                "e178ae655ba4f4d3"
            ]
        ]
    },
    {
        "id": "975287fb7f7192a1",
        "type": "buffer-parser",
        "z": "b24c5013a9edd351",
        "name": "I1,U1",
        "data": "payload",
        "dataType": "msg",
        "specification": "spec",
        "specificationType": "ui",
        "items": [
            {
                "type": "uint32be",
                "name": "I1",
                "offset": 0,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.001",
                "mask": ""
            },
            {
                "type": "uint32be",
                "name": "U1",
                "offset": 4,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.001",
                "mask": ""
            }
        ],
        "swap1": "",
        "swap2": "",
        "swap3": "",
        "swap1Type": "swap",
        "swap2Type": "swap",
        "swap3Type": "swap",
        "msgProperty": "payload",
        "msgPropertyType": "str",
        "resultType": "value",
        "resultTypeType": "return",
        "multipleResult": true,
        "fanOutMultipleResult": false,
        "setTopic": true,
        "outputs": 1,
        "x": 290,
        "y": 340,
        "wires": [
            [
                "e178ae655ba4f4d3"
            ]
        ]
    },
    {
        "id": "7ecf7492721bf43b",
        "type": "modbus-getter",
        "z": "b24c5013a9edd351",
        "name": "40 - 43",
        "showStatusActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "logIOActivities": false,
        "unitid": "71",
        "dataType": "HoldingRegister",
        "adr": "40",
        "quantity": "4",
        "server": "b4cd9e0d.fcbb7",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 100,
        "y": 280,
        "wires": [
            [
                "a24c8ecfde877290"
            ],
            [
                "f0424942204b322c"
            ]
        ]
    },
    {
        "id": "f0424942204b322c",
        "type": "modbus-getter",
        "z": "b24c5013a9edd351",
        "name": "60 - 63",
        "showStatusActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "logIOActivities": false,
        "unitid": "71",
        "dataType": "HoldingRegister",
        "adr": "60",
        "quantity": "4",
        "server": "b4cd9e0d.fcbb7",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 100,
        "y": 340,
        "wires": [
            [
                "975287fb7f7192a1"
            ],
            [
                "d6127e07ddb3e51b"
            ]
        ]
    },
    {
        "id": "a24c8ecfde877290",
        "type": "buffer-parser",
        "z": "b24c5013a9edd351",
        "name": "P1",
        "data": "payload",
        "dataType": "msg",
        "specification": "spec",
        "specificationType": "ui",
        "items": [
            {
                "type": "uint32be",
                "name": "P1_bez",
                "offset": 0,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.1",
                "mask": ""
            },
            {
                "type": "uint32be",
                "name": "P1_ein",
                "offset": 4,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.1",
                "mask": ""
            }
        ],
        "swap1": "",
        "swap2": "",
        "swap3": "",
        "swap1Type": "swap",
        "swap2Type": "swap",
        "swap3Type": "swap",
        "msgProperty": "payload",
        "msgPropertyType": "str",
        "resultType": "value",
        "resultTypeType": "return",
        "multipleResult": true,
        "fanOutMultipleResult": false,
        "setTopic": true,
        "outputs": 1,
        "x": 290,
        "y": 280,
        "wires": [
            [
                "e178ae655ba4f4d3"
            ]
        ]
    },
    {
        "id": "4c822eec3bfdca38",
        "type": "buffer-parser",
        "z": "b24c5013a9edd351",
        "name": "I2,U2",
        "data": "payload",
        "dataType": "msg",
        "specification": "spec",
        "specificationType": "ui",
        "items": [
            {
                "type": "uint32be",
                "name": "I2",
                "offset": 0,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.001",
                "mask": ""
            },
            {
                "type": "uint32be",
                "name": "U2",
                "offset": 4,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.001",
                "mask": ""
            }
        ],
        "swap1": "",
        "swap2": "",
        "swap3": "",
        "swap1Type": "swap",
        "swap2Type": "swap",
        "swap3Type": "swap",
        "msgProperty": "payload",
        "msgPropertyType": "str",
        "resultType": "value",
        "resultTypeType": "return",
        "multipleResult": true,
        "fanOutMultipleResult": false,
        "setTopic": true,
        "outputs": 1,
        "x": 290,
        "y": 460,
        "wires": [
            [
                "e178ae655ba4f4d3"
            ]
        ]
    },
    {
        "id": "d6127e07ddb3e51b",
        "type": "modbus-getter",
        "z": "b24c5013a9edd351",
        "name": "80 - 83",
        "showStatusActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "logIOActivities": false,
        "unitid": "71",
        "dataType": "HoldingRegister",
        "adr": "80",
        "quantity": "4",
        "server": "b4cd9e0d.fcbb7",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 100,
        "y": 400,
        "wires": [
            [
                "cf3d3f7e4ad9a9a3"
            ],
            [
                "2b1af7e0151672d9"
            ]
        ]
    },
    {
        "id": "2b1af7e0151672d9",
        "type": "modbus-getter",
        "z": "b24c5013a9edd351",
        "name": "100 - 103",
        "showStatusActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "logIOActivities": false,
        "unitid": "71",
        "dataType": "HoldingRegister",
        "adr": "100",
        "quantity": "4",
        "server": "b4cd9e0d.fcbb7",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 100,
        "y": 460,
        "wires": [
            [
                "4c822eec3bfdca38"
            ],
            [
                "ebbce3dd85a0fd50"
            ]
        ]
    },
    {
        "id": "cf3d3f7e4ad9a9a3",
        "type": "buffer-parser",
        "z": "b24c5013a9edd351",
        "name": "P2",
        "data": "payload",
        "dataType": "msg",
        "specification": "spec",
        "specificationType": "ui",
        "items": [
            {
                "type": "uint32be",
                "name": "P2_bez",
                "offset": 0,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.1",
                "mask": ""
            },
            {
                "type": "uint32be",
                "name": "P2_ein",
                "offset": 4,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.1",
                "mask": ""
            }
        ],
        "swap1": "",
        "swap2": "",
        "swap3": "",
        "swap1Type": "swap",
        "swap2Type": "swap",
        "swap3Type": "swap",
        "msgProperty": "payload",
        "msgPropertyType": "str",
        "resultType": "value",
        "resultTypeType": "return",
        "multipleResult": true,
        "fanOutMultipleResult": false,
        "setTopic": true,
        "outputs": 1,
        "x": 290,
        "y": 400,
        "wires": [
            [
                "e178ae655ba4f4d3"
            ]
        ]
    },
    {
        "id": "736502884fe52bd7",
        "type": "buffer-parser",
        "z": "b24c5013a9edd351",
        "name": "I3,U3",
        "data": "payload",
        "dataType": "msg",
        "specification": "spec",
        "specificationType": "ui",
        "items": [
            {
                "type": "uint32be",
                "name": "I3",
                "offset": 0,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.001",
                "mask": ""
            },
            {
                "type": "uint32be",
                "name": "U3",
                "offset": 4,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.001",
                "mask": ""
            }
        ],
        "swap1": "",
        "swap2": "",
        "swap3": "",
        "swap1Type": "swap",
        "swap2Type": "swap",
        "swap3Type": "swap",
        "msgProperty": "payload",
        "msgPropertyType": "str",
        "resultType": "value",
        "resultTypeType": "return",
        "multipleResult": true,
        "fanOutMultipleResult": false,
        "setTopic": true,
        "outputs": 1,
        "x": 290,
        "y": 580,
        "wires": [
            [
                "e178ae655ba4f4d3"
            ]
        ]
    },
    {
        "id": "ebbce3dd85a0fd50",
        "type": "modbus-getter",
        "z": "b24c5013a9edd351",
        "name": "120 - 123",
        "showStatusActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "logIOActivities": false,
        "unitid": "71",
        "dataType": "HoldingRegister",
        "adr": "120",
        "quantity": "4",
        "server": "b4cd9e0d.fcbb7",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 100,
        "y": 520,
        "wires": [
            [
                "dc523e960bab4726"
            ],
            [
                "5354d521745c68a3"
            ]
        ]
    },
    {
        "id": "5354d521745c68a3",
        "type": "modbus-getter",
        "z": "b24c5013a9edd351",
        "name": "140 - 143",
        "showStatusActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "logIOActivities": false,
        "unitid": "71",
        "dataType": "HoldingRegister",
        "adr": "140",
        "quantity": "4",
        "server": "b4cd9e0d.fcbb7",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 100,
        "y": 580,
        "wires": [
            [
                "736502884fe52bd7"
            ],
            [
                "b7c68fd4574a6a1f"
            ]
        ]
    },
    {
        "id": "dc523e960bab4726",
        "type": "buffer-parser",
        "z": "b24c5013a9edd351",
        "name": "P3",
        "data": "payload",
        "dataType": "msg",
        "specification": "spec",
        "specificationType": "ui",
        "items": [
            {
                "type": "uint32be",
                "name": "P3_bez",
                "offset": 0,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.1",
                "mask": ""
            },
            {
                "type": "uint32be",
                "name": "P3_ein",
                "offset": 4,
                "length": 1,
                "offsetbit": 0,
                "scale": "0.1",
                "mask": ""
            }
        ],
        "swap1": "",
        "swap2": "",
        "swap3": "",
        "swap1Type": "swap",
        "swap2Type": "swap",
        "swap3Type": "swap",
        "msgProperty": "payload",
        "msgPropertyType": "str",
        "resultType": "value",
        "resultTypeType": "return",
        "multipleResult": true,
        "fanOutMultipleResult": false,
        "setTopic": true,
        "outputs": 1,
        "x": 290,
        "y": 520,
        "wires": [
            [
                "e178ae655ba4f4d3"
            ]
        ]
    },
    {
        "id": "e178ae655ba4f4d3",
        "type": "join",
        "z": "b24c5013a9edd351",
        "name": "Objekt",
        "mode": "custom",
        "build": "object",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "14",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 490,
        "y": 400,
        "wires": [
            [
                "80cf3b8f5366e964"
            ]
        ]
    },
    {
        "id": "dda3a3485a3b9584",
        "type": "inject",
        "z": "b24c5013a9edd351",
        "name": "1s",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 90,
        "y": 180,
        "wires": [
            [
                "285e5a3712d79e4c"
            ]
        ]
    },
    {
        "id": "afe10d6a8e05b465",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "BigInt zu Num",
        "func": "//0.1Wh zu kWh\nlet W = Number(msg.payload)/10000;\nW = parseFloat(W.toFixed(2));\nmsg.payload = W;\nmsg.topic = \"Zähler\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 540,
        "y": 640,
        "wires": [
            [
                "188b82dc910badb2"
            ]
        ]
    },
    {
        "id": "69782a26173ac138",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "U L1",
        "topic": "W/yourID/grid/1/Ac/L1/Voltage",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 1150,
        "y": 20,
        "wires": []
    },
    {
        "id": "2763dd02a86ae75d",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "U L2",
        "topic": "W/yourID/grid/1/Ac/L2/Voltage",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 1150,
        "y": 80,
        "wires": []
    },
    {
        "id": "d1551f9b1d372049",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "U1",
        "func": "let U1 = msg.payload.U1;\nmsg.payload = {\"value\":U1};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1030,
        "y": 20,
        "wires": [
            [
                "69782a26173ac138"
            ]
        ]
    },
    {
        "id": "8e6b4b9ee7123d9b",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "U2",
        "func": "let U2 = msg.payload.U2;\nmsg.payload = {\"value\":U2};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1030,
        "y": 80,
        "wires": [
            [
                "2763dd02a86ae75d"
            ]
        ]
    },
    {
        "id": "6ced7ce1338ee450",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "U L3",
        "topic": "W/yourID/grid/1/Ac/L3/Voltage",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 1150,
        "y": 140,
        "wires": []
    },
    {
        "id": "e9b31b9986880fe6",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "U3",
        "func": "let U3 = msg.payload.U3;\nmsg.payload = {\"value\":U3};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1030,
        "y": 140,
        "wires": [
            [
                "6ced7ce1338ee450"
            ]
        ]
    },
    {
        "id": "a5b6855a64d1f385",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "Power",
        "topic": "W/yourID/grid/1/Ac/Power",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 810,
        "y": 460,
        "wires": []
    },
    {
        "id": "5a3e9c7aaf4b6a4f",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "P",
        "func": "let P = msg.payload.P;\nmsg.payload = {\"value\":P};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 460,
        "wires": [
            [
                "a5b6855a64d1f385"
            ]
        ]
    },
    {
        "id": "15ea3f9f54522bde",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "I L1",
        "topic": "W/yourID/grid/1/Ac/L1/Current",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 810,
        "y": 20,
        "wires": []
    },
    {
        "id": "e9497fad2c6dad27",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "I1",
        "func": "let I1 = msg.payload.I1;\nmsg.payload = {\"value\":I1};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 20,
        "wires": [
            [
                "15ea3f9f54522bde"
            ]
        ]
    },
    {
        "id": "ef2754b590072e51",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "I L2",
        "topic": "W/yourID/grid/1/Ac/L2/Current",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 810,
        "y": 80,
        "wires": []
    },
    {
        "id": "05c2dcc8aa5db2d5",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "I2",
        "func": "let I2 = msg.payload.I2;\nmsg.payload = {\"value\":I2};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 80,
        "wires": [
            [
                "ef2754b590072e51"
            ]
        ]
    },
    {
        "id": "080995706c52f363",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "I L3",
        "topic": "W/yourID/grid/1/Ac/L3/Current",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 810,
        "y": 140,
        "wires": []
    },
    {
        "id": "a599d47bb1668cae",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "I3",
        "func": "let I3 = msg.payload.I3;\nmsg.payload = {\"value\":I3};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 140,
        "wires": [
            [
                "080995706c52f363"
            ]
        ]
    },
    {
        "id": "7205662c5b30a624",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "P L1",
        "topic": "W/yourID/grid/1/Ac/L1/Power",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 810,
        "y": 280,
        "wires": []
    },
    {
        "id": "f0aeb673252aa001",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "P1",
        "func": "let P1 = msg.payload.P1;\nmsg.payload = {\"value\":P1};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 280,
        "wires": [
            [
                "7205662c5b30a624"
            ]
        ]
    },
    {
        "id": "b7be81175e47c334",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "P L2",
        "topic": "W/yourID/grid/1/Ac/L2/Power",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 810,
        "y": 340,
        "wires": []
    },
    {
        "id": "2ba3312fdaa153c8",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "P2",
        "func": "let P2 = msg.payload.P2;\nmsg.payload = {\"value\":P2};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 340,
        "wires": [
            [
                "b7be81175e47c334"
            ]
        ]
    },
    {
        "id": "fce3f6cfbfd3b801",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "P L3",
        "topic": "W/yourID/grid/1/Ac/L3/Power",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 810,
        "y": 400,
        "wires": []
    },
    {
        "id": "ee4e4d315e9ff4eb",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "P3",
        "func": "let P3 = msg.payload.P3;\nmsg.payload = {\"value\":P3};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 400,
        "wires": [
            [
                "fce3f6cfbfd3b801"
            ]
        ]
    },
    {
        "id": "23d24b23094eb338",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "I ges",
        "topic": "W/yourID/grid/1/Ac/Current",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 810,
        "y": 200,
        "wires": []
    },
    {
        "id": "16bc5284114c20c7",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "I",
        "func": "let I = msg.payload.I;\nmsg.payload = {\"value\":I};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 200,
        "wires": [
            [
                "23d24b23094eb338"
            ]
        ]
    },
    {
        "id": "632e3e117f3b0dfd",
        "type": "link in",
        "z": "b24c5013a9edd351",
        "name": "Messwerte",
        "links": [
            "891ea3cf06a3161c",
            "a33c840d0ab6416a"
        ],
        "x": 545,
        "y": 80,
        "wires": [
            [
                "e9497fad2c6dad27",
                "05c2dcc8aa5db2d5",
                "a599d47bb1668cae",
                "16bc5284114c20c7"
            ]
        ]
    },
    {
        "id": "343ffe8f4f28e5da",
        "type": "link in",
        "z": "b24c5013a9edd351",
        "name": "Messwerte",
        "links": [
            "891ea3cf06a3161c",
            "a33c840d0ab6416a"
        ],
        "x": 905,
        "y": 80,
        "wires": [
            [
                "d1551f9b1d372049",
                "8e6b4b9ee7123d9b",
                "e9b31b9986880fe6"
            ]
        ]
    },
    {
        "id": "188b82dc910badb2",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "W",
        "func": "let W = msg.payload;\nmsg.payload = {\"value\":W};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 640,
        "wires": [
            [
                "2aea60dea0ff8f9e"
            ]
        ]
    },
    {
        "id": "2aea60dea0ff8f9e",
        "type": "mqtt out",
        "z": "b24c5013a9edd351",
        "name": "W import",
        "topic": "W/yourID/grid/1/Ac/Energy/Forward",
        "qos": "0",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "cab24cd2a9a3f70d",
        "x": 820,
        "y": 640,
        "wires": []
    },
    {
        "id": "a33c840d0ab6416a",
        "type": "link out",
        "z": "b24c5013a9edd351",
        "name": "Messwerte",
        "mode": "link",
        "links": [
            "343ffe8f4f28e5da",
            "632e3e117f3b0dfd"
        ],
        "x": 545,
        "y": 320,
        "wires": []
    },
    {
        "id": "80cf3b8f5366e964",
        "type": "function",
        "z": "b24c5013a9edd351",
        "name": "Messwerte",
        "func": "// gesamt\nlet P_bez = msg.payload.P_bez;\nlet P_ein = msg.payload.P_ein;\nlet P;\nif (P_ein > 0) {\n    P = P_ein *-1;\n} else {\n    P = P_bez;\n}\nP = Math.round(P);\n// L1\nlet P1_bez = msg.payload.P1_bez;\nlet P1_ein = msg.payload.P1_ein;\nlet P1;\nif (P1_ein > 0) {\n    P1 = P1_ein *-1;\n} else {\n    P1 = P1_bez;\n}\nP1 = Math.round(P1);\nlet U1 = parseFloat(msg.payload.U1.toFixed(2));\n// L2\nlet P2_bez = msg.payload.P2_bez;\nlet P2_ein = msg.payload.P2_ein;\nlet P2;\nif (P2_ein > 0) {\n    P2 = P2_ein *-1;\n} else {\n    P2 = P2_bez;\n}\nP2 = Math.round(P2);\nlet U2 = parseFloat(msg.payload.U2.toFixed(2));\n// L3\nlet P3_bez = msg.payload.P3_bez;\nlet P3_ein = msg.payload.P3_ein;\nlet P3;\nif (P3_ein > 0) {\n    P3 = P3_ein *-1;\n} else {\n    P3 = P3_bez;\n}\nP3 = Math.round(P3);\nlet U3 = parseFloat(msg.payload.U3.toFixed(2));\n// Ströme mit Vorzeichen\nlet I1 = msg.payload.I1;\nlet I2 = msg.payload.I2;\nlet I3 = msg.payload.I3;\nif (P1_ein > 0) {\n    I1 = I1 *-1;\n} else {\n    I1 = I1;\n}\nif (P2_ein > 0) {\n    I2 = I2 *-1;\n} else {\n    I2 = I2;\n}\nif (P3_ein > 0) {\n    I3 = I3 *-1;\n} else {\n    I3 = I3;\n}\nI1 = parseFloat(I1.toFixed(2));\nI2 = parseFloat(I2.toFixed(2));\nI3 = parseFloat(I3.toFixed(2));\nlet I = I1+I2+I3;\nI = parseFloat(I.toFixed(2));\nmsg.payload = {P,I,P1,P2,P3,U1,U2,U3,I1,I2,I3};\nmsg.topic = \"Messwerte\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 360,
        "wires": [
            [
                "a33c840d0ab6416a",
                "f0aeb673252aa001",
                "2ba3312fdaa153c8",
                "ee4e4d315e9ff4eb",
                "5a3e9c7aaf4b6a4f"
            ]
        ]
    },
    {
        "id": "cab24cd2a9a3f70d",
        "type": "mqtt-broker",
        "name": "Venus",
        "broker": "127.0.0.1",
        "port": "1883",
        "clientid": "Venus",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "4",
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    },
    {
        "id": "b4cd9e0d.fcbb7",
        "type": "modbus-client",
        "name": "KSEM",
        "clienttype": "tcp",
        "bufferCommands": true,
        "stateLogEnabled": false,
        "queueLogEnabled": false,
        "tcpHost": "192.168.74.51",
        "tcpPort": "502",
        "tcpType": "TCP-RTU-BUFFERED",
        "serialPort": "/dev/ttyUSB",
        "serialType": "RTU-BUFFERD",
        "serialBaudrate": "9600",
        "serialDatabits": "8",
        "serialStopbits": "1",
        "serialParity": "none",
        "serialConnectionDelay": "100",
        "serialAsciiResponseStartDelimiter": "",
        "unit_id": 71,
        "commandDelay": 5,
        "clientTimeout": 1000,
        "reconnectOnTimeout": true,
        "reconnectTimeout": 2000,
        "parallelUnitIdsAllowed": false
    }
]