[
    {
        "id": "f917238e697a9b93",
        "type": "mqtt in",
        "z": "043876b5969ffac7",
        "name": "EVSE-state",
        "topic": "warp/U64/evse/state",
        "qos": "0",
        "datatype": "json",
        "broker": "c2d9657a.d81bf8",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 190,
        "y": 400,
        "wires": [
            [
                "aed05e3148813f52",
                "eddff5199f90c49d",
                "056a403c707dd53c"
            ]
        ]
    },
    {
        "id": "aed05e3148813f52",
        "type": "debug",
        "z": "043876b5969ffac7",
        "name": "WVSE-State",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 470,
        "y": 400,
        "wires": []
    },
    {
        "id": "4e7ffc32e09c93b6",
        "type": "switch",
        "z": "043876b5969ffac7",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "0",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "1",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "2",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "3",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "4",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 5,
        "x": 1170,
        "y": 480,
        "wires": [
            [
                "b4d8d16cd6667418"
            ],
            [
                "2a21429512558578"
            ],
            [
                "2a21429512558578"
            ],
            [
                "4b11abf67f239671"
            ],
            []
        ],
        "info": "0: \"NOT_CONNECTED\", 1: \"CONNECTED\", 2: \"CHARGING\", 3: \"ERROR\" \nNeu: \n0 nix\n1 warte auf freigabe\n2 connct\n3 load\n4 error"
    },
    {
        "id": "3b26e2c7e07d687e",
        "type": "function",
        "z": "043876b5969ffac7",
        "name": "Lade-Stand-text",
        "func": "var var1 = msg.payload;\nvar var2 = \"not connected\";\n\nif (var1 == 0)\n{ ; }\n\nif (var1 == 1)\n{ var2= \"Connected\"; }\nif (var1 == 2)\n{ var2= \"waiting\"; }\n\nif (var1 == 3)\n{ var2 = \"Charging\"; }\n\nif (var1 == 4)\n{ var2 = \"error\"; }\n\nmsg.payload = var2;\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1200,
        "y": 540,
        "wires": [
            [
                "89552e74bffdb808"
            ]
        ]
    },
    {
        "id": "89552e74bffdb808",
        "type": "debug",
        "z": "043876b5969ffac7",
        "name": "debug 316",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1450,
        "y": 560,
        "wires": []
    },
    {
        "id": "b4d8d16cd6667418",
        "type": "debug",
        "z": "043876b5969ffac7",
        "name": "Not-Connected",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1400,
        "y": 420,
        "wires": []
    },
    {
        "id": "4b11abf67f239671",
        "type": "debug",
        "z": "043876b5969ffac7",
        "name": "Charging",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1520,
        "y": 500,
        "wires": []
    },
    {
        "id": "2720fd298aaaa4df",
        "type": "debug",
        "z": "043876b5969ffac7",
        "name": "load-Current",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 890,
        "y": 440,
        "wires": []
    },
    {
        "id": "eddff5199f90c49d",
        "type": "function",
        "z": "043876b5969ffac7",
        "name": "Lade-Status-ermitteln",
        "func": "var var1 = true;\n\nvar1 = msg.payload.charger_state;\n\nmsg.payload = var1;\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 480,
        "wires": [
            [
                "8bf43a8e365cca51",
                "4e7ffc32e09c93b6",
                "3b26e2c7e07d687e"
            ]
        ]
    },
    {
        "id": "8bf43a8e365cca51",
        "type": "debug",
        "z": "043876b5969ffac7",
        "name": "charger-State",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 880,
        "y": 540,
        "wires": []
    },
    {
        "id": "056a403c707dd53c",
        "type": "function",
        "z": "043876b5969ffac7",
        "name": "allowed-current-Ladestrom",
        "func": "var var1 = true;\n\nvar1 = msg.payload.allowed_charging_current;\n\nmsg.payload = var1;\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 600,
        "y": 440,
        "wires": [
            [
                "2720fd298aaaa4df",
                "08ac5b091e61e041",
                "6ccd5f799635360a"
            ]
        ]
    },
    {
        "id": "2a21429512558578",
        "type": "debug",
        "z": "043876b5969ffac7",
        "name": "waiting",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1390,
        "y": 460,
        "wires": []
    },
    {
        "id": "437638b437ef2557",
        "type": "mqtt out",
        "z": "043876b5969ffac7",
        "name": "Setze Ladestrom",
        "topic": "warp/U64/evse/global_current_update",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "c2d9657a.d81bf8",
        "x": 490,
        "y": 660,
        "wires": []
    },
    {
        "id": "36df2c9dc8887ded",
        "type": "inject",
        "z": "043876b5969ffac7",
        "name": "{\"current\":10000} = 8kW",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"current\":10000}",
        "payloadType": "json",
        "x": 210,
        "y": 660,
        "wires": [
            [
                "437638b437ef2557"
            ]
        ]
    },
    {
        "id": "00bdc79c80719847",
        "type": "inject",
        "z": "043876b5969ffac7",
        "name": "{\"current\":6000}  = 3,5kW",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"current\":6000}",
        "payloadType": "json",
        "x": 210,
        "y": 600,
        "wires": [
            [
                "437638b437ef2557"
            ]
        ]
    },
    {
        "id": "d23143336a505164",
        "type": "comment",
        "z": "043876b5969ffac7",
        "name": "Hier Strom setzen",
        "info": "",
        "x": 170,
        "y": 540,
        "wires": []
    },
    {
        "id": "34a0ac5caee9142b",
        "type": "inject",
        "z": "043876b5969ffac7",
        "name": "{\"current\":0}  = STOP",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"current\":0}",
        "payloadType": "json",
        "x": 200,
        "y": 720,
        "wires": [
            [
                "437638b437ef2557"
            ]
        ]
    },
    {
        "id": "08ac5b091e61e041",
        "type": "ui_gauge",
        "z": "043876b5969ffac7",
        "name": "Wallbox",
        "group": "99a4dc86.46d248",
        "order": 9,
        "width": "2",
        "height": "2",
        "gtype": "gage",
        "title": "Wallbox",
        "label": "W",
        "format": "{{payload.value}}",
        "min": "0",
        "max": "16000",
        "colors": [
            "#00b500",
            "#ff8040",
            "#ca3838"
        ],
        "seg1": "500",
        "seg2": "4000",
        "diff": false,
        "className": "",
        "x": 880,
        "y": 400,
        "wires": []
    },
    {
        "id": "6ccd5f799635360a",
        "type": "ui_gauge",
        "z": "043876b5969ffac7",
        "name": "Cons",
        "group": "99a4dc86.46d248",
        "order": 6,
        "width": "0",
        "height": "0",
        "gtype": "gage",
        "title": "Wall2",
        "label": "W",
        "format": "{{payload.value}}",
        "min": 0,
        "max": "6000",
        "colors": [
            "#ff0f87",
            "#b9005c",
            "#79003d"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 750,
        "y": 380,
        "wires": []
    },
    {
        "id": "c2d9657a.d81bf8",
        "type": "mqtt-broker",
        "name": "",
        "broker": "127.0.0.1",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "verifyservercert": true,
        "compatmode": true,
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "closeTopic": "",
        "closePayload": "",
        "willTopic": "",
        "willQos": "0",
        "willPayload": ""
    },
    {
        "id": "99a4dc86.46d248",
        "type": "ui_group",
        "name": "StromStatus",
        "tab": "258c6649.0213da",
        "order": 1,
        "disp": false,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "258c6649.0213da",
        "type": "ui_tab",
        "name": "Home",
        "icon": "home",
        "order": 1
    }
]