[
    {
        "id": "a1d2721e72370118",
        "type": "sma-webconnect",
        "z": "814a8335a673ad36",
        "ip_address": "192.168.1.12",
        "right": "usr",
        "use_tls": false,
        "device_selection": "sb_tripower",
        "x": 270,
        "y": 120,
        "wires": [
            [
                "5dc605cf14477883",
                "988ceee813a2ca45",
                "b10483153f84e28b",
                "2ab92ba7d5e3d4d5",
                "5972524184df5cc8"
            ]
        ]
    },
    {
        "id": "8e7643b8851fe9d0",
        "type": "inject",
        "z": "814a8335a673ad36",
        "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": 230,
        "y": 60,
        "wires": [
            [
                "a1d2721e72370118"
            ]
        ]
    },
    {
        "id": "5dc605cf14477883",
        "type": "function",
        "z": "814a8335a673ad36",
        "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": 500,
        "y": 100,
        "wires": [
            [
                "7ab7178fd936ee73",
                "fb41cadcfa02584f",
                "36a4394766c20195",
                "bf4f5df02c7d1028"
            ]
        ]
    },
    {
        "id": "5972524184df5cc8",
        "type": "function",
        "z": "814a8335a673ad36",
        "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": 520,
        "y": 140,
        "wires": [
            [
                "057ce88fb1506754",
                "d454186efe3d6bf0",
                "77cea10dea9b8c71",
                "1f18377c192401b3"
            ]
        ]
    },
    {
        "id": "988ceee813a2ca45",
        "type": "function",
        "z": "814a8335a673ad36",
        "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": 510,
        "y": 180,
        "wires": [
            [
                "ecc53e7e74ffede5",
                "f128dc62e7dcb3dd",
                "dac76b2d5c906974",
                "0f76d29ed652cf77",
                "5a4aa7990ad5e891",
                "49cd3902b9c783da",
                "46e55e9a510d656a"
            ]
        ]
    },
    {
        "id": "d454186efe3d6bf0",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "Stromzukauf / Bezug",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1400,
        "y": 100,
        "wires": []
    },
    {
        "id": "b10483153f84e28b",
        "type": "function",
        "z": "814a8335a673ad36",
        "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": 530,
        "y": 220,
        "wires": [
            [
                "ac1856ff1fe76379",
                "44b59b74beed40b9",
                "61c93d72746f0fc8",
                "539690a0f044c6da",
                "69272f7bf9bb81fc",
                "b9953c9f342a7c71"
            ]
        ]
    },
    {
        "id": "2ab92ba7d5e3d4d5",
        "type": "function",
        "z": "814a8335a673ad36",
        "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": 490,
        "y": 260,
        "wires": [
            [
                "e26f58616edd4605"
            ]
        ]
    },
    {
        "id": "e26f58616edd4605",
        "type": "ui_text",
        "z": "814a8335a673ad36",
        "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": 770,
        "y": 260,
        "wires": []
    },
    {
        "id": "7ab7178fd936ee73",
        "type": "ui_text",
        "z": "814a8335a673ad36",
        "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": 780,
        "y": 100,
        "wires": []
    },
    {
        "id": "057ce88fb1506754",
        "type": "ui_text",
        "z": "814a8335a673ad36",
        "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": 800,
        "y": 140,
        "wires": []
    },
    {
        "id": "ecc53e7e74ffede5",
        "type": "ui_text",
        "z": "814a8335a673ad36",
        "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": 790,
        "y": 180,
        "wires": []
    },
    {
        "id": "ac1856ff1fe76379",
        "type": "ui_text",
        "z": "814a8335a673ad36",
        "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": 810,
        "y": 220,
        "wires": []
    },
    {
        "id": "fb41cadcfa02584f",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "PV-Erzeugung",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1340,
        "y": 60,
        "wires": []
    },
    {
        "id": "f128dc62e7dcb3dd",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "Netzeinspeisung",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1370,
        "y": 160,
        "wires": []
    },
    {
        "id": "44b59b74beed40b9",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "Summe Hausverbrauch",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1370,
        "y": 220,
        "wires": []
    },
    {
        "id": "f8edaf9e52ebdf98",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "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": 1540,
        "y": 540,
        "wires": []
    },
    {
        "id": "1895ecba0310e004",
        "type": "mqtt in",
        "z": "814a8335a673ad36",
        "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": 190,
        "y": 380,
        "wires": [
            [
                "d003a1d772457d52",
                "9bd9d3844325b2e8",
                "c16e1a508abc890c",
                "31338b5ee2b66656"
            ]
        ]
    },
    {
        "id": "31338b5ee2b66656",
        "type": "change",
        "z": "814a8335a673ad36",
        "name": "Hoymiles-Power als Flow deklarieren",
        "rules": [
            {
                "t": "set",
                "p": "hoymiles",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 230,
        "y": 440,
        "wires": [
            [
                "4ad1350bfb4e1d5c"
            ]
        ]
    },
    {
        "id": "7aae91522f89a2c7",
        "type": "function",
        "z": "814a8335a673ad36",
        "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": 680,
        "y": 560,
        "wires": [
            [
                "1f18377c192401b3",
                "51fa0e121fc4b828",
                "f8edaf9e52ebdf98",
                "0577915f39f09d59",
                "cb382cc2dd97039a",
                "bda253d65d5ba4fb"
            ]
        ]
    },
    {
        "id": "51d5489e22c55090",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 650,
        "y": 440,
        "wires": [
            [
                "1f18377c192401b3",
                "9fb05b73eea4ba50"
            ]
        ]
    },
    {
        "id": "77cea10dea9b8c71",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 640,
        "y": 380,
        "wires": [
            [
                "12c8b3ee17ba5892",
                "8217a63607338f48",
                "950ea6f2669b50e2",
                "eadb53c21a0d8a5d"
            ]
        ]
    },
    {
        "id": "12c8b3ee17ba5892",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 1200,
        "y": 380,
        "wires": [
            [
                "51d5489e22c55090",
                "1df98e19db1c7dcf"
            ]
        ]
    },
    {
        "id": "1f18377c192401b3",
        "type": "debug",
        "z": "814a8335a673ad36",
        "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": 1430,
        "y": 280,
        "wires": []
    },
    {
        "id": "662b8d2edf767d9b",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Hoymiles Leistung in Flow \"hoymiles\" auslesen & speichern",
        "info": "",
        "x": 250,
        "y": 320,
        "wires": []
    },
    {
        "id": "66be1e6a46f17176",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Live Daten des SMA Wechselrichter Sunnyboy 4.0 auslesen",
        "info": "",
        "x": 700,
        "y": 40,
        "wires": []
    },
    {
        "id": "7f0483631b933e99",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Logik: Sollte der Hausverbrauch >0 Watt betragen die Leistung des Hoymiles um 2 Watt erhöhen",
        "info": "",
        "x": 890,
        "y": 320,
        "wires": []
    },
    {
        "id": "c7858db27e5ec4e4",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "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": 1470,
        "y": 980,
        "wires": []
    },
    {
        "id": "d27862cb170360a4",
        "type": "function",
        "z": "814a8335a673ad36",
        "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": 1340,
        "y": 900,
        "wires": [
            [
                "5a243a91f6225378"
            ]
        ]
    },
    {
        "id": "08c204eac9c2d8e7",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 560,
        "y": 900,
        "wires": [
            [
                "6dc00a05d9b7a9d6"
            ]
        ]
    },
    {
        "id": "61c93d72746f0fc8",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 700,
        "y": 780,
        "wires": [
            [
                "9c1e181526c0261d",
                "03f970532704633a"
            ]
        ]
    },
    {
        "id": "9c1e181526c0261d",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 710,
        "y": 840,
        "wires": [
            [
                "8ace73070c5b845a",
                "9feb37a39166f5db"
            ]
        ]
    },
    {
        "id": "9b0855fe278eef46",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Logik: Sollte der Hausverbrauch <0 Watt betragen die Leistung des Hoymiles um 4 Watt absenken",
        "info": "",
        "x": 910,
        "y": 740,
        "wires": []
    },
    {
        "id": "dac76b2d5c906974",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 792,
        "y": 1348,
        "wires": [
            [
                "df81b463ccd3429a"
            ],
            [
                "8217a63607338f48",
                "b6e467a38ab566e9"
            ]
        ]
    },
    {
        "id": "9fc3b251bf494750",
        "type": "tuya-smart-device-generic",
        "z": "814a8335a673ad36",
        "name": "LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "x": 1380,
        "y": 1380,
        "wires": [
            []
        ]
    },
    {
        "id": "b505a033db7933b9",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "LiFePo4 LiThink (25,6V 100Ah System) Ladung ab 530 Watt PV-Netzeinspeisung starten und >230 Watt Netzbezug stoppen",
        "info": "",
        "x": 980,
        "y": 1220,
        "wires": []
    },
    {
        "id": "9fb05b73eea4ba50",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 1180,
        "y": 440,
        "wires": [
            [
                "f062c62f124bdc90",
                "94bdcb40c3b468ea"
            ]
        ]
    },
    {
        "id": "a64fc137ed713dc9",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1312,
        "y": 1488,
        "wires": [
            [
                "9fc3b251bf494750",
                "dad63d13d9261ebf",
                "db634a922911b721"
            ]
        ]
    },
    {
        "id": "df81b463ccd3429a",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 812,
        "y": 1288,
        "wires": [
            [
                "31a9093d9b9ac611",
                "9fc3b251bf494750",
                "4bae158f98119738"
            ]
        ]
    },
    {
        "id": "4ad1350bfb4e1d5c",
        "type": "ui_gauge",
        "z": "814a8335a673ad36",
        "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": 270,
        "y": 500,
        "wires": []
    },
    {
        "id": "f062c62f124bdc90",
        "type": "switch",
        "z": "814a8335a673ad36",
        "name": "5.) Flow \"hoymiles\" abfragen ob <224 Watt",
        "property": "hoymiles",
        "propertyType": "flow",
        "rules": [
            {
                "t": "lte",
                "v": "224",
                "vt": "str"
            },
            {
                "t": "gt",
                "v": "100",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 870,
        "y": 500,
        "wires": [
            [
                "7aae91522f89a2c7",
                "46d59947b0fe2c45"
            ],
            [
                "687774003859e48e"
            ]
        ]
    },
    {
        "id": "0f76d29ed652cf77",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 24",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 610,
        "y": 1040,
        "wires": []
    },
    {
        "id": "a95db0e6b6fd7733",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Zusätzliche Sicherheits-Logik für Regulären-Betrieb",
        "info": "",
        "x": 230,
        "y": 600,
        "wires": []
    },
    {
        "id": "c16e1a508abc890c",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 230,
        "y": 640,
        "wires": [
            [
                "b4ab33f977be825f"
            ]
        ]
    },
    {
        "id": "b4ab33f977be825f",
        "type": "change",
        "z": "814a8335a673ad36",
        "name": "Auf 50% einstellen",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "50",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 210,
        "y": 680,
        "wires": [
            [
                "659546911275bb6b",
                "b47e8b3221d66d70",
                "1ac7b64dc92da301"
            ]
        ]
    },
    {
        "id": "659546911275bb6b",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles Wattcycle Leistung übertragen",
        "topic": "inverter/ctrl/limit/0",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 220,
        "y": 720,
        "wires": []
    },
    {
        "id": "65536e0ca0dfde4d",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Zusätzliche Sicherheits-Logik für Standby-Betrieb (alle 10Min. auf 50% setzen)",
        "info": "",
        "x": 310,
        "y": 860,
        "wires": []
    },
    {
        "id": "eab83a776318ccba",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 230,
        "y": 940,
        "wires": [
            [
                "b063b1e2ac792166"
            ]
        ]
    },
    {
        "id": "2a42f68ab8684792",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles Wattcycle Leistung übertragen",
        "topic": "inverter/ctrl/limit/0",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 240,
        "y": 1020,
        "wires": []
    },
    {
        "id": "d003a1d772457d52",
        "type": "delay",
        "z": "814a8335a673ad36",
        "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": 250,
        "y": 900,
        "wires": [
            [
                "eab83a776318ccba"
            ]
        ]
    },
    {
        "id": "dbe5f1c25df123d1",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 25",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 220,
        "y": 1160,
        "wires": []
    },
    {
        "id": "b063b1e2ac792166",
        "type": "change",
        "z": "814a8335a673ad36",
        "name": "Auf 150 Watt einstellen",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "150W",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 240,
        "y": 980,
        "wires": [
            [
                "dbe5f1c25df123d1",
                "2a42f68ab8684792",
                "6794e0bc03b0c681",
                "acc548096cabc7ae"
            ]
        ]
    },
    {
        "id": "aacc1831471fee91",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "Erster Wert >250 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1282,
        "y": 1568,
        "wires": []
    },
    {
        "id": "8217a63607338f48",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 782,
        "y": 1408,
        "wires": [
            [
                "aacc1831471fee91",
                "b999c6ae710a65a5"
            ]
        ]
    },
    {
        "id": "b6e467a38ab566e9",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 26",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 942,
        "y": 1608,
        "wires": []
    },
    {
        "id": "149a28d79209dc83",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 752,
        "y": 1548,
        "wires": [
            [
                "a64fc137ed713dc9",
                "1f143074b9c7174c"
            ]
        ]
    },
    {
        "id": "1f143074b9c7174c",
        "type": "debug",
        "z": "814a8335a673ad36",
        "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": 1312,
        "y": 1628,
        "wires": []
    },
    {
        "id": "9feb37a39166f5db",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 1340,
        "y": 840,
        "wires": [
            [
                "7d275890123afac4",
                "08c204eac9c2d8e7"
            ]
        ]
    },
    {
        "id": "03f970532704633a",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 27",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 970,
        "y": 780,
        "wires": []
    },
    {
        "id": "8865226148691feb",
        "type": "mqtt in",
        "z": "814a8335a673ad36",
        "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": 450,
        "y": 3240,
        "wires": [
            [
                "566f4c3ca0231bae",
                "468d35e7eedf8563",
                "a04fcff05b948c03",
                "3dbea1ce1b6c41e3"
            ]
        ]
    },
    {
        "id": "37560310dabb58dd",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Hoymiles HM300 (Nachteinspeisung) & HM1500 (Produktion)auslesen und im Dashboard anzeigen",
        "info": "",
        "x": 740,
        "y": 3200,
        "wires": []
    },
    {
        "id": "a04fcff05b948c03",
        "type": "ui_gauge",
        "z": "814a8335a673ad36",
        "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": 650,
        "y": 3340,
        "wires": []
    },
    {
        "id": "566f4c3ca0231bae",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 28",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 440,
        "y": 3420,
        "wires": []
    },
    {
        "id": "36a4394766c20195",
        "type": "ui_gauge",
        "z": "814a8335a673ad36",
        "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": 1020,
        "y": 60,
        "wires": []
    },
    {
        "id": "d9a98be62941e874",
        "type": "mqtt in",
        "z": "814a8335a673ad36",
        "name": "Hoymiles Tagesproduktion",
        "topic": "carport/total/YieldDay",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "61de5090.0f5d9",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 750,
        "y": 3240,
        "wires": [
            [
                "638a33339c962263"
            ]
        ]
    },
    {
        "id": "638a33339c962263",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 29",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 720,
        "y": 3420,
        "wires": []
    },
    {
        "id": "5a4aa7990ad5e891",
        "type": "ui_gauge",
        "z": "814a8335a673ad36",
        "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": 1040,
        "y": 180,
        "wires": []
    },
    {
        "id": "468d35e7eedf8563",
        "type": "ui_chart",
        "z": "814a8335a673ad36",
        "name": "",
        "group": "39fc06e30796303d",
        "order": 6,
        "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": 560,
        "y": 3380,
        "wires": [
            []
        ]
    },
    {
        "id": "539690a0f044c6da",
        "type": "ui_gauge",
        "z": "814a8335a673ad36",
        "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": 1100,
        "y": 140,
        "wires": []
    },
    {
        "id": "bf4f5df02c7d1028",
        "type": "ui_chart",
        "z": "814a8335a673ad36",
        "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": 1060,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "b999c6ae710a65a5",
        "type": "delay",
        "z": "814a8335a673ad36",
        "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": 692,
        "y": 1468,
        "wires": [
            [
                "149a28d79209dc83",
                "d2597a6a51084000"
            ]
        ]
    },
    {
        "id": "46d59947b0fe2c45",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 30",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 500,
        "wires": []
    },
    {
        "id": "49cd3902b9c783da",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 772,
        "y": 1808,
        "wires": [
            [
                "ccdab62fae1ae69d"
            ],
            [
                "950ea6f2669b50e2",
                "4cffdfe2296656f3"
            ]
        ]
    },
    {
        "id": "4a498acc91cdbf35",
        "type": "tuya-smart-device-generic",
        "z": "814a8335a673ad36",
        "name": "LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "x": 1380,
        "y": 1840,
        "wires": [
            []
        ]
    },
    {
        "id": "7d8c31af2a7a5d56",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "LiFePo4 Redodo (25,6V 100Ah System) Ladung ab 570 Watt PV-Netzeinspeisung starten und >230 Watt Netzbezug stoppen",
        "info": "",
        "x": 980,
        "y": 1680,
        "wires": []
    },
    {
        "id": "1e5af3efe0933b49",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1312,
        "y": 1948,
        "wires": [
            [
                "a26d447c48e61c87",
                "4a498acc91cdbf35"
            ]
        ]
    },
    {
        "id": "ccdab62fae1ae69d",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 812,
        "y": 1748,
        "wires": [
            [
                "4a498acc91cdbf35",
                "e56d521bfcd44a29"
            ]
        ]
    },
    {
        "id": "ab83234a90be3ece",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "Erster Wert >240 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1282,
        "y": 2028,
        "wires": []
    },
    {
        "id": "950ea6f2669b50e2",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 782,
        "y": 1868,
        "wires": [
            [
                "ab83234a90be3ece",
                "9a049b1862ca618a"
            ]
        ]
    },
    {
        "id": "4cffdfe2296656f3",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 31",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 942,
        "y": 2068,
        "wires": []
    },
    {
        "id": "77e0012505310bc4",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 752,
        "y": 2008,
        "wires": [
            [
                "1e5af3efe0933b49",
                "f19ef64284047dfd"
            ]
        ]
    },
    {
        "id": "f19ef64284047dfd",
        "type": "debug",
        "z": "814a8335a673ad36",
        "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": 1312,
        "y": 2088,
        "wires": []
    },
    {
        "id": "9a049b1862ca618a",
        "type": "delay",
        "z": "814a8335a673ad36",
        "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": 692,
        "y": 1928,
        "wires": [
            [
                "77e0012505310bc4",
                "cfa144ea63feb542"
            ]
        ]
    },
    {
        "id": "e8397b85b8002c80",
        "type": "mqtt in",
        "z": "814a8335a673ad36",
        "name": "Hoymiles Total",
        "topic": "carport/total/YieldTotal",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "61de5090.0f5d9",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 1040,
        "y": 3240,
        "wires": [
            [
                "e018146f228923a1"
            ]
        ]
    },
    {
        "id": "e018146f228923a1",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 32",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1000,
        "y": 3420,
        "wires": []
    },
    {
        "id": "7d275890123afac4",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 33",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1730,
        "y": 920,
        "wires": []
    },
    {
        "id": "94bdcb40c3b468ea",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 34",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1560,
        "y": 440,
        "wires": []
    },
    {
        "id": "8ace73070c5b845a",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 35",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1170,
        "y": 780,
        "wires": []
    },
    {
        "id": "6dc00a05d9b7a9d6",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 910,
        "y": 900,
        "wires": [
            [
                "d27862cb170360a4",
                "5bb9eb19480afe4e"
            ],
            [
                "c7d4236d293b312b"
            ]
        ]
    },
    {
        "id": "5bb9eb19480afe4e",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 36",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 850,
        "y": 960,
        "wires": []
    },
    {
        "id": "b95e8a5edd09b98c",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 37",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "led-status",
        "statusType": "auto",
        "x": 2102,
        "y": 1828,
        "wires": []
    },
    {
        "id": "a26d447c48e61c87",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1852,
        "y": 1808,
        "wires": [
            [
                "2b8e7a47b3b74d6f",
                "b95e8a5edd09b98c"
            ]
        ]
    },
    {
        "id": "68a6e1d30ad8ac04",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 1832,
        "y": 1708,
        "wires": [
            [
                "2b8e7a47b3b74d6f",
                "b95e8a5edd09b98c"
            ]
        ]
    },
    {
        "id": "9e4270e0a71bda8c",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 1832,
        "y": 1848,
        "wires": [
            [
                "2b8e7a47b3b74d6f",
                "b95e8a5edd09b98c"
            ]
        ]
    },
    {
        "id": "e56d521bfcd44a29",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1842,
        "y": 1748,
        "wires": [
            [
                "2b8e7a47b3b74d6f"
            ]
        ]
    },
    {
        "id": "7f838403cf1add89",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 38",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "led-status",
        "statusType": "auto",
        "x": 2102,
        "y": 1368,
        "wires": []
    },
    {
        "id": "dad63d13d9261ebf",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1832,
        "y": 1348,
        "wires": [
            [
                "624bec97f84a4a96",
                "7f838403cf1add89"
            ]
        ]
    },
    {
        "id": "c439f8b6848e9983",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 1830,
        "y": 1240,
        "wires": [
            [
                "624bec97f84a4a96",
                "7f838403cf1add89"
            ]
        ]
    },
    {
        "id": "acfc0de84b9fe649",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 1812,
        "y": 1388,
        "wires": [
            [
                "624bec97f84a4a96",
                "7f838403cf1add89"
            ]
        ]
    },
    {
        "id": "4bae158f98119738",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1822,
        "y": 1288,
        "wires": [
            [
                "624bec97f84a4a96"
            ]
        ]
    },
    {
        "id": "46e55e9a510d656a",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 750,
        "y": 2300,
        "wires": [
            [
                "0c7e840a04b258ed"
            ],
            [
                "eadb53c21a0d8a5d",
                "f4b5d66f7cab6e6f"
            ]
        ]
    },
    {
        "id": "e589984e10471ec7",
        "type": "tuya-smart-device-generic",
        "z": "814a8335a673ad36",
        "name": "LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "x": 1360,
        "y": 2340,
        "wires": [
            []
        ]
    },
    {
        "id": "76a63462adf1fe3d",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "LiFePo4 Wattcycle (25,6V 100Ah System) Ladung ab 560 Watt PV-Netzeinspeisung starten und >230 Watt Netzbezug stoppen",
        "info": "",
        "x": 960,
        "y": 2180,
        "wires": []
    },
    {
        "id": "6fc97b4c5b5d4d6f",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1292,
        "y": 2448,
        "wires": [
            [
                "8b426f6f5a898fda",
                "e589984e10471ec7"
            ]
        ]
    },
    {
        "id": "0c7e840a04b258ed",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 792,
        "y": 2248,
        "wires": [
            [
                "5351c955f3821992",
                "e589984e10471ec7",
                "59cf9719bb01f635"
            ]
        ]
    },
    {
        "id": "5fbc1cc548cb0e32",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "Erster Wert >230 Watt",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1262,
        "y": 2528,
        "wires": []
    },
    {
        "id": "eadb53c21a0d8a5d",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 722,
        "y": 2368,
        "wires": [
            [
                "5fbc1cc548cb0e32",
                "d6f9c6652328896a"
            ]
        ]
    },
    {
        "id": "f4b5d66f7cab6e6f",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 39",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 922,
        "y": 2568,
        "wires": []
    },
    {
        "id": "704c805245836f92",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 732,
        "y": 2508,
        "wires": [
            [
                "6fc97b4c5b5d4d6f",
                "f1d0da35ef67ace4"
            ]
        ]
    },
    {
        "id": "f1d0da35ef67ace4",
        "type": "debug",
        "z": "814a8335a673ad36",
        "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": 1292,
        "y": 2588,
        "wires": []
    },
    {
        "id": "d6f9c6652328896a",
        "type": "delay",
        "z": "814a8335a673ad36",
        "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": 672,
        "y": 2428,
        "wires": [
            [
                "704c805245836f92"
            ]
        ]
    },
    {
        "id": "41cc4999c0c71da1",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 40",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "led-status",
        "statusType": "auto",
        "x": 2082,
        "y": 2328,
        "wires": []
    },
    {
        "id": "8b426f6f5a898fda",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1832,
        "y": 2308,
        "wires": [
            [
                "b267fc0d1177a5c7",
                "41cc4999c0c71da1"
            ]
        ]
    },
    {
        "id": "3f8d76a2f8987b9a",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 1812,
        "y": 2208,
        "wires": [
            [
                "b267fc0d1177a5c7",
                "41cc4999c0c71da1"
            ]
        ]
    },
    {
        "id": "8dca397705ff4c08",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 1812,
        "y": 2348,
        "wires": [
            [
                "b267fc0d1177a5c7",
                "41cc4999c0c71da1"
            ]
        ]
    },
    {
        "id": "59cf9719bb01f635",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1820,
        "y": 2260,
        "wires": [
            [
                "b267fc0d1177a5c7"
            ]
        ]
    },
    {
        "id": "2b8e7a47b3b74d6f",
        "type": "ui_led2",
        "z": "814a8335a673ad36",
        "order": 8,
        "group": "39fc06e30796303d",
        "width": "0",
        "height": "0",
        "label": "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": 2152,
        "y": 1768,
        "wires": []
    },
    {
        "id": "624bec97f84a4a96",
        "type": "ui_led2",
        "z": "814a8335a673ad36",
        "order": 8,
        "group": "39fc06e30796303d",
        "width": "0",
        "height": "0",
        "label": "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": 2152,
        "y": 1308,
        "wires": []
    },
    {
        "id": "b267fc0d1177a5c7",
        "type": "ui_led2",
        "z": "814a8335a673ad36",
        "order": 8,
        "group": "c67890a8ed2b148f",
        "width": "0",
        "height": "0",
        "label": "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": 2142,
        "y": 2268,
        "wires": []
    },
    {
        "id": "1df98e19db1c7dcf",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 41",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1540,
        "y": 360,
        "wires": []
    },
    {
        "id": "ddc9f8993c59deee",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 42",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1330,
        "y": 1120,
        "wires": []
    },
    {
        "id": "51fa0e121fc4b828",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 43",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1380,
        "y": 500,
        "wires": []
    },
    {
        "id": "5349e0b45974b6d2",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "AUS",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 290,
        "y": 3620,
        "wires": [
            [
                "53ccc817436f97cb"
            ]
        ]
    },
    {
        "id": "3a164f0b9f593171",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "EIN",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 290,
        "y": 3660,
        "wires": [
            [
                "53ccc817436f97cb"
            ]
        ]
    },
    {
        "id": "8286b8b6058efc57",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Wattcycle Hoymiles HM400 (Nachteinspeisung) ON/OFF",
        "info": "",
        "x": 490,
        "y": 3580,
        "wires": []
    },
    {
        "id": "e0617475f7c792bb",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "AUS",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 830,
        "y": 3620,
        "wires": [
            [
                "06e0dcb2468d2506"
            ]
        ]
    },
    {
        "id": "4bc38cffced2e830",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "EIN",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 830,
        "y": 3660,
        "wires": [
            [
                "06e0dcb2468d2506"
            ]
        ]
    },
    {
        "id": "06e0dcb2468d2506",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles LiThink EIN/AUSSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1090,
        "y": 3640,
        "wires": []
    },
    {
        "id": "f5305274f491606d",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "LiThink Hoymiles HM300 (Nachteinspeisung) ON/OFF",
        "info": "",
        "x": 960,
        "y": 3580,
        "wires": []
    },
    {
        "id": "6b505be8657e7355",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "AUS",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 510,
        "y": 3760,
        "wires": [
            [
                "d8ef03deddd4501c"
            ]
        ]
    },
    {
        "id": "c322630a8525456c",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "EIN",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 510,
        "y": 3800,
        "wires": [
            [
                "d8ef03deddd4501c"
            ]
        ]
    },
    {
        "id": "d8ef03deddd4501c",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles REDODO EIN/AUSSCHALTEN",
        "topic": "carport/ctrl/power/2",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 780,
        "y": 3780,
        "wires": []
    },
    {
        "id": "c9a248f4cf7f0fbf",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Redodo Hoymiles HM300 (Nachteinspeisung) ON/OFF",
        "info": "",
        "x": 700,
        "y": 3720,
        "wires": []
    },
    {
        "id": "fd82ee4b6d994313",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Hoymiles HM300 LiThink Konstanteinspeisung bei negativen Hausverbrauch > -200 Watt ausschalten (wenn Wäremepumpe Nachts ausschaltet) & >200 Watt wieder einschalten",
        "info": "",
        "x": 740,
        "y": 2680,
        "wires": []
    },
    {
        "id": "69272f7bf9bb81fc",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 420,
        "y": 2840,
        "wires": [
            [
                "8d33169d53784440",
                "134faad5935e0a2d"
            ]
        ]
    },
    {
        "id": "8d33169d53784440",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 44",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 740,
        "y": 2880,
        "wires": []
    },
    {
        "id": "134faad5935e0a2d",
        "type": "change",
        "z": "814a8335a673ad36",
        "name": "Payload auf \"1\" (EIN) setzen",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 760,
        "y": 2840,
        "wires": [
            []
        ]
    },
    {
        "id": "402d2bae42d0a6c5",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles LiThink EINSSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1060,
        "y": 2840,
        "wires": []
    },
    {
        "id": "b9953c9f342a7c71",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 430,
        "y": 2740,
        "wires": [
            [
                "c529ab426cc17852",
                "3ab2af0423b3397a"
            ]
        ]
    },
    {
        "id": "c529ab426cc17852",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 45",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 740,
        "y": 2780,
        "wires": []
    },
    {
        "id": "3ab2af0423b3397a",
        "type": "change",
        "z": "814a8335a673ad36",
        "name": "Payload auf \"0\" (AUS) setzen",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 760,
        "y": 2740,
        "wires": [
            []
        ]
    },
    {
        "id": "cc0b9f4c4dbddc3a",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles LiThink AUSSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 1060,
        "y": 2740,
        "wires": []
    },
    {
        "id": "0577915f39f09d59",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "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": 1540,
        "y": 580,
        "wires": []
    },
    {
        "id": "2951e39d950b0518",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "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": 1470,
        "y": 1020,
        "wires": []
    },
    {
        "id": "b47e8b3221d66d70",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles Redodo Leistung übertragen",
        "topic": "carport/ctrl/limit/2",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 210,
        "y": 760,
        "wires": []
    },
    {
        "id": "6794e0bc03b0c681",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles Redodo Leistung übertragen",
        "topic": "carport/ctrl/limit/2",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 230,
        "y": 1060,
        "wires": []
    },
    {
        "id": "9bd9d3844325b2e8",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 46",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 200,
        "y": 540,
        "wires": []
    },
    {
        "id": "fbbf48a6fc813b3a",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles LiThink-System Sommer/Winter-Leistung übertragen",
        "topic": "carport/ctrl/limit/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 810,
        "y": 3920,
        "wires": []
    },
    {
        "id": "490a62245f862e4f",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "170 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "170W",
        "payloadType": "str",
        "x": 480,
        "y": 4060,
        "wires": [
            [
                "fbbf48a6fc813b3a"
            ]
        ]
    },
    {
        "id": "8330438e1df24f78",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "50 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "50W",
        "payloadType": "str",
        "x": 470,
        "y": 3900,
        "wires": [
            [
                "fbbf48a6fc813b3a"
            ]
        ]
    },
    {
        "id": "f4422694b7d27ded",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "LiThink Hoymiles HM300 (Sommer/Winter-Leistung) Konstanteinspeisung",
        "info": "",
        "x": 740,
        "y": 3860,
        "wires": []
    },
    {
        "id": "779700818c7ba49e",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "100 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "100W",
        "payloadType": "str",
        "x": 480,
        "y": 3980,
        "wires": [
            [
                "fbbf48a6fc813b3a"
            ]
        ]
    },
    {
        "id": "179cdecb4b4e5677",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 680,
        "y": 3020,
        "wires": [
            []
        ]
    },
    {
        "id": "bb7c1da0108b8fc5",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Hausverbrauch + Carport PV gesamt errechnen",
        "info": "",
        "x": 240,
        "y": 1200,
        "wires": []
    },
    {
        "id": "feea8f28ed7cad05",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 1360,
        "y": 1320,
        "wires": [
            [
                "e43a077214d9d075"
            ]
        ]
    },
    {
        "id": "4736abc9af2c612b",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 1360,
        "y": 1780,
        "wires": [
            []
        ]
    },
    {
        "id": "7259ac9aa47efbd1",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 1340,
        "y": 2280,
        "wires": [
            [
                "43c465d35fbb70ab"
            ]
        ]
    },
    {
        "id": "5afa8a217dc724cc",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Wenn der Hausverbrauch Tagsüber 2900 Watt überschreitet Einspeisesteckdosen getaktet ausschalten",
        "info": "",
        "x": 810,
        "y": 2960,
        "wires": []
    },
    {
        "id": "90bf90b0b3ef651d",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1160,
        "y": 3040,
        "wires": [
            []
        ]
    },
    {
        "id": "70708f3329f98715",
        "type": "delay",
        "z": "814a8335a673ad36",
        "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": 350,
        "y": 3080,
        "wires": [
            [
                "68a752ce9320a42f"
            ]
        ]
    },
    {
        "id": "68a752ce9320a42f",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 680,
        "y": 3080,
        "wires": [
            []
        ]
    },
    {
        "id": "766bf56a248eb239",
        "type": "delay",
        "z": "814a8335a673ad36",
        "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": 350,
        "y": 3140,
        "wires": [
            [
                "ba51b2bba82547bc"
            ]
        ]
    },
    {
        "id": "ba51b2bba82547bc",
        "type": "switch",
        "z": "814a8335a673ad36",
        "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": 680,
        "y": 3140,
        "wires": [
            []
        ]
    },
    {
        "id": "dd0c419d850b4a8a",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1160,
        "y": 3080,
        "wires": [
            []
        ]
    },
    {
        "id": "5cbf51d5592dceb2",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1160,
        "y": 3120,
        "wires": [
            []
        ]
    },
    {
        "id": "a6a0cbfa7968135d",
        "type": "tuya-smart-device-generic",
        "z": "814a8335a673ad36",
        "name": "LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "x": 1740,
        "y": 3080,
        "wires": [
            []
        ]
    },
    {
        "id": "e43a077214d9d075",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 47",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1620,
        "y": 1220,
        "wires": []
    },
    {
        "id": "31a9093d9b9ac611",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 48",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1120,
        "y": 1260,
        "wires": []
    },
    {
        "id": "5351c955f3821992",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 49",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1100,
        "y": 2220,
        "wires": []
    },
    {
        "id": "43c465d35fbb70ab",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 50",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1540,
        "y": 2200,
        "wires": []
    },
    {
        "id": "3dbea1ce1b6c41e3",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 250,
        "y": 1240,
        "wires": [
            [
                "7fc235580fbae85b"
            ]
        ]
    },
    {
        "id": "7fc235580fbae85b",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 240,
        "y": 1280,
        "wires": [
            [
                "c04cddbf3ff7ba06",
                "179cdecb4b4e5677",
                "70708f3329f98715",
                "766bf56a248eb239"
            ]
        ]
    },
    {
        "id": "c04cddbf3ff7ba06",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 51",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 220,
        "y": 1320,
        "wires": []
    },
    {
        "id": "53ccc817436f97cb",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles Wattcycle EIN/AUSSCHALTEN",
        "topic": "inverter/ctrl/power/0",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 540,
        "y": 3640,
        "wires": []
    },
    {
        "id": "f4120070f57a4d0a",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "75 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "75W",
        "payloadType": "str",
        "x": 470,
        "y": 3940,
        "wires": [
            [
                "fbbf48a6fc813b3a"
            ]
        ]
    },
    {
        "id": "8a4009a9a1cf9497",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "130 Watt",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "130W",
        "payloadType": "str",
        "x": 480,
        "y": 4020,
        "wires": [
            [
                "fbbf48a6fc813b3a"
            ]
        ]
    },
    {
        "id": "2715d36f81630a54",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "on",
        "payloadType": "str",
        "x": 470,
        "y": 4220,
        "wires": [
            [
                "bfb5edfabe2e4b68",
                "cc0db7dd9dc03ea4",
                "5cc64d63c0f40a54",
                "9846c833ca1e14c0"
            ]
        ]
    },
    {
        "id": "0537a991482b500d",
        "type": "inject",
        "z": "814a8335a673ad36",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "off",
        "payloadType": "str",
        "x": 470,
        "y": 4260,
        "wires": [
            [
                "bfb5edfabe2e4b68",
                "cc0db7dd9dc03ea4",
                "5cc64d63c0f40a54",
                "9846c833ca1e14c0"
            ]
        ]
    },
    {
        "id": "bfb5edfabe2e4b68",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 52",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 800,
        "y": 4240,
        "wires": []
    },
    {
        "id": "568d014a25332d41",
        "type": "suncron",
        "z": "814a8335a673ad36",
        "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": 320,
        "y": 4320,
        "wires": [
            [
                "c004fc0b6a08ce5e",
                "cc0db7dd9dc03ea4",
                "5cc64d63c0f40a54",
                "9846c833ca1e14c0",
                "4559f8f546f7b222",
                "09edcdec3f2c81ed",
                "350b400a6bdf3087"
            ]
        ],
        "inputLabels": [
            "keine"
        ]
    },
    {
        "id": "c004fc0b6a08ce5e",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 53",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 380,
        "y": 4360,
        "wires": []
    },
    {
        "id": "cc0db7dd9dc03ea4",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Shelly Wattcycle Einspeisen",
        "topic": "Shelly_Wattcycle_Einspeisen/command/switch:0",
        "qos": "1",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 900,
        "y": 4360,
        "wires": []
    },
    {
        "id": "10a632859913beb5",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Alle 3 Shellys zum Sonnenuntergang ON und Sonnenaufgang OFF inkl. Offsets",
        "info": "",
        "x": 580,
        "y": 4140,
        "wires": []
    },
    {
        "id": "5cc64d63c0f40a54",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Shelly LiThink Einseisen",
        "topic": "Shelly_LiThink_Einspeisen/command/switch:0",
        "qos": "1",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 890,
        "y": 4420,
        "wires": []
    },
    {
        "id": "9846c833ca1e14c0",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Shelly Redodo Einseisen",
        "topic": "Shelly_Redodo_Einspeisen/command/switch:0",
        "qos": "1",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 890,
        "y": 4300,
        "wires": []
    },
    {
        "id": "cb382cc2dd97039a",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 54",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1400,
        "y": 680,
        "wires": []
    },
    {
        "id": "acc548096cabc7ae",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles LiThink Leistung übertragen",
        "topic": "carport/ctrl/limit/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 230,
        "y": 1100,
        "wires": []
    },
    {
        "id": "1ac7b64dc92da301",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles LiThink Leistung übertragen",
        "topic": "carport/ctrl/limit/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 210,
        "y": 800,
        "wires": []
    },
    {
        "id": "bda253d65d5ba4fb",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "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": 1530,
        "y": 620,
        "wires": []
    },
    {
        "id": "d7fa42ca804f2127",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "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": 1460,
        "y": 1060,
        "wires": []
    },
    {
        "id": "a3f4666248d52e3b",
        "type": "suncron",
        "z": "814a8335a673ad36",
        "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": 340,
        "y": 4480,
        "wires": [
            [
                "9846c833ca1e14c0",
                "cc0db7dd9dc03ea4",
                "5cc64d63c0f40a54"
            ]
        ],
        "inputLabels": [
            "keine"
        ]
    },
    {
        "id": "466b4d97e41d6954",
        "type": "suncron",
        "z": "814a8335a673ad36",
        "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": 340,
        "y": 4520,
        "wires": [
            [
                "9846c833ca1e14c0",
                "cc0db7dd9dc03ea4",
                "5cc64d63c0f40a54"
            ]
        ],
        "inputLabels": [
            "keine"
        ]
    },
    {
        "id": "df76ef15eef4fa98",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Alle 3 Shellys nach Sonnenaufgang +1 Stunde OFF mit 5 und 10 Min. Offset (Zuästzliche Abschaltsicherheit)",
        "info": "",
        "x": 410,
        "y": 4440,
        "wires": []
    },
    {
        "id": "cfa144ea63feb542",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 55",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 980,
        "y": 1920,
        "wires": []
    },
    {
        "id": "d2597a6a51084000",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 56",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 980,
        "y": 1460,
        "wires": []
    },
    {
        "id": "db634a922911b721",
        "type": "debug",
        "z": "814a8335a673ad36",
        "name": "debug 57",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1700,
        "y": 1500,
        "wires": []
    },
    {
        "id": "4559f8f546f7b222",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1370,
        "y": 4340,
        "wires": [
            [
                "b965569e69e7d303"
            ]
        ]
    },
    {
        "id": "b965569e69e7d303",
        "type": "tuya-smart-device-generic",
        "z": "814a8335a673ad36",
        "name": "Wattcycle LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "logLevel": "log-level-debug",
        "x": 1388,
        "y": 4292,
        "wires": [
            [
                "b267fc0d1177a5c7"
            ]
        ]
    },
    {
        "id": "a6efd5be95c97fb4",
        "type": "tuya-smart-device-generic",
        "z": "814a8335a673ad36",
        "name": "Redodo LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "logLevel": "log-level-debug",
        "x": 1380,
        "y": 4380,
        "wires": [
            [
                "2b8e7a47b3b74d6f"
            ]
        ]
    },
    {
        "id": "09edcdec3f2c81ed",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1370,
        "y": 4420,
        "wires": [
            [
                "a6efd5be95c97fb4"
            ]
        ]
    },
    {
        "id": "d531208991055024",
        "type": "tuya-smart-device-generic",
        "z": "814a8335a673ad36",
        "name": "LiThink LiFePo4 Steckdose Akku laden oder Ladung stoppen",
        "eventMode": "event-both",
        "logLevel": "log-level-debug",
        "x": 1382,
        "y": 4468,
        "wires": [
            [
                "624bec97f84a4a96"
            ]
        ]
    },
    {
        "id": "350b400a6bdf3087",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 1370,
        "y": 4520,
        "wires": [
            [
                "d531208991055024"
            ]
        ]
    },
    {
        "id": "bf2d74ce03e1cedb",
        "type": "comment",
        "z": "814a8335a673ad36",
        "name": "Alle 3 Tuya Steckdosen zum Sonnenuntergang & Aufgang ausschalten",
        "info": "",
        "x": 1410,
        "y": 4240,
        "wires": []
    },
    {
        "id": "c7d4236d293b312b",
        "type": "change",
        "z": "814a8335a673ad36",
        "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": 950,
        "y": 1060,
        "wires": [
            [
                "52e863de02086489"
            ]
        ]
    },
    {
        "id": "52e863de02086489",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles LiThink AUSSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 970,
        "y": 1100,
        "wires": []
    },
    {
        "id": "687774003859e48e",
        "type": "change",
        "z": "814a8335a673ad36",
        "name": "Bedarf >100 Watt (x2)= Hoymiles LiThink einschalten",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 940,
        "y": 640,
        "wires": [
            [
                "e2c8efcb2a30ac7f"
            ]
        ]
    },
    {
        "id": "e2c8efcb2a30ac7f",
        "type": "mqtt out",
        "z": "814a8335a673ad36",
        "name": "Hoymiles LiThink EINSCHALTEN",
        "topic": "carport/ctrl/power/1",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "61de5090.0f5d9",
        "x": 960,
        "y": 680,
        "wires": []
    },
    {
        "id": "5a243a91f6225378",
        "type": "junction",
        "z": "814a8335a673ad36",
        "x": 1130,
        "y": 980,
        "wires": [
            [
                "c7858db27e5ec4e4",
                "2951e39d950b0518",
                "ddc9f8993c59deee",
                "d7fa42ca804f2127"
            ]
        ]
    },
    {
        "id": "c67890a8ed2b148f",
        "type": "ui_group",
        "name": "Perles SunnyBoy 4.0",
        "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
    }
]