[
    {
        "id": "b5ffa57229ab8008",
        "type": "tab",
        "label": "Hoymiles dyn. Leistung",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "51e30fb5e8de2a36",
        "type": "junction",
        "z": "b5ffa57229ab8008",
        "x": 1270,
        "y": 1360,
        "wires": [
            [
                "e1e616353118bf52",
                "63df686f2514905b",
                "424e7c47a78e801f",
                "9ec612d3dc52f9d9"
            ]
        ]
    },
    {
        "id": "fc7c40f85c4bba4c",
        "type": "sma-webconnect",
        "z": "b5ffa57229ab8008",
        "ip_address": "192.168.1.12",
        "right": "usr",
        "use_tls": false,
        "device_selection": "sb_tripower",
        "x": 230,
        "y": 100,
        "wires": [
            [
                "483478f142cd2e23",
                "0c667605165acde9",
                "2e19bcdd42188e8a",
                "44bb6d7c2be97d91",
                "33e646c70b473372"
            ]
        ]
    },
    {
        "id": "cfbb435b1f7bfa07",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "Alle 10 Sek. den SMA abfragen",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "10",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 190,
        "y": 40,
        "wires": [
            [
                "fc7c40f85c4bba4c"
            ]
        ]
    },
    {
        "id": "483478f142cd2e23",
        "type": "function",
        "z": "b5ffa57229ab8008",
        "name": "PV-Erzeugung",
        "func": "var power = {};\n// power.payload = Math.round( msg.payload.power / 10 ) / 100;\n power.payload = msg.payload.power;\nreturn power;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 460,
        "y": 80,
        "wires": [
            [
                "64f43344f1313752",
                "72488d650a89b012",
                "ac56f2cc33058c06",
                "2ac640465d6c59d3"
            ]
        ]
    },
    {
        "id": "33e646c70b473372",
        "type": "function",
        "z": "b5ffa57229ab8008",
        "name": "Stromzukauf / Bezug",
        "func": "var power = {};\n//power.payload = Math.round( msg.payload.grid_consumption / 10 ) / 100;\nmsg.payload = msg.payload.grid_consumption;\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 480,
        "y": 120,
        "wires": [
            [
                "edb94e8e837a667e",
                "14ad22ce1b90b4bd",
                "41aa8e6b7af1b602",
                "f2f4aa8a2cf3cc2d"
            ]
        ]
    },
    {
        "id": "0c667605165acde9",
        "type": "function",
        "z": "b5ffa57229ab8008",
        "name": "Netzeinspeisung",
        "func": "var power = {};\n//power.payload = Math.round( msg.payload.grid_feedin / 10 ) / 100;\npower.payload = msg.payload.grid_feedin;\nreturn power;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 470,
        "y": 160,
        "wires": [
            [
                "fdf298bd6c81ced5",
                "e143dfcb4522c86b",
                "707f9bd582f2d3e3",
                "ac91dd9504756c50",
                "0049c8468a794bda",
                "039cc216b79438e9",
                "4413de3447e10b21"
            ]
        ]
    },
    {
        "id": "14ad22ce1b90b4bd",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Stromzukauf / Bezug",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1360,
        "y": 80,
        "wires": []
    },
    {
        "id": "2e19bcdd42188e8a",
        "type": "function",
        "z": "b5ffa57229ab8008",
        "name": "Summe Hausverbrauch",
        "func": "var power = {};\n//power.payload = Math.round( msg.payload.power / 10 ) / 100;\npower.payload = msg.payload.power + msg.payload.grid_consumption - msg.payload.grid_feedin;\nreturn power;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 490,
        "y": 200,
        "wires": [
            [
                "70418d5e823f2fe0",
                "2ad6e19130832a2d",
                "c99b11cb89d1acf4",
                "2c715ee079ef8556",
                "1cbefdf6cd805c7b",
                "5d3cdafc8f1b323b"
            ]
        ]
    },
    {
        "id": "44bb6d7c2be97d91",
        "type": "function",
        "z": "b5ffa57229ab8008",
        "name": "Energiefluss",
        "func": "var power = {};\n//power.payload = Math.round( msg.payload.power / 10 ) / 100;\nvar directional_power = msg.payload.power - msg.payload.grid_consumption;\n\nif (msg.payload.grid_consumption > 0)\n{\n    power.payload = \"<font size = 4 color = \\\"#BF1414\\\">Haus << \" + msg.payload.grid_consumption + \"W << Netz\"\n} else if (msg.payload.grid_feedin > 0)\n{\n    power.payload = \"<font size = 4 color = \\\"#00B500\\\">Haus >> \" + msg.payload.grid_feedin + \"W >> Netz\"\n} else\n{\n    power.payload = \"<font size = 4 color = \\\"#00B500\\\">Haus <<>> 0W <<>> Netz\"\n}\n\n\nreturn power;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 450,
        "y": 240,
        "wires": [
            [
                "b7c86166ce801eaa"
            ]
        ]
    },
    {
        "id": "b7c86166ce801eaa",
        "type": "ui_text",
        "z": "b5ffa57229ab8008",
        "group": "c67890a8ed2b148f",
        "order": 4,
        "width": "0",
        "height": "0",
        "name": "",
        "label": "Energiefluss",
        "format": "{{msg.payload}}",
        "layout": "col-center",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 730,
        "y": 240,
        "wires": []
    },
    {
        "id": "64f43344f1313752",
        "type": "ui_text",
        "z": "b5ffa57229ab8008",
        "group": "c67890a8ed2b148f",
        "order": 5,
        "width": "0",
        "height": "0",
        "name": "",
        "label": "PV-Erzeugung",
        "format": "{{msg.payload}} W",
        "layout": "row-spread",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 740,
        "y": 80,
        "wires": []
    },
    {
        "id": "edb94e8e837a667e",
        "type": "ui_text",
        "z": "b5ffa57229ab8008",
        "group": "c67890a8ed2b148f",
        "order": 6,
        "width": "0",
        "height": "0",
        "name": "",
        "label": "Stromzukauf / Bezug",
        "format": "{{msg.payload}} W",
        "layout": "row-spread",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 760,
        "y": 120,
        "wires": []
    },
    {
        "id": "fdf298bd6c81ced5",
        "type": "ui_text",
        "z": "b5ffa57229ab8008",
        "group": "c67890a8ed2b148f",
        "order": 7,
        "width": "0",
        "height": "0",
        "name": "",
        "label": "Netzeinspeisung",
        "format": "{{msg.payload}} W",
        "layout": "row-spread",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 750,
        "y": 160,
        "wires": []
    },
    {
        "id": "70418d5e823f2fe0",
        "type": "ui_text",
        "z": "b5ffa57229ab8008",
        "group": "c67890a8ed2b148f",
        "order": 8,
        "width": "0",
        "height": "0",
        "name": "",
        "label": "Summe Hausverbrauch",
        "format": "{{msg.payload}} W",
        "layout": "row-spread",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 770,
        "y": 200,
        "wires": []
    },
    {
        "id": "72488d650a89b012",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "PV-Erzeugung",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1300,
        "y": 40,
        "wires": []
    },
    {
        "id": "e143dfcb4522c86b",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Netzeinspeisung",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1330,
        "y": 140,
        "wires": []
    },
    {
        "id": "2ad6e19130832a2d",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Summe Hausverbrauch",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1330,
        "y": 200,
        "wires": []
    },
    {
        "id": "6594533b368f4b28",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "7.) String an Hoymiles Wattcycle (+2 Watt) übertragen",
        "topic": "inverter/ctrl/limit/0",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1660,
        "y": 580,
        "wires": []
    },
    {
        "id": "4bd75788f49d2a04",
        "type": "mqtt in",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Leistung in Watt",
        "topic": "inverter/total/P_AC",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "61de5090.0f5d9",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 150,
        "y": 360,
        "wires": [
            [
                "4401d62456c69bc2",
                "c9597b593e7d82b0",
                "3b78ff04f4845edb",
                "e209c0477e711077"
            ]
        ]
    },
    {
        "id": "e209c0477e711077",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles-Power als Flow deklarieren",
        "rules": [
            {
                "t": "set",
                "p": "hoymiles",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 190,
        "y": 420,
        "wires": [
            [
                "62481f4b016ba00f"
            ]
        ]
    },
    {
        "id": "21ab23df179a3f89",
        "type": "function",
        "z": "b5ffa57229ab8008",
        "name": "6.) Dann 2 Watt hochschrauben und in String \"xxx W\"(att) wandeln",
        "func": "msg.payload = msg.payload + 2\nvar wert=msg.payload;\nwert = wert.toString()+\"W\";\nmsg.payload = wert;\nreturn msg;\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 800,
        "y": 600,
        "wires": [
            [
                "f2f4aa8a2cf3cc2d",
                "b677efc2bf6f77a1",
                "6594533b368f4b28",
                "58d31566ed09f08a",
                "3c8d8a9573795e7f",
                "b906a9d5da5e33c5"
            ]
        ]
    },
    {
        "id": "6c3128bcc658116e",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "3.) Setze Hoymiles Flow auf Payload",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "hoymiles",
                "tot": "flow"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 690,
        "y": 460,
        "wires": [
            [
                "f2f4aa8a2cf3cc2d",
                "ded2ed79ea4f6ec2"
            ]
        ]
    },
    {
        "id": "41aa8e6b7af1b602",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "1.) Setze Payload auf Flow \"bezug\"",
        "rules": [
            {
                "t": "set",
                "p": "bezug",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 680,
        "y": 400,
        "wires": [
            [
                "92f7fe3ebaa34a20",
                "e69d12b6cc3812b7",
                "72b15cdfc776013d"
            ]
        ]
    },
    {
        "id": "92f7fe3ebaa34a20",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "2.) = Stromzukauf / Bezug > 14 Watt gehts hier weiter",
        "property": "bezug",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gt",
                "v": "14",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1320,
        "y": 420,
        "wires": [
            [
                "6c3128bcc658116e",
                "91360115fefc440c"
            ]
        ]
    },
    {
        "id": "f2f4aa8a2cf3cc2d",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Hausverbrauch/Hoymiles aktuell/Hoymiles neue Einstellung (+2)",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1390,
        "y": 260,
        "wires": []
    },
    {
        "id": "743fa46825585952",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Leistung in Flow \"hoymiles\" auslesen & speichern",
        "info": "",
        "x": 210,
        "y": 300,
        "wires": []
    },
    {
        "id": "c8bad1621230a7e6",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Live Daten des SMA Wechselrichter Sunnyboy 4.0 auslesen",
        "info": "",
        "x": 660,
        "y": 20,
        "wires": []
    },
    {
        "id": "88afb26583d2a1c3",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Logik: Sollte der Hausverbrauch >0 Watt betragen die Leistung des Hoymiles um 2 Watt erhöhen",
        "info": "",
        "x": 1030,
        "y": 340,
        "wires": []
    },
    {
        "id": "e1e616353118bf52",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "5.) String an Hoymiles Wattcycle (<4 Watt) übertragen",
        "topic": "inverter/ctrl/limit/0",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1610,
        "y": 1360,
        "wires": []
    },
    {
        "id": "8f8992debd8ec5f4",
        "type": "function",
        "z": "b5ffa57229ab8008",
        "name": "4.) Dann 4 Watt runterschrauben und in String \"W(att) wandeln",
        "func": "msg.payload = msg.payload - 6\nvar wert=msg.payload;\nwert = wert.toString()+\"W\";\nmsg.payload = wert;\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1570,
        "y": 1280,
        "wires": [
            [
                "51e30fb5e8de2a36"
            ]
        ]
    },
    {
        "id": "58c4183a5f143d7b",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "3.) Setze Hoymiles Flow auf Payload",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "hoymiles",
                "tot": "flow"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 700,
        "y": 1280,
        "wires": [
            [
                "a3a600206677649f"
            ]
        ]
    },
    {
        "id": "c99b11cb89d1acf4",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "1.) Setze Payload auf Flow \"hausverbrauch\"",
        "rules": [
            {
                "t": "set",
                "p": "hausverbrauch",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 840,
        "y": 1160,
        "wires": [
            [
                "008a5ffc2c5b746b",
                "39a42522fb43860b"
            ]
        ]
    },
    {
        "id": "008a5ffc2c5b746b",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "2.) = Netzeinspeisung negativ (ab <0 Watt) gehts hier weiter",
        "property": "hausverbrauch",
        "propertyType": "flow",
        "rules": [
            {
                "t": "lt",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 850,
        "y": 1220,
        "wires": [
            [
                "f93dbe650d9c4d8e",
                "ca8835290ab22650"
            ]
        ]
    },
    {
        "id": "87d2589a63d09649",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Logik: Sollte der Hausverbrauch <0 Watt betragen die Leistung des Hoymiles um 4 Watt absenken",
        "info": "",
        "x": 1050,
        "y": 1120,
        "wires": []
    },
    {
        "id": "707f9bd582f2d3e3",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Akkuladung starten ab 580 Watt Netzeinspeisung ON und <=0 Watt WEITER",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "580",
                "vt": "str"
            },
            {
                "t": "lte",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 690,
        "y": 1800,
        "wires": [
            [
                "ab737bc8399678b1"
            ],
            [
                "e69d12b6cc3812b7",
                "ba1139c279b28b8e"
            ]
        ]
    },
    {
        "id": "5ea0beda70b0ea5a",
        "type": "tuya-smart-device-generic",
        "z": "b5ffa57229ab8008",
        "name": "LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "x": 1278,
        "y": 1832,
        "wires": [
            []
        ]
    },
    {
        "id": "a0c20e8f1cee08a6",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "LiFePo4 LiThink (25,6V 100Ah System) Ladung ab 530 Watt PV-Netzeinspeisung starten und >230 Watt Netzbezug stoppen",
        "info": "",
        "x": 878,
        "y": 1672,
        "wires": []
    },
    {
        "id": "ded2ed79ea4f6ec2",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "4.) = Hoymiles ist ON > 52 Watt gehts hier weiter",
        "property": "hoymiles",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gt",
                "v": "52",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1300,
        "y": 480,
        "wires": [
            [
                "6427806f839171be",
                "ed8107151525e5c2"
            ]
        ]
    },
    {
        "id": "52b515edd214355f",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1210,
        "y": 1940,
        "wires": [
            [
                "5ea0beda70b0ea5a",
                "f12a7b374c55e3b0",
                "b62ac31e7ba4ef90"
            ]
        ]
    },
    {
        "id": "ab737bc8399678b1",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"ON\" >580Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":true}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 710,
        "y": 1740,
        "wires": [
            [
                "090d4bd14a5cbe31",
                "5ea0beda70b0ea5a",
                "2364e6368a432fb9"
            ]
        ]
    },
    {
        "id": "62481f4b016ba00f",
        "type": "ui_gauge",
        "z": "b5ffa57229ab8008",
        "name": "",
        "group": "39fc06e30796303d",
        "order": 1,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Dyn. Nachteinspeisung HM-400 Wattcycle (2,7kwh)",
        "label": "Watt",
        "format": "{{value}}",
        "min": 0,
        "max": "235",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 230,
        "y": 480,
        "wires": []
    },
    {
        "id": "6427806f839171be",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "5.) Flow \"hoymiles\" abfragen ob <224 Watt",
        "property": "hoymiles",
        "propertyType": "flow",
        "rules": [
            {
                "t": "lte",
                "v": "224",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 990,
        "y": 540,
        "wires": [
            [
                "21ab23df179a3f89",
                "c97ca590fdfe901b",
                "17a20b369ff8ea2b"
            ]
        ]
    },
    {
        "id": "ac91dd9504756c50",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 4",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 750,
        "y": 1420,
        "wires": []
    },
    {
        "id": "5e8614773c569af1",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Zusätzliche Sicherheits-Logik für Regulären-Betrieb",
        "info": "",
        "x": 190,
        "y": 580,
        "wires": []
    },
    {
        "id": "3b78ff04f4845edb",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles >235 Watt gehts hier weiter",
        "property": "hoymiles",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gte",
                "v": "235",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 190,
        "y": 620,
        "wires": [
            [
                "43080465870cfb1c"
            ]
        ]
    },
    {
        "id": "43080465870cfb1c",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Auf 50% einstellen",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "50",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 170,
        "y": 660,
        "wires": [
            [
                "e8ee8fedea7cdadc",
                "a66cb8cf112fc76e",
                "9e9948f5e49ffc4d"
            ]
        ]
    },
    {
        "id": "e8ee8fedea7cdadc",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Wattcycle Leistung übertragen",
        "topic": "inverter/ctrl/limit/0",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 180,
        "y": 700,
        "wires": []
    },
    {
        "id": "4a85649e53c5ba47",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Zusätzliche Sicherheits-Logik für Standby-Betrieb (alle 10Min. auf 50% setzen)",
        "info": "",
        "x": 270,
        "y": 840,
        "wires": []
    },
    {
        "id": "d66b11274180bfc0",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles ==0 Watt gehts hier weiter",
        "property": "hoymiles",
        "propertyType": "flow",
        "rules": [
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 190,
        "y": 920,
        "wires": [
            [
                "18c2b4dd2cc79079"
            ]
        ]
    },
    {
        "id": "07f862e1732a711b",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Wattcycle Leistung übertragen",
        "topic": "inverter/ctrl/limit/0",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 200,
        "y": 1000,
        "wires": []
    },
    {
        "id": "4401d62456c69bc2",
        "type": "delay",
        "z": "b5ffa57229ab8008",
        "name": "",
        "pauseType": "rate",
        "timeout": "10",
        "timeoutUnits": "minutes",
        "rate": "1",
        "nbRateUnits": "10",
        "rateUnits": "minute",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 210,
        "y": 880,
        "wires": [
            [
                "d66b11274180bfc0"
            ]
        ]
    },
    {
        "id": "8cbef2825314129e",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 12",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 180,
        "y": 1140,
        "wires": []
    },
    {
        "id": "18c2b4dd2cc79079",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Auf 150 Watt einstellen",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "150W",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 200,
        "y": 960,
        "wires": [
            [
                "8cbef2825314129e",
                "07f862e1732a711b",
                "44a49464af9fd7e3",
                "af9ace127a78087b"
            ]
        ]
    },
    {
        "id": "59ff8437f167ced4",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Erster Wert >250 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 2020,
        "wires": []
    },
    {
        "id": "e69d12b6cc3812b7",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Sollte mehr als 230 Watt bezogen werden, Ladung in 30 Sekunden ggf. stoppen",
        "property": "bezug",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gte",
                "v": "230",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 680,
        "y": 1860,
        "wires": [
            [
                "59ff8437f167ced4",
                "f502925e237ab31e"
            ]
        ]
    },
    {
        "id": "ba1139c279b28b8e",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 15",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 840,
        "y": 2060,
        "wires": []
    },
    {
        "id": "28f4deaf842e59e2",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Sollte nach 30 Sekunden immer noch >230 Watt bezogen werden, Ladung stoppen",
        "property": "bezug",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gte",
                "v": "230",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 650,
        "y": 2000,
        "wires": [
            [
                "52b515edd214355f",
                "64b71a6ad02e9bbf"
            ]
        ]
    },
    {
        "id": "64b71a6ad02e9bbf",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Zweiter Wert nach 30 Sekunden >230 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1210,
        "y": 2080,
        "wires": []
    },
    {
        "id": "ca8835290ab22650",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": " =Hoymiles Flow(AC-Power)=0 Watt (Tagsueber wenn PV & BKKW läuft) gehts hier nicht weiter",
        "property": "hoymiles",
        "propertyType": "flow",
        "rules": [
            {
                "t": "neq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1480,
        "y": 1220,
        "wires": [
            [
                "865c16882af6a94f",
                "58c4183a5f143d7b"
            ]
        ]
    },
    {
        "id": "39a42522fb43860b",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 20",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1110,
        "y": 1160,
        "wires": []
    },
    {
        "id": "21d5afdcd4c3320d",
        "type": "mqtt in",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Leistung in Watt",
        "topic": "carport/total/P_AC",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "61de5090.0f5d9",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 470,
        "y": 3680,
        "wires": [
            [
                "c748a6270b1de722",
                "f3045f7267baa3c5",
                "fed7e9e0680a914b",
                "517bc4c33790327c"
            ]
        ]
    },
    {
        "id": "ddb5f8900b56d0be",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles HM300 (Nachteinspeisung) & HM1500 (Produktion)auslesen und im Dashboard anzeigen",
        "info": "",
        "x": 760,
        "y": 3640,
        "wires": []
    },
    {
        "id": "fed7e9e0680a914b",
        "type": "ui_gauge",
        "z": "b5ffa57229ab8008",
        "name": "",
        "group": "39fc06e30796303d",
        "order": 3,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Tagsüber: Summe Hausverbrauch Nachts: LiFePo4 Einspeisung 2*HM-300 Dyn. (LiThink & Redodo)",
        "label": "Watt",
        "format": "{{value}}",
        "min": 0,
        "max": "1500",
        "colors": [
            "#00b500",
            "#00b500",
            "#00b500"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 670,
        "y": 3780,
        "wires": []
    },
    {
        "id": "c748a6270b1de722",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 21",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 460,
        "y": 3860,
        "wires": []
    },
    {
        "id": "ac56f2cc33058c06",
        "type": "ui_gauge",
        "z": "b5ffa57229ab8008",
        "name": "",
        "group": "c67890a8ed2b148f",
        "order": 1,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "PV-Erzeugung",
        "label": "Watt",
        "format": "{{value}}",
        "min": 0,
        "max": "4000",
        "colors": [
            "#00b500",
            "#00b500",
            "#00b500"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 980,
        "y": 40,
        "wires": []
    },
    {
        "id": "df8de47839359fc4",
        "type": "mqtt in",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Tagesproduktion",
        "topic": "carport/total/YieldDay",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "61de5090.0f5d9",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 770,
        "y": 3680,
        "wires": [
            [
                "dc5bd93bc2a41c5f"
            ]
        ]
    },
    {
        "id": "dc5bd93bc2a41c5f",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 23",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 740,
        "y": 3860,
        "wires": []
    },
    {
        "id": "0049c8468a794bda",
        "type": "ui_gauge",
        "z": "b5ffa57229ab8008",
        "name": "",
        "group": "c67890a8ed2b148f",
        "order": 3,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "PV-Netzeinspeisung",
        "label": "Watt",
        "format": "{{value}}",
        "min": "0",
        "max": "4000",
        "colors": [
            "#b30000",
            "#00b500",
            "#00b500"
        ],
        "seg1": "1000",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 1000,
        "y": 160,
        "wires": []
    },
    {
        "id": "f3045f7267baa3c5",
        "type": "ui_chart",
        "z": "b5ffa57229ab8008",
        "name": "",
        "group": "39fc06e30796303d",
        "order": 4,
        "width": 0,
        "height": 0,
        "label": "Carport Erzeugung letzten 8 Stunden und Nachteinspeisung",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "8",
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 580,
        "y": 3820,
        "wires": [
            []
        ]
    },
    {
        "id": "2c715ee079ef8556",
        "type": "ui_gauge",
        "z": "b5ffa57229ab8008",
        "name": "",
        "group": "39fc06e30796303d",
        "order": 2,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Nachts: Bezug (Grün) / Einspeisung (Rot)",
        "label": "Watt",
        "format": "{{value}}",
        "min": "-100",
        "max": "100",
        "colors": [
            "#ff0000",
            "#00b500",
            "#00b500"
        ],
        "seg1": "0",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 1060,
        "y": 120,
        "wires": []
    },
    {
        "id": "2ac640465d6c59d3",
        "type": "ui_chart",
        "z": "b5ffa57229ab8008",
        "name": "",
        "group": "c67890a8ed2b148f",
        "order": 2,
        "width": 0,
        "height": 0,
        "label": "PV Erzeugung letzten 10 Stunden",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "10",
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 1020,
        "y": 80,
        "wires": [
            []
        ]
    },
    {
        "id": "f502925e237ab31e",
        "type": "delay",
        "z": "b5ffa57229ab8008",
        "name": "",
        "pauseType": "delay",
        "timeout": "30",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "60",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 590,
        "y": 1920,
        "wires": [
            [
                "28f4deaf842e59e2",
                "dfcc0c9620343dea"
            ]
        ]
    },
    {
        "id": "c97ca590fdfe901b",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 25",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1300,
        "y": 540,
        "wires": []
    },
    {
        "id": "039cc216b79438e9",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Akkuladung starten ab 570 Watt Netzeinspeisung ON und <=0 Watt WEITER",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "570",
                "vt": "str"
            },
            {
                "t": "lte",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 670,
        "y": 2260,
        "wires": [
            [
                "dc5f06387c342bac"
            ],
            [
                "72b15cdfc776013d",
                "cbeb6893cb61a2f3"
            ]
        ]
    },
    {
        "id": "a51cd3a296ae08b4",
        "type": "tuya-smart-device-generic",
        "z": "b5ffa57229ab8008",
        "name": "LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "x": 1278,
        "y": 2292,
        "wires": [
            []
        ]
    },
    {
        "id": "5e63befad2123182",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "LiFePo4 Redodo (25,6V 100Ah System) Ladung ab 570 Watt PV-Netzeinspeisung starten und >230 Watt Netzbezug stoppen",
        "info": "",
        "x": 878,
        "y": 2132,
        "wires": []
    },
    {
        "id": "3d415ddad7b94a79",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"`Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1210,
        "y": 2400,
        "wires": [
            [
                "e4cdbb95c92e104f",
                "a51cd3a296ae08b4"
            ]
        ]
    },
    {
        "id": "dc5f06387c342bac",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"ON\" >570Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"`Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":true}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 710,
        "y": 2200,
        "wires": [
            [
                "a51cd3a296ae08b4",
                "8fda42419b801a1c"
            ]
        ]
    },
    {
        "id": "1cd2b9f78c5efb27",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Erster Wert >240 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 2480,
        "wires": []
    },
    {
        "id": "72b15cdfc776013d",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Sollte mehr als 230 Watt bezogen werden, Ladung in 45 Sekunden ggf. stoppen",
        "property": "bezug",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gte",
                "v": "230",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 680,
        "y": 2320,
        "wires": [
            [
                "1cd2b9f78c5efb27",
                "50fc5bb3baa92346"
            ]
        ]
    },
    {
        "id": "cbeb6893cb61a2f3",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 26",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 840,
        "y": 2520,
        "wires": []
    },
    {
        "id": "575381620a163d61",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Sollte nach 45 Sekunden immer noch >230 Watt bezogen werden, Ladung stoppen",
        "property": "bezug",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gte",
                "v": "230",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 650,
        "y": 2460,
        "wires": [
            [
                "3d415ddad7b94a79",
                "b8af4332790535b3"
            ]
        ]
    },
    {
        "id": "b8af4332790535b3",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Zweiter Wert nach 45 Sekunden >230 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1210,
        "y": 2540,
        "wires": []
    },
    {
        "id": "50fc5bb3baa92346",
        "type": "delay",
        "z": "b5ffa57229ab8008",
        "name": "",
        "pauseType": "delay",
        "timeout": "45",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "90",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 590,
        "y": 2380,
        "wires": [
            [
                "575381620a163d61",
                "b14d1c2034e5cd72"
            ]
        ]
    },
    {
        "id": "80c07f778461c11b",
        "type": "mqtt in",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Total",
        "topic": "carport/total/YieldTotal",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "61de5090.0f5d9",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 1060,
        "y": 3680,
        "wires": [
            [
                "6f258bff8d77b585"
            ]
        ]
    },
    {
        "id": "6f258bff8d77b585",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 27",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1020,
        "y": 3860,
        "wires": []
    },
    {
        "id": "865c16882af6a94f",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 28",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1940,
        "y": 1220,
        "wires": []
    },
    {
        "id": "ed8107151525e5c2",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 29",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1680,
        "y": 480,
        "wires": []
    },
    {
        "id": "f93dbe650d9c4d8e",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 31",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1310,
        "y": 1160,
        "wires": []
    },
    {
        "id": "a3a600206677649f",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Power reduzieren bis max. 67 Watt",
        "property": "hoymiles",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gt",
                "v": "67",
                "vt": "str"
            },
            {
                "t": "lt",
                "v": "67",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1070,
        "y": 1280,
        "wires": [
            [
                "8f8992debd8ec5f4",
                "71a7c3283f9f4b90",
                "17a20b369ff8ea2b"
            ],
            [
                "312ab395a74414e3"
            ]
        ]
    },
    {
        "id": "71a7c3283f9f4b90",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 33",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 990,
        "y": 1340,
        "wires": []
    },
    {
        "id": "2c9ec294b4273c45",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 35",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "led-status",
        "statusType": "auto",
        "x": 2000,
        "y": 2280,
        "wires": []
    },
    {
        "id": "e4cdbb95c92e104f",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Payload auf FALSE für LED-Anzeige",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1750,
        "y": 2260,
        "wires": [
            [
                "f7bab11dc98ba5b1",
                "2c9ec294b4273c45"
            ]
        ]
    },
    {
        "id": "ebf7157bc0c27ffb",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 1730,
        "y": 2160,
        "wires": [
            [
                "f7bab11dc98ba5b1",
                "2c9ec294b4273c45"
            ]
        ]
    },
    {
        "id": "7ea75f0b2d98c5e7",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 1730,
        "y": 2300,
        "wires": [
            [
                "f7bab11dc98ba5b1",
                "2c9ec294b4273c45"
            ]
        ]
    },
    {
        "id": "8fda42419b801a1c",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Payload auf TRUE für LED-Anzeige",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1740,
        "y": 2200,
        "wires": [
            [
                "f7bab11dc98ba5b1"
            ]
        ]
    },
    {
        "id": "ac2eb892b6f9a255",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 36",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "led-status",
        "statusType": "auto",
        "x": 2000,
        "y": 1820,
        "wires": []
    },
    {
        "id": "f12a7b374c55e3b0",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Payload auf FALSE für LED-Anzeige",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1730,
        "y": 1800,
        "wires": [
            [
                "c1c1b335966fe173",
                "ac2eb892b6f9a255"
            ]
        ]
    },
    {
        "id": "df6937d38749a4b9",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 1728,
        "y": 1692,
        "wires": [
            [
                "c1c1b335966fe173",
                "ac2eb892b6f9a255"
            ]
        ]
    },
    {
        "id": "6cb928c39b60534f",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 1710,
        "y": 1840,
        "wires": [
            [
                "c1c1b335966fe173",
                "ac2eb892b6f9a255"
            ]
        ]
    },
    {
        "id": "2364e6368a432fb9",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Payload auf TRUE für LED-Anzeige",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1720,
        "y": 1740,
        "wires": [
            [
                "c1c1b335966fe173"
            ]
        ]
    },
    {
        "id": "4413de3447e10b21",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Akkuladung starten ab 560 Watt Netzeinspeisung ON und <=0 Watt WEITER",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "560",
                "vt": "str"
            },
            {
                "t": "lte",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 648,
        "y": 2752,
        "wires": [
            [
                "d4ca7d2f558cda27"
            ],
            [
                "4b1a25fffa732c70",
                "ddd9f9c3c3c06ba6"
            ]
        ]
    },
    {
        "id": "ac7c97f9890b6f6e",
        "type": "tuya-smart-device-generic",
        "z": "b5ffa57229ab8008",
        "name": "LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "x": 1258,
        "y": 2792,
        "wires": [
            []
        ]
    },
    {
        "id": "5b5865e81df2da49",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "LiFePo4 Wattcycle (25,6V 100Ah System) Ladung ab 560 Watt PV-Netzeinspeisung starten und >230 Watt Netzbezug stoppen",
        "info": "",
        "x": 858,
        "y": 2632,
        "wires": []
    },
    {
        "id": "e8fa0e43128147ae",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1190,
        "y": 2900,
        "wires": [
            [
                "2e8fa00af31cec6d",
                "ac7c97f9890b6f6e"
            ]
        ]
    },
    {
        "id": "d4ca7d2f558cda27",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"ON\" >560Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":true}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 690,
        "y": 2700,
        "wires": [
            [
                "205365e9522e15e9",
                "ac7c97f9890b6f6e",
                "268cc5ccbb7da018"
            ]
        ]
    },
    {
        "id": "92c57c587c8c0b69",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Erster Wert >230 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1160,
        "y": 2980,
        "wires": []
    },
    {
        "id": "4b1a25fffa732c70",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Sollte mehr als 230 Watt bezogen werden, Ladung in 60 Sekunden ggf. stoppen",
        "property": "bezug",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gte",
                "v": "230",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 620,
        "y": 2820,
        "wires": [
            [
                "92c57c587c8c0b69",
                "6b873a354109cdd1"
            ]
        ]
    },
    {
        "id": "ddd9f9c3c3c06ba6",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 37",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 820,
        "y": 3020,
        "wires": []
    },
    {
        "id": "dbb6d0e8b1396d29",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Sollte nach 60 Sekunden. immer noch >230 Watt bezogen werden, Ladung stoppen",
        "property": "bezug",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gte",
                "v": "230",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 630,
        "y": 2960,
        "wires": [
            [
                "e8fa0e43128147ae",
                "37cf4cd7838b5c05"
            ]
        ]
    },
    {
        "id": "37cf4cd7838b5c05",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "Zweiter Wert nach 60 Sekunden >230 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1190,
        "y": 3040,
        "wires": []
    },
    {
        "id": "6b873a354109cdd1",
        "type": "delay",
        "z": "b5ffa57229ab8008",
        "name": "",
        "pauseType": "delay",
        "timeout": "60",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "120",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 570,
        "y": 2880,
        "wires": [
            [
                "dbb6d0e8b1396d29"
            ]
        ]
    },
    {
        "id": "6e69b04f5c4517e3",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 38",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "led-status",
        "statusType": "auto",
        "x": 1980,
        "y": 2780,
        "wires": []
    },
    {
        "id": "2e8fa00af31cec6d",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Payload auf FALSE für LED-Anzeige",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1730,
        "y": 2760,
        "wires": [
            [
                "e785f619d5fcbe0b",
                "6e69b04f5c4517e3"
            ]
        ]
    },
    {
        "id": "c5a9d601446871b1",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 1710,
        "y": 2660,
        "wires": [
            [
                "e785f619d5fcbe0b",
                "6e69b04f5c4517e3"
            ]
        ]
    },
    {
        "id": "93847f4d2ff14e73",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 1710,
        "y": 2800,
        "wires": [
            [
                "e785f619d5fcbe0b",
                "6e69b04f5c4517e3"
            ]
        ]
    },
    {
        "id": "268cc5ccbb7da018",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Payload auf TRUE für LED-Anzeige",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1718,
        "y": 2712,
        "wires": [
            [
                "e785f619d5fcbe0b"
            ]
        ]
    },
    {
        "id": "f7bab11dc98ba5b1",
        "type": "ui_led2",
        "z": "b5ffa57229ab8008",
        "order": 6,
        "group": "39fc06e30796303d",
        "width": "0",
        "height": "0",
        "label": "Akku Ladestatus (Redodo) 2,7kwh:",
        "property": "payload",
        "labelPlacement": "left",
        "labelAlignment": "left",
        "colorForValue": [
            {
                "color": "#ff0000",
                "value": "false",
                "valueType": "bool"
            },
            {
                "color": "#008000",
                "value": "true",
                "valueType": "bool"
            }
        ],
        "allowColorForValueInMessage": true,
        "shape": "square",
        "showGlow": true,
        "name": "Ladung Redodo Akku anzeigen",
        "x": 2050,
        "y": 2220,
        "wires": []
    },
    {
        "id": "c1c1b335966fe173",
        "type": "ui_led2",
        "z": "b5ffa57229ab8008",
        "order": 7,
        "group": "39fc06e30796303d",
        "width": "0",
        "height": "0",
        "label": "Akku Ladestatus (LiThink) 2,7kwh:",
        "property": "payload",
        "labelPlacement": "left",
        "labelAlignment": "left",
        "colorForValue": [
            {
                "color": "#ff0000",
                "value": "false",
                "valueType": "bool"
            },
            {
                "color": "#008000",
                "value": "true",
                "valueType": "bool"
            }
        ],
        "allowColorForValueInMessage": true,
        "shape": "square",
        "showGlow": true,
        "name": "Ladung LiThink Akku anzeigen",
        "x": 2050,
        "y": 1760,
        "wires": []
    },
    {
        "id": "e785f619d5fcbe0b",
        "type": "ui_led2",
        "z": "b5ffa57229ab8008",
        "order": 5,
        "group": "39fc06e30796303d",
        "width": "0",
        "height": "0",
        "label": "Akku Ladestatus (Wattcycle) 2,7kwh:",
        "property": "payload",
        "labelPlacement": "left",
        "labelAlignment": "left",
        "colorForValue": [
            {
                "color": "#ff0000",
                "value": "false",
                "valueType": "bool"
            },
            {
                "color": "#008000",
                "value": "true",
                "valueType": "bool"
            }
        ],
        "allowColorForValueInMessage": true,
        "shape": "square",
        "showGlow": true,
        "name": "Ladung Wattcycle Akku anzeigen",
        "x": 2040,
        "y": 2720,
        "wires": []
    },
    {
        "id": "91360115fefc440c",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 1",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1660,
        "y": 400,
        "wires": []
    },
    {
        "id": "424e7c47a78e801f",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1470,
        "y": 1500,
        "wires": []
    },
    {
        "id": "b677efc2bf6f77a1",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 3",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1500,
        "y": 540,
        "wires": []
    },
    {
        "id": "daa073f175dd47ab",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "AUS",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 310,
        "y": 4060,
        "wires": [
            [
                "59d435131998eaf1"
            ]
        ]
    },
    {
        "id": "d64f6b69b907a11d",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "EIN",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 310,
        "y": 4100,
        "wires": [
            [
                "59d435131998eaf1"
            ]
        ]
    },
    {
        "id": "a89b46c0b873f8e7",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Wattcycle Hoymiles HM400 (Nachteinspeisung) ON/OFF",
        "info": "",
        "x": 510,
        "y": 4020,
        "wires": []
    },
    {
        "id": "d648eef0c367152a",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "AUS",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 850,
        "y": 4060,
        "wires": [
            [
                "7e9b468c465989f5"
            ]
        ]
    },
    {
        "id": "827cd718d87aae9b",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "EIN",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 850,
        "y": 4100,
        "wires": [
            [
                "7e9b468c465989f5"
            ]
        ]
    },
    {
        "id": "7e9b468c465989f5",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles LiThink EIN/AUSSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1110,
        "y": 4080,
        "wires": []
    },
    {
        "id": "43023ee2c049bbc1",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "LiThink Hoymiles HM300 (Nachteinspeisung) ON/OFF",
        "info": "",
        "x": 980,
        "y": 4020,
        "wires": []
    },
    {
        "id": "8515d3a2023a4884",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "AUS",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 530,
        "y": 4200,
        "wires": [
            [
                "dca3502da4108c5b"
            ]
        ]
    },
    {
        "id": "796adc43b8b0537f",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "EIN",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 530,
        "y": 4240,
        "wires": [
            [
                "dca3502da4108c5b"
            ]
        ]
    },
    {
        "id": "dca3502da4108c5b",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles REDODO EIN/AUSSCHALTEN",
        "topic": "carport/ctrl/power/2",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 800,
        "y": 4220,
        "wires": []
    },
    {
        "id": "363760e2e0547b90",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Redodo Hoymiles HM300 (Nachteinspeisung) ON/OFF",
        "info": "",
        "x": 720,
        "y": 4160,
        "wires": []
    },
    {
        "id": "abd91d3f41d0d2f8",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles HM300 LiThink Konstanteinspeisung bei negativen Hausverbrauch > -200 Watt ausschalten (wenn Wäremepumpe Nachts ausschaltet) & >200 Watt wieder einschalten",
        "info": "",
        "x": 760,
        "y": 3120,
        "wires": []
    },
    {
        "id": "1cbefdf6cd805c7b",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Hausverbrauch 200 Watt gehts hier weiter",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "200",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 440,
        "y": 3280,
        "wires": [
            [
                "de6cfd4e6d0e4bce",
                "20a683690c2739d9"
            ]
        ]
    },
    {
        "id": "de6cfd4e6d0e4bce",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 8",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 760,
        "y": 3320,
        "wires": []
    },
    {
        "id": "20a683690c2739d9",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Payload auf \"1\" (EIN) setzen",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 780,
        "y": 3280,
        "wires": [
            []
        ]
    },
    {
        "id": "113247d8afc93efe",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles LiThink EINSSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1080,
        "y": 3280,
        "wires": []
    },
    {
        "id": "5d3cdafc8f1b323b",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Hausverbrauch -200 Watt gehts hier weiter",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "-200",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 450,
        "y": 3180,
        "wires": [
            [
                "1850a9bd6ba62355",
                "f682e55065e13013"
            ]
        ]
    },
    {
        "id": "1850a9bd6ba62355",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 9",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 760,
        "y": 3220,
        "wires": []
    },
    {
        "id": "f682e55065e13013",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Payload auf \"0\" (AUS) setzen",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 780,
        "y": 3180,
        "wires": [
            []
        ]
    },
    {
        "id": "00353fafeed05b95",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles LiThink AUSSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1080,
        "y": 3180,
        "wires": []
    },
    {
        "id": "58d31566ed09f08a",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "7.) String an Hoymiles Redodo (+2 Watt) übertragen",
        "topic": "carport/ctrl/limit/2",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1660,
        "y": 620,
        "wires": []
    },
    {
        "id": "63df686f2514905b",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "5.) String an Hoymiles Redodo (<4 Watt) übertragen",
        "topic": "carport/ctrl/limit/2",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1610,
        "y": 1400,
        "wires": []
    },
    {
        "id": "a66cb8cf112fc76e",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Redodo Leistung übertragen",
        "topic": "carport/ctrl/limit/2",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 170,
        "y": 740,
        "wires": []
    },
    {
        "id": "44a49464af9fd7e3",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Redodo Leistung übertragen",
        "topic": "carport/ctrl/limit/2",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 190,
        "y": 1040,
        "wires": []
    },
    {
        "id": "c9597b593e7d82b0",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 6",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 160,
        "y": 520,
        "wires": []
    },
    {
        "id": "b27a57513ca8cf3f",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles LiThink-System Sommer/Winter-Leistung übertragen",
        "topic": "carport/ctrl/limit/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 830,
        "y": 4360,
        "wires": []
    },
    {
        "id": "269ccd8c1ebe99c2",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "170 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "170W",
        "payloadType": "str",
        "x": 500,
        "y": 4500,
        "wires": [
            [
                "b27a57513ca8cf3f"
            ]
        ]
    },
    {
        "id": "b7ea0ba78336a452",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "50 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "50W",
        "payloadType": "str",
        "x": 490,
        "y": 4340,
        "wires": [
            [
                "b27a57513ca8cf3f"
            ]
        ]
    },
    {
        "id": "b22ea339e60849e6",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "LiThink Hoymiles HM300 (Sommer/Winter-Leistung) Konstanteinspeisung",
        "info": "",
        "x": 760,
        "y": 4300,
        "wires": []
    },
    {
        "id": "86086e91ce76ee5d",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "100 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "100W",
        "payloadType": "str",
        "x": 500,
        "y": 4420,
        "wires": [
            [
                "b27a57513ca8cf3f"
            ]
        ]
    },
    {
        "id": "334a8cf1ee9e8906",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Wenn Hausverbrauch >1900 Watt gehts weiter",
        "property": "hausverbrauch_gesamt",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gt",
                "v": "1900",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 700,
        "y": 3460,
        "wires": [
            []
        ]
    },
    {
        "id": "75ceced7434c2f33",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Hausverbrauch + Carport PV gesamt errechnen",
        "info": "",
        "x": 200,
        "y": 1180,
        "wires": []
    },
    {
        "id": "8eee0c7645b6c77a",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Wenn Hausverbrauch <1900 Watt gehts weiter",
        "property": "hausverbrauch_gesamt",
        "propertyType": "flow",
        "rules": [
            {
                "t": "lt",
                "v": "1900",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1258,
        "y": 1772,
        "wires": [
            [
                "83f23c1a791722e4"
            ]
        ]
    },
    {
        "id": "b9bd7756a3809c24",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Wenn Hausverbrauch <1900 Watt gehts weiter",
        "property": "hausverbrauch_gesamt",
        "propertyType": "flow",
        "rules": [
            {
                "t": "lt",
                "v": "1900",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1258,
        "y": 2232,
        "wires": [
            []
        ]
    },
    {
        "id": "fb42a0999f6e3808",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Wenn Hausverbrauch <1900 Watt gehts weiter",
        "property": "hausverbrauch_gesamt",
        "propertyType": "flow",
        "rules": [
            {
                "t": "lt",
                "v": "1900",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1238,
        "y": 2732,
        "wires": [
            [
                "64f14299551f46e2"
            ]
        ]
    },
    {
        "id": "18e9c5b2d1df01c6",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Wenn der Hausverbrauch Tagsüber 2900 Watt überschreitet Einspeisesteckdosen getaktet ausschalten",
        "info": "",
        "x": 830,
        "y": 3400,
        "wires": []
    },
    {
        "id": "d7a7bbb3bbc7647a",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose LiThink Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1180,
        "y": 3480,
        "wires": [
            []
        ]
    },
    {
        "id": "d7974a80e63df09a",
        "type": "delay",
        "z": "b5ffa57229ab8008",
        "name": "",
        "pauseType": "rate",
        "timeout": "10",
        "timeoutUnits": "minutes",
        "rate": "1",
        "nbRateUnits": "60",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": true,
        "allowrate": false,
        "outputs": 1,
        "x": 370,
        "y": 3520,
        "wires": [
            [
                "0e148db9b2c23e47"
            ]
        ]
    },
    {
        "id": "0e148db9b2c23e47",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Wenn Hausverbrauch >1900 Watt gehts weiter",
        "property": "hausverbrauch_gesamt",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gt",
                "v": "1900",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 700,
        "y": 3520,
        "wires": [
            []
        ]
    },
    {
        "id": "83aa99738d715ecd",
        "type": "delay",
        "z": "b5ffa57229ab8008",
        "name": "",
        "pauseType": "rate",
        "timeout": "10",
        "timeoutUnits": "minutes",
        "rate": "1",
        "nbRateUnits": "120",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": true,
        "allowrate": false,
        "outputs": 1,
        "x": 370,
        "y": 3580,
        "wires": [
            [
                "ae1d0bf2d1f9bfa2"
            ]
        ]
    },
    {
        "id": "ae1d0bf2d1f9bfa2",
        "type": "switch",
        "z": "b5ffa57229ab8008",
        "name": "Wenn Hausverbrauch >1900 Watt gehts weiter",
        "property": "hausverbrauch_gesamt",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gt",
                "v": "1900",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 700,
        "y": 3580,
        "wires": [
            []
        ]
    },
    {
        "id": "3a6c90fca88450a0",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Redodo Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1180,
        "y": 3520,
        "wires": [
            []
        ]
    },
    {
        "id": "c8e797115baf3ede",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Wattcycle Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1180,
        "y": 3560,
        "wires": [
            []
        ]
    },
    {
        "id": "056ee3c1d191b445",
        "type": "tuya-smart-device-generic",
        "z": "b5ffa57229ab8008",
        "name": "LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "x": 1760,
        "y": 3520,
        "wires": [
            []
        ]
    },
    {
        "id": "83f23c1a791722e4",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 13",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1518,
        "y": 1672,
        "wires": []
    },
    {
        "id": "090d4bd14a5cbe31",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 14",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1018,
        "y": 1712,
        "wires": []
    },
    {
        "id": "205365e9522e15e9",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 16",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 998,
        "y": 2672,
        "wires": []
    },
    {
        "id": "64f14299551f46e2",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 17",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1438,
        "y": 2652,
        "wires": []
    },
    {
        "id": "517bc4c33790327c",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Hausverbrauch = Hausverbrauch + Carport",
        "rules": [
            {
                "t": "set",
                "p": "hausverbrauch",
                "pt": "msg",
                "to": "hausverbrauch",
                "tot": "flow"
            },
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload + hausverbrauch",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 210,
        "y": 1220,
        "wires": [
            [
                "e1ec5ec9b590b51a"
            ]
        ]
    },
    {
        "id": "e1ec5ec9b590b51a",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "In Flow \"hausverbrauch_gesamt\" setzen",
        "rules": [
            {
                "t": "set",
                "p": "hausverbrauch_gesamt",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 200,
        "y": 1260,
        "wires": [
            [
                "4a910da8b45d5c95",
                "334a8cf1ee9e8906",
                "d7974a80e63df09a",
                "83aa99738d715ecd"
            ]
        ]
    },
    {
        "id": "4a910da8b45d5c95",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 5",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 180,
        "y": 1300,
        "wires": []
    },
    {
        "id": "59d435131998eaf1",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Wattcycle EIN/AUSSCHALTEN",
        "topic": "inverter/ctrl/power/0",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 560,
        "y": 4080,
        "wires": []
    },
    {
        "id": "a0ee15f7986f8b9b",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "75 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "75W",
        "payloadType": "str",
        "x": 490,
        "y": 4380,
        "wires": [
            [
                "b27a57513ca8cf3f"
            ]
        ]
    },
    {
        "id": "a6421405bbb9f8d9",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "130 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "130W",
        "payloadType": "str",
        "x": 500,
        "y": 4460,
        "wires": [
            [
                "b27a57513ca8cf3f"
            ]
        ]
    },
    {
        "id": "cd149ba8246b3776",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "on",
        "payloadType": "str",
        "x": 490,
        "y": 4660,
        "wires": [
            [
                "be0a727f0660229f",
                "c76e21465911306b",
                "e1405ebf8958b04e",
                "15cf6c5397662d50"
            ]
        ]
    },
    {
        "id": "e9f1274b3e3b428d",
        "type": "inject",
        "z": "b5ffa57229ab8008",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "off",
        "payloadType": "str",
        "x": 490,
        "y": 4700,
        "wires": [
            [
                "be0a727f0660229f",
                "c76e21465911306b",
                "e1405ebf8958b04e",
                "15cf6c5397662d50"
            ]
        ]
    },
    {
        "id": "be0a727f0660229f",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 7",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 820,
        "y": 4680,
        "wires": []
    },
    {
        "id": "fdace0d0f2d27953",
        "type": "suncron",
        "z": "b5ffa57229ab8008",
        "name": "Alle Shelly_Einspeisedosen nach Nacht/Tag (ON/OFF)",
        "lat": "54.323334",
        "lon": "10.139444",
        "replay": false,
        "ejectScheduleOnUpdate": false,
        "sunrisePayload": "off",
        "sunrisePayloadType": "str",
        "sunriseTopic": "Sonnenaufgang",
        "sunriseOffsetType": "1",
        "sunriseOffsetHours": "2",
        "sunriseOffsetMinutes": "0",
        "sunriseOffset": "7200",
        "sunriseEndPayload": "",
        "sunriseEndPayloadType": "str",
        "sunriseEndTopic": "",
        "sunriseEndOffsetType": 1,
        "sunriseEndOffsetHours": 0,
        "sunriseEndOffsetMinutes": 0,
        "sunriseEndOffset": 0,
        "goldenHourEndPayload": "",
        "goldenHourEndPayloadType": "str",
        "goldenHourEndTopic": "",
        "goldenHourEndOffsetType": 1,
        "goldenHourEndOffsetHours": 0,
        "goldenHourEndOffsetMinutes": 0,
        "goldenHourEndOffset": 0,
        "solarNoonPayload": "",
        "solarNoonPayloadType": "str",
        "solarNoonTopic": "",
        "solarNoonOffsetType": 1,
        "solarNoonOffsetHours": 0,
        "solarNoonOffsetMinutes": 0,
        "solarNoonOffset": 0,
        "goldenHourPayload": "",
        "goldenHourPayloadType": "str",
        "goldenHourTopic": "",
        "goldenHourOffsetType": 1,
        "goldenHourOffsetHours": 0,
        "goldenHourOffsetMinutes": 0,
        "goldenHourOffset": 0,
        "sunsetStartPayload": "",
        "sunsetStartPayloadType": "str",
        "sunsetStartTopic": "",
        "sunsetStartOffsetType": 1,
        "sunsetStartOffsetHours": 0,
        "sunsetStartOffsetMinutes": 0,
        "sunsetStartOffset": 0,
        "sunsetPayload": "on",
        "sunsetPayloadType": "str",
        "sunsetTopic": "Sonnenuntergang",
        "sunsetOffsetType": "-1",
        "sunsetOffsetHours": "0",
        "sunsetOffsetMinutes": "20",
        "sunsetOffset": "1200",
        "duskPayload": "",
        "duskPayloadType": "str",
        "duskTopic": "",
        "duskOffsetType": 1,
        "duskOffsetHours": 0,
        "duskOffsetMinutes": 0,
        "duskOffset": 0,
        "nauticalDuskPayload": "",
        "nauticalDuskPayloadType": "str",
        "nauticalDuskTopic": "",
        "nauticalDuskOffsetType": 1,
        "nauticalDuskOffsetHours": 0,
        "nauticalDuskOffsetMinutes": 0,
        "nauticalDuskOffset": 0,
        "nightPayload": "",
        "nightPayloadType": "str",
        "nightTopic": "",
        "nightOffsetType": 1,
        "nightOffsetHours": 0,
        "nightOffsetMinutes": 0,
        "nightOffset": 0,
        "nadirPayload": "",
        "nadirPayloadType": "str",
        "nadirTopic": "",
        "nadirOffsetType": 1,
        "nadirOffsetHours": 0,
        "nadirOffsetMinutes": 0,
        "nadirOffset": 0,
        "nightEndPayload": "",
        "nightEndPayloadType": "str",
        "nightEndTopic": "",
        "nightEndOffsetType": 1,
        "nightEndOffsetHours": 0,
        "nightEndOffsetMinutes": 0,
        "nightEndOffset": 0,
        "nauticalDawnPayload": "",
        "nauticalDawnPayloadType": "str",
        "nauticalDawnTopic": "",
        "nauticalDawnOffsetType": 1,
        "nauticalDawnOffsetHours": 0,
        "nauticalDawnOffsetMinutes": 0,
        "nauticalDawnOffset": 0,
        "dawnPayload": "",
        "dawnPayloadType": "str",
        "dawnTopic": "",
        "dawnOffsetType": 1,
        "dawnOffsetHours": 0,
        "dawnOffsetMinutes": 0,
        "dawnOffset": 0,
        "x": 340,
        "y": 4760,
        "wires": [
            [
                "4dbac1f7ccbb6445",
                "c76e21465911306b",
                "e1405ebf8958b04e",
                "15cf6c5397662d50",
                "2beb8934b24c6bf1",
                "5d3aee25e05b9507",
                "cd6a4a9c1e9c5d7e"
            ]
        ],
        "inputLabels": [
            "keine"
        ]
    },
    {
        "id": "4dbac1f7ccbb6445",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 10",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 400,
        "y": 4800,
        "wires": []
    },
    {
        "id": "c76e21465911306b",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Shelly Wattcycle Einspeisen",
        "topic": "Shelly_Wattcycle_Einspeisen/command/switch:0",
        "qos": "1",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 920,
        "y": 4800,
        "wires": []
    },
    {
        "id": "bdcdf59396195cad",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Alle 3 Shellys zum Sonnenuntergang ON und Sonnenaufgang OFF inkl. Offsets",
        "info": "",
        "x": 600,
        "y": 4580,
        "wires": []
    },
    {
        "id": "e1405ebf8958b04e",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Shelly LiThink Einseisen",
        "topic": "Shelly_LiThink_Einspeisen/command/switch:0",
        "qos": "1",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 910,
        "y": 4860,
        "wires": []
    },
    {
        "id": "15cf6c5397662d50",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Shelly Redodo Einseisen",
        "topic": "Shelly_Redodo_Einspeisen/command/switch:0",
        "qos": "1",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 910,
        "y": 4740,
        "wires": []
    },
    {
        "id": "3c8d8a9573795e7f",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 11",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1300,
        "y": 680,
        "wires": []
    },
    {
        "id": "af9ace127a78087b",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles LiThink Leistung übertragen",
        "topic": "carport/ctrl/limit/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 190,
        "y": 1080,
        "wires": []
    },
    {
        "id": "9e9948f5e49ffc4d",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles LiThink Leistung übertragen",
        "topic": "carport/ctrl/limit/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 170,
        "y": 780,
        "wires": []
    },
    {
        "id": "b906a9d5da5e33c5",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "7.) String an Hoymiles LiThink (+2 Watt) übertragen",
        "topic": "carport/ctrl/limit/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1650,
        "y": 660,
        "wires": []
    },
    {
        "id": "9ec612d3dc52f9d9",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "5.) String an Hoymiles LiThink (<4 Watt) übertragen",
        "topic": "carport/ctrl/limit/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1600,
        "y": 1440,
        "wires": []
    },
    {
        "id": "2bc4a9c3ec4b8146",
        "type": "suncron",
        "z": "b5ffa57229ab8008",
        "name": "Alle Shelly_Einspeisedosen nach Nacht/Tag (OFF) +5 Min.",
        "lat": "54.323334",
        "lon": "10.139444",
        "replay": false,
        "ejectScheduleOnUpdate": false,
        "sunrisePayload": "off",
        "sunrisePayloadType": "str",
        "sunriseTopic": "Sonnenaufgang",
        "sunriseOffsetType": "1",
        "sunriseOffsetHours": "2",
        "sunriseOffsetMinutes": "5",
        "sunriseOffset": "7500",
        "sunriseEndPayload": "",
        "sunriseEndPayloadType": "str",
        "sunriseEndTopic": "",
        "sunriseEndOffsetType": 1,
        "sunriseEndOffsetHours": 0,
        "sunriseEndOffsetMinutes": 0,
        "sunriseEndOffset": 0,
        "goldenHourEndPayload": "",
        "goldenHourEndPayloadType": "str",
        "goldenHourEndTopic": "",
        "goldenHourEndOffsetType": 1,
        "goldenHourEndOffsetHours": 0,
        "goldenHourEndOffsetMinutes": 0,
        "goldenHourEndOffset": 0,
        "solarNoonPayload": "",
        "solarNoonPayloadType": "str",
        "solarNoonTopic": "",
        "solarNoonOffsetType": 1,
        "solarNoonOffsetHours": 0,
        "solarNoonOffsetMinutes": 0,
        "solarNoonOffset": 0,
        "goldenHourPayload": "",
        "goldenHourPayloadType": "str",
        "goldenHourTopic": "",
        "goldenHourOffsetType": 1,
        "goldenHourOffsetHours": 0,
        "goldenHourOffsetMinutes": 0,
        "goldenHourOffset": 0,
        "sunsetStartPayload": "",
        "sunsetStartPayloadType": "str",
        "sunsetStartTopic": "",
        "sunsetStartOffsetType": 1,
        "sunsetStartOffsetHours": 0,
        "sunsetStartOffsetMinutes": 0,
        "sunsetStartOffset": 0,
        "sunsetPayload": "",
        "sunsetPayloadType": "str",
        "sunsetTopic": "Sonnenuntergang",
        "sunsetOffsetType": "-1",
        "sunsetOffsetHours": "0",
        "sunsetOffsetMinutes": "0",
        "sunsetOffset": "0",
        "duskPayload": "",
        "duskPayloadType": "str",
        "duskTopic": "",
        "duskOffsetType": 1,
        "duskOffsetHours": 0,
        "duskOffsetMinutes": 0,
        "duskOffset": 0,
        "nauticalDuskPayload": "",
        "nauticalDuskPayloadType": "str",
        "nauticalDuskTopic": "",
        "nauticalDuskOffsetType": 1,
        "nauticalDuskOffsetHours": 0,
        "nauticalDuskOffsetMinutes": 0,
        "nauticalDuskOffset": 0,
        "nightPayload": "",
        "nightPayloadType": "str",
        "nightTopic": "",
        "nightOffsetType": 1,
        "nightOffsetHours": 0,
        "nightOffsetMinutes": 0,
        "nightOffset": 0,
        "nadirPayload": "",
        "nadirPayloadType": "str",
        "nadirTopic": "",
        "nadirOffsetType": 1,
        "nadirOffsetHours": 0,
        "nadirOffsetMinutes": 0,
        "nadirOffset": 0,
        "nightEndPayload": "",
        "nightEndPayloadType": "str",
        "nightEndTopic": "",
        "nightEndOffsetType": 1,
        "nightEndOffsetHours": 0,
        "nightEndOffsetMinutes": 0,
        "nightEndOffset": 0,
        "nauticalDawnPayload": "",
        "nauticalDawnPayloadType": "str",
        "nauticalDawnTopic": "",
        "nauticalDawnOffsetType": 1,
        "nauticalDawnOffsetHours": 0,
        "nauticalDawnOffsetMinutes": 0,
        "nauticalDawnOffset": 0,
        "dawnPayload": "",
        "dawnPayloadType": "str",
        "dawnTopic": "",
        "dawnOffsetType": 1,
        "dawnOffsetHours": 0,
        "dawnOffsetMinutes": 0,
        "dawnOffset": 0,
        "x": 360,
        "y": 4920,
        "wires": [
            [
                "15cf6c5397662d50",
                "c76e21465911306b",
                "e1405ebf8958b04e"
            ]
        ],
        "inputLabels": [
            "keine"
        ]
    },
    {
        "id": "42d84be3ae3d3411",
        "type": "suncron",
        "z": "b5ffa57229ab8008",
        "name": "Alle Shelly_Einspeisedosen nach Nacht/Tag (OFF) +10 Min.",
        "lat": "54.323334",
        "lon": "10.139444",
        "replay": false,
        "ejectScheduleOnUpdate": false,
        "sunrisePayload": "off",
        "sunrisePayloadType": "str",
        "sunriseTopic": "Sonnenaufgang",
        "sunriseOffsetType": "1",
        "sunriseOffsetHours": "2",
        "sunriseOffsetMinutes": "10",
        "sunriseOffset": "7800",
        "sunriseEndPayload": "",
        "sunriseEndPayloadType": "str",
        "sunriseEndTopic": "",
        "sunriseEndOffsetType": 1,
        "sunriseEndOffsetHours": 0,
        "sunriseEndOffsetMinutes": 0,
        "sunriseEndOffset": 0,
        "goldenHourEndPayload": "",
        "goldenHourEndPayloadType": "str",
        "goldenHourEndTopic": "",
        "goldenHourEndOffsetType": 1,
        "goldenHourEndOffsetHours": 0,
        "goldenHourEndOffsetMinutes": 0,
        "goldenHourEndOffset": 0,
        "solarNoonPayload": "",
        "solarNoonPayloadType": "str",
        "solarNoonTopic": "",
        "solarNoonOffsetType": 1,
        "solarNoonOffsetHours": 0,
        "solarNoonOffsetMinutes": 0,
        "solarNoonOffset": 0,
        "goldenHourPayload": "",
        "goldenHourPayloadType": "str",
        "goldenHourTopic": "",
        "goldenHourOffsetType": 1,
        "goldenHourOffsetHours": 0,
        "goldenHourOffsetMinutes": 0,
        "goldenHourOffset": 0,
        "sunsetStartPayload": "",
        "sunsetStartPayloadType": "str",
        "sunsetStartTopic": "",
        "sunsetStartOffsetType": 1,
        "sunsetStartOffsetHours": 0,
        "sunsetStartOffsetMinutes": 0,
        "sunsetStartOffset": 0,
        "sunsetPayload": "",
        "sunsetPayloadType": "str",
        "sunsetTopic": "Sonnenuntergang",
        "sunsetOffsetType": "-1",
        "sunsetOffsetHours": "0",
        "sunsetOffsetMinutes": "0",
        "sunsetOffset": "0",
        "duskPayload": "",
        "duskPayloadType": "str",
        "duskTopic": "",
        "duskOffsetType": 1,
        "duskOffsetHours": 0,
        "duskOffsetMinutes": 0,
        "duskOffset": 0,
        "nauticalDuskPayload": "",
        "nauticalDuskPayloadType": "str",
        "nauticalDuskTopic": "",
        "nauticalDuskOffsetType": 1,
        "nauticalDuskOffsetHours": 0,
        "nauticalDuskOffsetMinutes": 0,
        "nauticalDuskOffset": 0,
        "nightPayload": "",
        "nightPayloadType": "str",
        "nightTopic": "",
        "nightOffsetType": 1,
        "nightOffsetHours": 0,
        "nightOffsetMinutes": 0,
        "nightOffset": 0,
        "nadirPayload": "",
        "nadirPayloadType": "str",
        "nadirTopic": "",
        "nadirOffsetType": 1,
        "nadirOffsetHours": 0,
        "nadirOffsetMinutes": 0,
        "nadirOffset": 0,
        "nightEndPayload": "",
        "nightEndPayloadType": "str",
        "nightEndTopic": "",
        "nightEndOffsetType": 1,
        "nightEndOffsetHours": 0,
        "nightEndOffsetMinutes": 0,
        "nightEndOffset": 0,
        "nauticalDawnPayload": "",
        "nauticalDawnPayloadType": "str",
        "nauticalDawnTopic": "",
        "nauticalDawnOffsetType": 1,
        "nauticalDawnOffsetHours": 0,
        "nauticalDawnOffsetMinutes": 0,
        "nauticalDawnOffset": 0,
        "dawnPayload": "",
        "dawnPayloadType": "str",
        "dawnTopic": "",
        "dawnOffsetType": 1,
        "dawnOffsetHours": 0,
        "dawnOffsetMinutes": 0,
        "dawnOffset": 0,
        "x": 360,
        "y": 4960,
        "wires": [
            [
                "15cf6c5397662d50",
                "c76e21465911306b",
                "e1405ebf8958b04e"
            ]
        ],
        "inputLabels": [
            "keine"
        ]
    },
    {
        "id": "01072696e94502d5",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Alle 3 Shellys nach Sonnenaufgang +1 Stunde OFF mit 5 und 10 Min. Offset (Zuästzliche Abschaltsicherheit)",
        "info": "",
        "x": 430,
        "y": 4880,
        "wires": []
    },
    {
        "id": "b14d1c2034e5cd72",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 18",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 878,
        "y": 2372,
        "wires": []
    },
    {
        "id": "dfcc0c9620343dea",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 19",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 878,
        "y": 1912,
        "wires": []
    },
    {
        "id": "b62ac31e7ba4ef90",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 22",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1598,
        "y": 1952,
        "wires": []
    },
    {
        "id": "2beb8934b24c6bf1",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1390,
        "y": 4780,
        "wires": [
            [
                "4706ef648f16dbc5"
            ]
        ]
    },
    {
        "id": "4706ef648f16dbc5",
        "type": "tuya-smart-device-generic",
        "z": "b5ffa57229ab8008",
        "name": "Wattcycle LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "logLevel": "log-level-debug",
        "x": 1408,
        "y": 4732,
        "wires": [
            [
                "2e8fa00af31cec6d"
            ]
        ]
    },
    {
        "id": "0e0781b3ae0136c0",
        "type": "tuya-smart-device-generic",
        "z": "b5ffa57229ab8008",
        "name": "Redodo LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "logLevel": "log-level-debug",
        "x": 1400,
        "y": 4820,
        "wires": [
            [
                "e4cdbb95c92e104f"
            ]
        ]
    },
    {
        "id": "5d3aee25e05b9507",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"`Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1390,
        "y": 4860,
        "wires": [
            [
                "0e0781b3ae0136c0"
            ]
        ]
    },
    {
        "id": "46278ccca5f1a993",
        "type": "tuya-smart-device-generic",
        "z": "b5ffa57229ab8008",
        "name": "LiThink LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "logLevel": "log-level-debug",
        "x": 1402,
        "y": 4908,
        "wires": [
            [
                "f12a7b374c55e3b0"
            ]
        ]
    },
    {
        "id": "cd6a4a9c1e9c5d7e",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "4 Euro Tuya Steckdose Daten für Payload \"OFF\" <0 Watt",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "{\"deviceVirtualId\":\"Dummy\",\"deviceKey\":\"Dummy\",\"operation\":\"SET\",\"payload\":{\"dps\":1,\"set\":false}}",
                "tot": "json"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1390,
        "y": 4960,
        "wires": [
            [
                "46278ccca5f1a993"
            ]
        ]
    },
    {
        "id": "e8b485504ad3f925",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "Alle 3 Tuya Steckdosen zum Sonnenuntergang & Aufgang ausschalten",
        "info": "",
        "x": 1430,
        "y": 4680,
        "wires": []
    },
    {
        "id": "312ab395a74414e3",
        "type": "change",
        "z": "b5ffa57229ab8008",
        "name": "Bedarf <67 Watt (x3)= Hoymiles LiThink ausschalten",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1100,
        "y": 1460,
        "wires": [
            [
                "bcb5af6069882617"
            ]
        ]
    },
    {
        "id": "bcb5af6069882617",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles LiThink AUSSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1100,
        "y": 1500,
        "wires": []
    },
    {
        "id": "9b9568ce259d7ce2",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "LiThink bei <67 Watt in Standby schalten",
        "info": "",
        "x": 1080,
        "y": 1420,
        "wires": []
    },
    {
        "id": "d1cf86c1c3f633ed",
        "type": "comment",
        "z": "b5ffa57229ab8008",
        "name": "LiThink bei >100 Watt nur einmal (gespeichert) Einschalten und bei <67 Watt Speicher löschen (Reset)",
        "info": "",
        "x": 1090,
        "y": 820,
        "wires": []
    },
    {
        "id": "8e161e3d704e1ec3",
        "type": "ui_text",
        "z": "b5ffa57229ab8008",
        "group": "c67890a8ed2b148f",
        "width": "",
        "height": "",
        "name": "",
        "label": "LiThink (Ab)Schalt-Status",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 1850,
        "y": 880,
        "wires": []
    },
    {
        "id": "91c993dc728e1fbc",
        "type": "ui_template",
        "z": "b5ffa57229ab8008",
        "group": "c67890a8ed2b148f",
        "name": "Status Farbe + Kombi",
        "width": "",
        "height": "",
        "format": "<div style=\"font-size:26px;text-align:center;\">\n<span ng-style=\"{color: msg.payload=='AN'?'lime':msg.payload=='WAIT'?'orange':msg.payload=='RESET'?'red':'gray'}\">\n{{msg.payload}} ({{msg.power}} W)\n</span>\n</div>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": false,
        "templateScope": "local",
        "className": "",
        "x": 1840,
        "y": 920,
        "wires": [
            []
        ]
    },
    {
        "id": "17a20b369ff8ea2b",
        "type": "function",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles Schalt-Hysterese (>100 Watt ein & speichern; <67 Watt Reset) + Dashboard Logik + Status + Watt",
        "func": "let power = flow.get(\"hoymiles\");\nlet start = flow.get(\"hoymiles_start\") || 100;\nlet reset = flow.get(\"hoymiles_reset\") || 67;\nlet state = flow.get(\"hoymiles_on\") || false;\n\nif (power === undefined || power === null) return null;\n\nlet status = \"HYSTERESE\";\n\n// EIN\nif (power > start && !state) {\n    flow.set(\"hoymiles_on\", true);\n    return [{payload:1},{payload:\"AN\", power:power}];\n}\n\n// WAIT\nif (power > start && state) status = \"WAIT\";\n\n// RESET\nif (power < reset && state) {\n    flow.set(\"hoymiles_on\", false);\n    status = \"RESET\";\n}\n\n// AUS\nif (power <= start && !state) status = \"AUS\";\n\nreturn [null,{payload:status, power:power}];",
        "outputs": 2,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1090,
        "y": 880,
        "wires": [
            [
                "faa980c9b02c8ded",
                "ce3d2f94775805f4"
            ],
            [
                "e681bbb16f1c7c21",
                "8e161e3d704e1ec3",
                "91c993dc728e1fbc"
            ]
        ]
    },
    {
        "id": "e681bbb16f1c7c21",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 32",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1620,
        "y": 940,
        "wires": []
    },
    {
        "id": "faa980c9b02c8ded",
        "type": "mqtt out",
        "z": "b5ffa57229ab8008",
        "name": "Hoymiles LiThink EINSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1700,
        "y": 800,
        "wires": []
    },
    {
        "id": "ce3d2f94775805f4",
        "type": "debug",
        "z": "b5ffa57229ab8008",
        "name": "debug 34",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1640,
        "y": 860,
        "wires": []
    },
    {
        "id": "c67890a8ed2b148f",
        "type": "ui_group",
        "name": "SunnyBoy 4.0 & Status \"LiThink\"",
        "tab": "73db6979f92a2e26",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "61de5090.0f5d9",
        "type": "mqtt-broker",
        "name": "",
        "broker": "192.168.1.100",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "3",
        "keepalive": "60",
        "cleansession": true,
        "autoUnsubscribe": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    },
    {
        "id": "39fc06e30796303d",
        "type": "ui_group",
        "name": "Hoymiles Wechselrichter",
        "tab": "73db6979f92a2e26",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "73db6979f92a2e26",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]