[
    {
        "id": "cf7b6fee7d280a29",
        "type": "tab",
        "label": "userflow Dimmschalter",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "abb628e52fb59480",
        "type": "group",
        "z": "cf7b6fee7d280a29",
        "name": "",
        "style": {
            "fill": "#3f93cf",
            "label": true
        },
        "nodes": [
            "d4681b86a7e543b7",
            "b6391734fb4f8be4",
            "86019459697b242d",
            "120e96347be86410",
            "52817550dd26b6d2",
            "bf9ecf5f89f2987d",
            "3dcac87bb0fe2b26",
            "1b412f70916d56df",
            "4d44b797838f1794",
            "d33ca85dbd454652",
            "624a79fdad05dc49",
            "567361e908896189",
            "4d4a8c8c2237ee6e",
            "d6a50404ac7e33df",
            "6e5c42c85107dd44",
            "125f369d7f025aee",
            "d7b8ebf450a06123",
            "ec8ce799d1722bcf",
            "c296c90f77b87d7b",
            "765b1571afc57020",
            "a7a46f1f8ff7e2d7",
            "e664947c5beb918a",
            "d9c82e33f0137317",
            "94743e998ffe155b",
            "01947527b260a5d5",
            "82cc9920f47c6e1b",
            "0122085c0b68d71e",
            "34aa94c2dc3e9d95",
            "49aa9c5aba58e5b0",
            "b7fec611d7a8af39",
            "9ac26c2b0b7e4424",
            "276c36d05c4bc4a3",
            "26f4889bfb6e3249",
            "f3a045868adc0b11",
            "52a372d6be301555",
            "16f9ec2ff37d0ea1",
            "797d32bae2ec1ef4",
            "1b50a2a22990b94b"
        ],
        "x": 54,
        "y": 79,
        "w": 972,
        "h": 802
    },
    {
        "id": "bb9142aa2d1b1ddd",
        "type": "group",
        "z": "cf7b6fee7d280a29",
        "name": "",
        "style": {
            "fill": "#3f93cf",
            "label": true
        },
        "nodes": [
            "09a2d85a835eaf08",
            "d52d0c440cdc2370",
            "148180ca42c59e7b",
            "8f8b92b7d17c5891",
            "3be02554c3180efb",
            "26c59ec14b9cd60f",
            "8e0e88e91354444c",
            "a134cf62032cc069",
            "5b8cc32c840a4595",
            "f8b99db6f44d1aea",
            "eef390a861011c1d",
            "0a25562ab58300e3",
            "540e409606c67bd2",
            "20b2b00ae58cd383",
            "6a6584144747f279",
            "2cac6f4a19b0f2c6",
            "a374f27b00b70883",
            "b102654b4a13b9a8",
            "8db89c2db5a2985e",
            "e2bc3fee4c9ce887",
            "806c9a4814a6ac42",
            "969888082d23b5e1",
            "a994563b7a3ef682",
            "e5ed3b408b8f1300",
            "530e971c1bbbf4ac",
            "9d5ba2e54d97957b",
            "f5ec58b0cc406650",
            "eeb5b05cc7ebc45f",
            "85decfae85f69df4",
            "d0626d55fc2d601d",
            "81b1a52b1d7bbd7d",
            "cb1ba3c2dbfe9d1b",
            "545211deec265131",
            "978f71f0f57b203b",
            "9ba2229ef7da0ede",
            "946417703bbad3f5",
            "40eef49cab3c2bb6",
            "de091ec3e1f7a0da"
        ],
        "x": 54,
        "y": 919,
        "w": 972,
        "h": 802
    },
    {
        "id": "74e967f7eba80e18",
        "type": "group",
        "z": "cf7b6fee7d280a29",
        "name": "",
        "style": {
            "fill": "#3f93cf",
            "label": true
        },
        "nodes": [
            "188a5e75a8e97df5",
            "1eb88d855e87bd94",
            "ac4ad765993ab066",
            "e511fb5a6581333a",
            "0fdeb703386e3ddf",
            "bf0a8dceff31ac66",
            "94695e7926c96404",
            "fb818296a3c36a1f",
            "33563664a048ee33",
            "ba052db808ade382",
            "bd962ba312d29e36",
            "64a0aac7413205d6",
            "0a15d7fe3078ce54",
            "af12be108dda3467",
            "a4af5a572c7a48f3",
            "73c3fcf4fd53f699",
            "5c153c1a75be8251",
            "8113af5d26bca9ed",
            "5b7cdb1a68c50626",
            "b29c4ab4e0130d23",
            "3955f092ad888894",
            "beba81210b9595e9",
            "b07641b90598fda6",
            "e5f38d7621f59c9e",
            "a22f7fe38cfb2e5b",
            "92148e78f6fc79e1",
            "2f5be0a517b2bcfc",
            "2f4d7d9d1779e9af",
            "a1a7080628764e97",
            "f3bc0b9fc1735866",
            "37a3dde480413fbb",
            "aff5193be74a3bb1",
            "6a6814e39671cd59",
            "e9adb47f466c8486",
            "f52b3940681a37a9",
            "6e790a8f3db8444c",
            "49ee6ed6cef28847",
            "946968ec1459b9a4"
        ],
        "x": 54,
        "y": 1759,
        "w": 972,
        "h": 802
    },
    {
        "id": "a9dd6386ea56b1bd",
        "type": "group",
        "z": "cf7b6fee7d280a29",
        "name": "Only EcoFlow Powerhub",
        "style": {
            "label": true
        },
        "nodes": [
            "c21ec2c1c456918a",
            "7a8b9e40e83a8905",
            "5da755ce9054e2e4",
            "07b9a7824c4db0f4"
        ],
        "x": 1114,
        "y": -1,
        "w": 342,
        "h": 122
    },
    {
        "id": "89114dd6f258632d",
        "type": "comment",
        "z": "cf7b6fee7d280a29",
        "name": "paaren Schalter 3 10 sec drucken bis alle 4 LEDs leuchten",
        "info": "",
        "x": 230,
        "y": 80,
        "wires": []
    },
    {
        "id": "d4681b86a7e543b7",
        "type": "zigbee2mqtt-in",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Taster Bad",
        "server": "36746ccac661caef",
        "friendly_name": "Taster Bad (TS0044)",
        "device_id": "0x70c59cfffe3d893f",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 140,
        "y": 400,
        "wires": [
            [
                "b6391734fb4f8be4",
                "86019459697b242d",
                "120e96347be86410",
                "52817550dd26b6d2",
                "bf9ecf5f89f2987d",
                "3dcac87bb0fe2b26",
                "1b412f70916d56df",
                "4d44b797838f1794",
                "d33ca85dbd454652",
                "624a79fdad05dc49",
                "567361e908896189",
                "4d4a8c8c2237ee6e",
                "d6a50404ac7e33df",
                "6e5c42c85107dd44",
                "125f369d7f025aee",
                "d7b8ebf450a06123",
                "ec8ce799d1722bcf",
                "01947527b260a5d5"
            ]
        ]
    },
    {
        "id": "b6391734fb4f8be4",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Sensor",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 140,
        "y": 480,
        "wires": []
    },
    {
        "id": "86019459697b242d",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 1 doppelt",
        "func": "if (msg.payload.action == \"1_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 160,
        "wires": [
            [
                "276c36d05c4bc4a3"
            ]
        ]
    },
    {
        "id": "120e96347be86410",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 1 lang",
        "func": "if (msg.payload.action ==\"1_hold\"){\n    msg.type=\"switch\"\n    msg.payload = true\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 200,
        "wires": [
            [
                "9ac26c2b0b7e4424",
                "7a8b9e40e83a8905",
                "0122085c0b68d71e"
            ]
        ]
    },
    {
        "id": "52817550dd26b6d2",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Baterie <30%",
        "func": "if (msg.payload.battery <=30)\nmsg.payload = true\nelse \nmsg.payload= false\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 700,
        "wires": [
            [
                "c296c90f77b87d7b"
            ]
        ]
    },
    {
        "id": "bf9ecf5f89f2987d",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Baterie <50%",
        "func": "if (msg.payload.battery <=50)\nmsg.payload = true\nelse \nmsg.payload= false\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 740,
        "wires": [
            []
        ]
    },
    {
        "id": "3dcac87bb0fe2b26",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 1 einfach",
        "func": "if (msg.payload.action == \"1_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 120,
        "wires": [
            [
                "0122085c0b68d71e"
            ]
        ]
    },
    {
        "id": "1b412f70916d56df",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 2 lang",
        "func": "if (msg.payload.action ==\"2_hold\"){\nflow.set(\"ZigbeeDimmerstart2\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 340,
        "wires": [
            [
                "26f4889bfb6e3249"
            ]
        ]
    },
    {
        "id": "4d44b797838f1794",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 2 doppelt",
        "func": "if (msg.payload.action == \"2_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer2\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 300,
        "wires": [
            [
                "b7fec611d7a8af39"
            ]
        ]
    },
    {
        "id": "d33ca85dbd454652",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 2 einfach",
        "func": "if (msg.payload.action == \"2_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer2\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 260,
        "wires": [
            [
                "49aa9c5aba58e5b0"
            ]
        ]
    },
    {
        "id": "624a79fdad05dc49",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 3 einfach",
        "func": "if (msg.payload.action == \"3_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer3\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 400,
        "wires": [
            [
                "34aa94c2dc3e9d95"
            ]
        ]
    },
    {
        "id": "567361e908896189",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 3 doppelt",
        "func": "if (msg.payload.action == \"3_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer3\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 440,
        "wires": [
            [
                "f3a045868adc0b11"
            ]
        ]
    },
    {
        "id": "4d4a8c8c2237ee6e",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 4 einfach",
        "func": "if (msg.payload.action == \"4_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer4\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 540,
        "wires": [
            [
                "16f9ec2ff37d0ea1"
            ]
        ]
    },
    {
        "id": "d6a50404ac7e33df",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 4 doppelt",
        "func": "if (msg.payload.action == \"4_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer4\", 2)\n    \n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 580,
        "wires": [
            [
                "797d32bae2ec1ef4"
            ]
        ]
    },
    {
        "id": "6e5c42c85107dd44",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 4 lang",
        "func": "if (msg.payload.action ==\"4_hold\"){\n \n    msg.payload = \"\"\n    return msg;\n    }\n    \nreturn null \n",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 620,
        "wires": [
            [
                "1b50a2a22990b94b",
                "7e1d3d82596c30a3"
            ]
        ]
    },
    {
        "id": "125f369d7f025aee",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 310,
        "y": 760,
        "wires": [
            [
                "765b1571afc57020"
            ]
        ]
    },
    {
        "id": "d7b8ebf450a06123",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 800,
        "wires": [
            [
                "a7a46f1f8ff7e2d7"
            ]
        ]
    },
    {
        "id": "ec8ce799d1722bcf",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 840,
        "wires": [
            [
                "e664947c5beb918a"
            ]
        ]
    },
    {
        "id": "cddc689c298d4f68",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "Dimmer 0 100%",
        "func": "\nmsg.payload = \"100\"\n\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1210,
        "y": 220,
        "wires": [
            [
                "32d3ea1d9083a204"
            ]
        ]
    },
    {
        "id": "028fc9ddc80d23a6",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "Aus",
        "func": "\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1180,
        "y": 260,
        "wires": [
            [
                "32d3ea1d9083a204"
            ]
        ]
    },
    {
        "id": "c296c90f77b87d7b",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter Eingang <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter Eingang OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 890,
        "y": 700,
        "wires": [
            [
                "d9c82e33f0137317"
            ]
        ]
    },
    {
        "id": "b0fe46107e0b0675",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "DImmer 0 Ein/Aus 50%",
        "func": "var dimm = global.get(\"dimmer7\");\n\nif (dimm > 0 && msg.payload == \"ON\"){\n    \n    msg.payload = 0\n    }    \nelse if ( dimm == 0 && msg.payload == \"ON\"){\n  \n    \n    msg.payload = 50\n    }\nelse { return null }\n\nreturn msg;\n\n",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1230,
        "y": 160,
        "wires": [
            [
                "32d3ea1d9083a204"
            ]
        ]
    },
    {
        "id": "765b1571afc57020",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 1,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Bad Batterie",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 520,
        "y": 760,
        "wires": []
    },
    {
        "id": "a7a46f1f8ff7e2d7",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 3,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Bad Signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 510,
        "y": 800,
        "wires": []
    },
    {
        "id": "e664947c5beb918a",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 2,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Bad Spannung",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 530,
        "y": 840,
        "wires": []
    },
    {
        "id": "d9c82e33f0137317",
        "type": "rbe",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 850,
        "y": 780,
        "wires": [
            [
                "94743e998ffe155b"
            ]
        ]
    },
    {
        "id": "94743e998ffe155b",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [],
        "x": 985,
        "y": 780,
        "wires": []
    },
    {
        "id": "01947527b260a5d5",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Schalter 3 lang",
        "func": "if (msg.payload.action ==\"3_hold\"){\nflow.set(\"ZigbeeDimmerstart3\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 480,
        "wires": [
            [
                "52a372d6be301555"
            ]
        ]
    },
    {
        "id": "82cc9920f47c6e1b",
        "type": "comment",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "Zigbee Tuya 1",
        "info": "",
        "x": 210,
        "y": 320,
        "wires": []
    },
    {
        "id": "32d3ea1d9083a204",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "name": "DimmerEIN2 ON (out)",
        "mode": "link",
        "links": [
            "4644e57c1705d5cf"
        ],
        "x": 1455,
        "y": 224,
        "wires": []
    },
    {
        "id": "88215beaa13cb52b",
        "type": "comment",
        "z": "cf7b6fee7d280a29",
        "name": "paaren Schalter 3 10 sec drucken bis alle 4 LEDs leuchten",
        "info": "",
        "x": 250,
        "y": 1700,
        "wires": []
    },
    {
        "id": "2edd85a1fc768477",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 2",
        "links": [
            "0122085c0b68d71e",
            "2f5be0a517b2bcfc",
            "f5ec58b0cc406650"
        ],
        "x": 1075,
        "y": 160,
        "wires": [
            [
                "b0fe46107e0b0675"
            ]
        ]
    },
    {
        "id": "0122085c0b68d71e",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 7",
        "mode": "link",
        "links": [
            "2edd85a1fc768477",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 120,
        "wires": []
    },
    {
        "id": "34aa94c2dc3e9d95",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 8",
        "mode": "link",
        "links": [
            "6c163e76a0d62979",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 400,
        "wires": []
    },
    {
        "id": "26f4889bfb6e3249",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 9",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 340,
        "wires": []
    },
    {
        "id": "f3a045868adc0b11",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 11",
        "mode": "link",
        "links": [
            "9e5fee19e6fe85b4",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 440,
        "wires": []
    },
    {
        "id": "49aa9c5aba58e5b0",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 12",
        "mode": "link",
        "links": [
            "74ae89b26f85d2b2",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 260,
        "wires": []
    },
    {
        "id": "b7fec611d7a8af39",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 13",
        "mode": "link",
        "links": [
            "9cef0e487a8af14a",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 300,
        "wires": []
    },
    {
        "id": "9ac26c2b0b7e4424",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 14",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 200,
        "wires": []
    },
    {
        "id": "276c36d05c4bc4a3",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 15",
        "mode": "link",
        "links": [
            "241119f0b091ec37",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 160,
        "wires": []
    },
    {
        "id": "52a372d6be301555",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 16",
        "mode": "link",
        "links": [
            "07f828e418990e13"
        ],
        "x": 825,
        "y": 480,
        "wires": []
    },
    {
        "id": "16f9ec2ff37d0ea1",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 17",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 540,
        "wires": []
    },
    {
        "id": "797d32bae2ec1ef4",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "abb628e52fb59480",
        "name": "link out 18",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 580,
        "wires": []
    },
    {
        "id": "1b50a2a22990b94b",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "d": true,
        "g": "abb628e52fb59480",
        "name": "link out taster Bad Heater",
        "mode": "link",
        "links": [
            "81dfadc9b9ac3e66",
            "1b46e877bad270ee",
            "78a22f8a9615ab77"
        ],
        "x": 825,
        "y": 620,
        "wires": []
    },
    {
        "id": "241119f0b091ec37",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 3",
        "links": [
            "276c36d05c4bc4a3",
            "cb1ba3c2dbfe9d1b",
            "aff5193be74a3bb1"
        ],
        "x": 1075,
        "y": 220,
        "wires": [
            [
                "cddc689c298d4f68"
            ]
        ]
    },
    {
        "id": "3f11463e2bd3e427",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 4",
        "links": [],
        "x": 1075,
        "y": 260,
        "wires": [
            [
                "028fc9ddc80d23a6"
            ]
        ]
    },
    {
        "id": "c3b1e0e878c04bc1",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "Dimmer 1 100%",
        "func": "\nmsg.payload = \"100\"\n\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1210,
        "y": 360,
        "wires": [
            [
                "3fda9a7f2602ef49"
            ]
        ]
    },
    {
        "id": "a803945e7ccf3b74",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "Aus",
        "func": "\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1180,
        "y": 400,
        "wires": [
            [
                "3fda9a7f2602ef49"
            ]
        ]
    },
    {
        "id": "a60adf22ebf73c09",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "DImmer 1 Ein/Aus 50%",
        "func": "var dimm = global.get(\"dimmer8\");\n\nif (dimm > 0 && msg.payload == \"ON\"){\n    msg.payload = 0\n    }    \nelse if ( dimm == 0 && msg.payload == \"ON\"){\n    msg.payload = 50\n    }\nelse { return null }\n\nreturn msg;\n\n",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1240,
        "y": 320,
        "wires": [
            [
                "3fda9a7f2602ef49"
            ]
        ]
    },
    {
        "id": "3fda9a7f2602ef49",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "name": "DimmerEIN2 ON (out)",
        "mode": "link",
        "links": [
            "e087d6825c289e2b"
        ],
        "x": 1455,
        "y": 364,
        "wires": []
    },
    {
        "id": "74ae89b26f85d2b2",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 5",
        "links": [
            "49aa9c5aba58e5b0",
            "a1a7080628764e97",
            "85decfae85f69df4"
        ],
        "x": 1075,
        "y": 320,
        "wires": [
            [
                "a60adf22ebf73c09"
            ]
        ]
    },
    {
        "id": "9cef0e487a8af14a",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 6",
        "links": [
            "b7fec611d7a8af39",
            "d0626d55fc2d601d",
            "f3bc0b9fc1735866"
        ],
        "x": 1075,
        "y": 360,
        "wires": [
            [
                "c3b1e0e878c04bc1"
            ]
        ]
    },
    {
        "id": "2bc9746eafa8efd9",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 7",
        "links": [],
        "x": 1075,
        "y": 400,
        "wires": [
            [
                "a803945e7ccf3b74"
            ]
        ]
    },
    {
        "id": "7508e46c4c4f810e",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "Dimmer 2 100%",
        "func": "\nmsg.payload = \"100\"\n\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1210,
        "y": 500,
        "wires": [
            [
                "d4b0c23a84b29aeb"
            ]
        ]
    },
    {
        "id": "5b2db267f497c31a",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "Aus",
        "func": "\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1180,
        "y": 540,
        "wires": [
            [
                "d4b0c23a84b29aeb"
            ]
        ]
    },
    {
        "id": "af768da21554ec11",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "DImmer 2 Ein/Aus 50%",
        "func": "var dimm = global.get(\"dimmer9\");\n\nif (dimm > 0 && msg.payload == \"ON\"){\n    msg.payload = 0\n    }    \nelse if ( dimm == 0 && msg.payload == \"ON\"){\n    msg.payload = 50\n    }\nelse { return null }\n\nreturn msg;\n\n",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1240,
        "y": 460,
        "wires": [
            [
                "d4b0c23a84b29aeb"
            ]
        ]
    },
    {
        "id": "d4b0c23a84b29aeb",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "name": "DimmerEIN2 ON (out)",
        "mode": "link",
        "links": [
            "e19e083430f85a9f"
        ],
        "x": 1455,
        "y": 504,
        "wires": []
    },
    {
        "id": "6c163e76a0d62979",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 8",
        "links": [
            "34aa94c2dc3e9d95",
            "2f4d7d9d1779e9af",
            "eeb5b05cc7ebc45f"
        ],
        "x": 1075,
        "y": 460,
        "wires": [
            [
                "af768da21554ec11"
            ]
        ]
    },
    {
        "id": "9e5fee19e6fe85b4",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 9",
        "links": [
            "f3a045868adc0b11",
            "978f71f0f57b203b",
            "e9adb47f466c8486"
        ],
        "x": 1075,
        "y": 500,
        "wires": [
            [
                "7508e46c4c4f810e"
            ]
        ]
    },
    {
        "id": "9b7f02da2c870555",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in 10",
        "links": [],
        "x": 1075,
        "y": 540,
        "wires": [
            [
                "5b2db267f497c31a"
            ]
        ]
    },
    {
        "id": "09a2d85a835eaf08",
        "type": "zigbee2mqtt-in",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Taster Eingang",
        "server": "36746ccac661caef",
        "friendly_name": "Taster Eingang (TS0044)",
        "device_id": "0x0c2a6ffffeda704e",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 160,
        "y": 1240,
        "wires": [
            [
                "d52d0c440cdc2370",
                "148180ca42c59e7b",
                "8f8b92b7d17c5891",
                "3be02554c3180efb",
                "26c59ec14b9cd60f",
                "8e0e88e91354444c",
                "a134cf62032cc069",
                "5b8cc32c840a4595",
                "f8b99db6f44d1aea",
                "eef390a861011c1d",
                "0a25562ab58300e3",
                "540e409606c67bd2",
                "20b2b00ae58cd383",
                "6a6584144747f279",
                "2cac6f4a19b0f2c6",
                "a374f27b00b70883",
                "b102654b4a13b9a8",
                "530e971c1bbbf4ac"
            ]
        ]
    },
    {
        "id": "d52d0c440cdc2370",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Sensor",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 140,
        "y": 1320,
        "wires": []
    },
    {
        "id": "148180ca42c59e7b",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 1 doppelt",
        "func": "if (msg.payload.action == \"1_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1000,
        "wires": [
            [
                "cb1ba3c2dbfe9d1b"
            ]
        ]
    },
    {
        "id": "8f8b92b7d17c5891",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 1 lang",
        "func": "if (msg.payload.action ==\"1_hold\"){\n    msg.type=\"switch\"\n    msg.payload = \"true\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 1040,
        "wires": [
            [
                "81b1a52b1d7bbd7d",
                "7a8b9e40e83a8905",
                "f5ec58b0cc406650"
            ]
        ]
    },
    {
        "id": "3be02554c3180efb",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Baterie <30%",
        "func": "if (msg.payload.battery <=30)\nmsg.payload = true\nelse \nmsg.payload= false\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 1520,
        "wires": [
            [
                "8db89c2db5a2985e"
            ]
        ]
    },
    {
        "id": "26c59ec14b9cd60f",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Baterie <50%",
        "func": "if (msg.payload.battery <=50)\nmsg.payload = true\nelse \nmsg.payload= false\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 1560,
        "wires": [
            []
        ]
    },
    {
        "id": "8e0e88e91354444c",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 1 einfach",
        "func": "if (msg.payload.action == \"1_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 960,
        "wires": [
            [
                "f5ec58b0cc406650"
            ]
        ]
    },
    {
        "id": "a134cf62032cc069",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 2 lang",
        "func": "if (msg.payload.action ==\"2_hold\"){\nflow.set(\"ZigbeeDimmerstart2\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 1180,
        "wires": [
            [
                "545211deec265131"
            ]
        ]
    },
    {
        "id": "5b8cc32c840a4595",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 2 doppelt",
        "func": "if (msg.payload.action == \"2_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer2\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1140,
        "wires": [
            [
                "d0626d55fc2d601d"
            ]
        ]
    },
    {
        "id": "f8b99db6f44d1aea",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 2 einfach",
        "func": "if (msg.payload.action == \"2_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer2\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1100,
        "wires": [
            [
                "85decfae85f69df4"
            ]
        ]
    },
    {
        "id": "eef390a861011c1d",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 3 einfach",
        "func": "if (msg.payload.action == \"3_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer3\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1240,
        "wires": [
            [
                "eeb5b05cc7ebc45f"
            ]
        ]
    },
    {
        "id": "0a25562ab58300e3",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 3 doppelt",
        "func": "if (msg.payload.action == \"3_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer3\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1280,
        "wires": [
            [
                "978f71f0f57b203b"
            ]
        ]
    },
    {
        "id": "540e409606c67bd2",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 4 einfach",
        "func": "if (msg.payload.action == \"4_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer4\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1380,
        "wires": [
            [
                "946417703bbad3f5"
            ]
        ]
    },
    {
        "id": "20b2b00ae58cd383",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 4 doppelt",
        "func": "if (msg.payload.action == \"4_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer4\", 2)\n    \n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1420,
        "wires": [
            [
                "40eef49cab3c2bb6"
            ]
        ]
    },
    {
        "id": "6a6584144747f279",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 4 lang",
        "func": "if (msg.payload.action ==\"4_hold\"){\n \n    msg.payload = \"ON\"\n    \n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 1460,
        "wires": [
            [
                "de091ec3e1f7a0da"
            ]
        ]
    },
    {
        "id": "2cac6f4a19b0f2c6",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 310,
        "y": 1600,
        "wires": [
            [
                "e2bc3fee4c9ce887"
            ]
        ]
    },
    {
        "id": "a374f27b00b70883",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 1640,
        "wires": [
            [
                "806c9a4814a6ac42"
            ]
        ]
    },
    {
        "id": "b102654b4a13b9a8",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 1680,
        "wires": [
            [
                "969888082d23b5e1"
            ]
        ]
    },
    {
        "id": "8db89c2db5a2985e",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter Eingang <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter Eingang OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 890,
        "y": 1520,
        "wires": [
            [
                "a994563b7a3ef682"
            ]
        ]
    },
    {
        "id": "e2bc3fee4c9ce887",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 1,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Eingang Batterie",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 530,
        "y": 1600,
        "wires": []
    },
    {
        "id": "806c9a4814a6ac42",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 3,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Eingang Signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 530,
        "y": 1640,
        "wires": []
    },
    {
        "id": "969888082d23b5e1",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 2,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Eingang Spannung",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 540,
        "y": 1680,
        "wires": []
    },
    {
        "id": "a994563b7a3ef682",
        "type": "rbe",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 850,
        "y": 1620,
        "wires": [
            [
                "e5ed3b408b8f1300"
            ]
        ]
    },
    {
        "id": "e5ed3b408b8f1300",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [],
        "x": 985,
        "y": 1620,
        "wires": []
    },
    {
        "id": "530e971c1bbbf4ac",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Schalter 3 lang",
        "func": "if (msg.payload.action ==\"3_hold\"){\nflow.set(\"ZigbeeDimmerstart3\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 1320,
        "wires": [
            [
                "9ba2229ef7da0ede"
            ]
        ]
    },
    {
        "id": "9d5ba2e54d97957b",
        "type": "comment",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "Zigbee Tuya 1",
        "info": "",
        "x": 210,
        "y": 1160,
        "wires": []
    },
    {
        "id": "f5ec58b0cc406650",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 20",
        "mode": "link",
        "links": [
            "2edd85a1fc768477",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 960,
        "wires": []
    },
    {
        "id": "eeb5b05cc7ebc45f",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 21",
        "mode": "link",
        "links": [
            "6c163e76a0d62979",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1240,
        "wires": []
    },
    {
        "id": "85decfae85f69df4",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 22",
        "mode": "link",
        "links": [
            "74ae89b26f85d2b2",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1100,
        "wires": []
    },
    {
        "id": "d0626d55fc2d601d",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 23",
        "mode": "link",
        "links": [
            "9cef0e487a8af14a",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1140,
        "wires": []
    },
    {
        "id": "81b1a52b1d7bbd7d",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 24",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 1040,
        "wires": []
    },
    {
        "id": "cb1ba3c2dbfe9d1b",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 25",
        "mode": "link",
        "links": [
            "241119f0b091ec37",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1000,
        "wires": []
    },
    {
        "id": "545211deec265131",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 26",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 1180,
        "wires": []
    },
    {
        "id": "978f71f0f57b203b",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 27",
        "mode": "link",
        "links": [
            "9e5fee19e6fe85b4",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1280,
        "wires": []
    },
    {
        "id": "9ba2229ef7da0ede",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 28",
        "mode": "link",
        "links": [
            "07f828e418990e13"
        ],
        "x": 825,
        "y": 1320,
        "wires": []
    },
    {
        "id": "946417703bbad3f5",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 29",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 1380,
        "wires": []
    },
    {
        "id": "40eef49cab3c2bb6",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out 30",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 1420,
        "wires": []
    },
    {
        "id": "de091ec3e1f7a0da",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "bb9142aa2d1b1ddd",
        "name": "link out taster Eingang Heater",
        "mode": "link",
        "links": [
            "81dfadc9b9ac3e66",
            "1b46e877bad270ee",
            "78a22f8a9615ab77"
        ],
        "x": 825,
        "y": 1460,
        "wires": []
    },
    {
        "id": "188a5e75a8e97df5",
        "type": "zigbee2mqtt-in",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Taster Sitzecke",
        "server": "36746ccac661caef",
        "friendly_name": "Taster Sitzecke (TS0044)",
        "device_id": "0x0c2a6ffffeda9d1b",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 160,
        "y": 2080,
        "wires": [
            [
                "1eb88d855e87bd94",
                "ac4ad765993ab066",
                "e511fb5a6581333a",
                "0fdeb703386e3ddf",
                "bf0a8dceff31ac66",
                "94695e7926c96404",
                "fb818296a3c36a1f",
                "33563664a048ee33",
                "ba052db808ade382",
                "bd962ba312d29e36",
                "64a0aac7413205d6",
                "0a15d7fe3078ce54",
                "af12be108dda3467",
                "a4af5a572c7a48f3",
                "73c3fcf4fd53f699",
                "5c153c1a75be8251",
                "8113af5d26bca9ed",
                "a22f7fe38cfb2e5b"
            ]
        ]
    },
    {
        "id": "1eb88d855e87bd94",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Sensor Sitzecke",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 160,
        "y": 2160,
        "wires": []
    },
    {
        "id": "ac4ad765993ab066",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 1 doppelt",
        "func": "if (msg.payload.action == \"1_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1840,
        "wires": [
            [
                "aff5193be74a3bb1"
            ]
        ]
    },
    {
        "id": "e511fb5a6581333a",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 1 lang",
        "func": "if (msg.payload.action ==\"1_hold\"){\n    msg.type=\"switch\"\n    msg.payload = \"true\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 1880,
        "wires": [
            [
                "37a3dde480413fbb",
                "7a8b9e40e83a8905",
                "2f5be0a517b2bcfc"
            ]
        ]
    },
    {
        "id": "0fdeb703386e3ddf",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Baterie <30%",
        "func": "if (msg.payload.battery <=30)\nmsg.payload = true\nelse \nmsg.payload= false\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 2360,
        "wires": [
            [
                "5b7cdb1a68c50626"
            ]
        ]
    },
    {
        "id": "bf0a8dceff31ac66",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Baterie <50%",
        "func": "if (msg.payload.battery <=50)\nmsg.payload = true\nelse \nmsg.payload= false\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 2400,
        "wires": [
            []
        ]
    },
    {
        "id": "94695e7926c96404",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 1 einfach",
        "func": "if (msg.payload.action == \"1_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1800,
        "wires": [
            [
                "2f5be0a517b2bcfc"
            ]
        ]
    },
    {
        "id": "fb818296a3c36a1f",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 2 lang",
        "func": "if (msg.payload.action ==\"2_hold\"){\nflow.set(\"ZigbeeDimmerstart2\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 2020,
        "wires": [
            [
                "6a6814e39671cd59"
            ]
        ]
    },
    {
        "id": "33563664a048ee33",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 2 doppelt",
        "func": "if (msg.payload.action == \"2_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer2\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1980,
        "wires": [
            [
                "f3bc0b9fc1735866"
            ]
        ]
    },
    {
        "id": "ba052db808ade382",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 2 einfach",
        "func": "if (msg.payload.action == \"2_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer2\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 1940,
        "wires": [
            [
                "a1a7080628764e97"
            ]
        ]
    },
    {
        "id": "bd962ba312d29e36",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 3 einfach",
        "func": "if (msg.payload.action == \"3_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer3\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 2080,
        "wires": [
            [
                "2f4d7d9d1779e9af"
            ]
        ]
    },
    {
        "id": "64a0aac7413205d6",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 3 doppelt",
        "func": "if (msg.payload.action == \"3_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer3\", 2)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 2120,
        "wires": [
            [
                "e9adb47f466c8486"
            ]
        ]
    },
    {
        "id": "0a15d7fe3078ce54",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 4 einfach",
        "func": "if (msg.payload.action == \"4_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer4\", 1)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 2220,
        "wires": [
            [
                "6e790a8f3db8444c"
            ]
        ]
    },
    {
        "id": "af12be108dda3467",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 4 doppelt",
        "func": "if (msg.payload.action == \"4_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer4\", 2)\n    \n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 590,
        "y": 2260,
        "wires": [
            [
                "49ee6ed6cef28847"
            ]
        ]
    },
    {
        "id": "a4af5a572c7a48f3",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 4 lang",
        "func": "if (msg.payload.action ==\"4_hold\"){\n \n    msg.payload = \"ON\"\n    \n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 2300,
        "wires": [
            [
                "946968ec1459b9a4"
            ]
        ]
    },
    {
        "id": "73c3fcf4fd53f699",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 310,
        "y": 2440,
        "wires": [
            [
                "b29c4ab4e0130d23"
            ]
        ]
    },
    {
        "id": "5c153c1a75be8251",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 2480,
        "wires": [
            [
                "3955f092ad888894"
            ]
        ]
    },
    {
        "id": "8113af5d26bca9ed",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 2520,
        "wires": [
            [
                "beba81210b9595e9"
            ]
        ]
    },
    {
        "id": "5b7cdb1a68c50626",
        "type": "change",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter Eingang <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter Eingang OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 890,
        "y": 2360,
        "wires": [
            [
                "b07641b90598fda6"
            ]
        ]
    },
    {
        "id": "b29c4ab4e0130d23",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 1,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Sitzecke Batterie",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 530,
        "y": 2440,
        "wires": []
    },
    {
        "id": "3955f092ad888894",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 3,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Sitzecke Signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 530,
        "y": 2480,
        "wires": []
    },
    {
        "id": "beba81210b9595e9",
        "type": "ui_gauge",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "",
        "group": "8bf340aa16ab8d95",
        "order": 2,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Schalter Sitzecke Spannung",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 540,
        "y": 2520,
        "wires": []
    },
    {
        "id": "b07641b90598fda6",
        "type": "rbe",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 850,
        "y": 2460,
        "wires": [
            [
                "e5f38d7621f59c9e"
            ]
        ]
    },
    {
        "id": "e5f38d7621f59c9e",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [],
        "x": 985,
        "y": 2460,
        "wires": []
    },
    {
        "id": "a22f7fe38cfb2e5b",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Schalter 3 lang",
        "func": "if (msg.payload.action ==\"3_hold\"){\nflow.set(\"ZigbeeDimmerstart3\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 580,
        "y": 2160,
        "wires": [
            [
                "f52b3940681a37a9"
            ]
        ]
    },
    {
        "id": "92148e78f6fc79e1",
        "type": "comment",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "Zigbee Tuya 1",
        "info": "",
        "x": 210,
        "y": 2000,
        "wires": []
    },
    {
        "id": "2f5be0a517b2bcfc",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 32",
        "mode": "link",
        "links": [
            "2edd85a1fc768477",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1800,
        "wires": []
    },
    {
        "id": "2f4d7d9d1779e9af",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 33",
        "mode": "link",
        "links": [
            "6c163e76a0d62979",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 2080,
        "wires": []
    },
    {
        "id": "a1a7080628764e97",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 34",
        "mode": "link",
        "links": [
            "74ae89b26f85d2b2",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1940,
        "wires": []
    },
    {
        "id": "f3bc0b9fc1735866",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 35",
        "mode": "link",
        "links": [
            "9cef0e487a8af14a",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1980,
        "wires": []
    },
    {
        "id": "37a3dde480413fbb",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 36",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 1880,
        "wires": []
    },
    {
        "id": "aff5193be74a3bb1",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 37",
        "mode": "link",
        "links": [
            "241119f0b091ec37",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 1840,
        "wires": []
    },
    {
        "id": "6a6814e39671cd59",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 38",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 2020,
        "wires": []
    },
    {
        "id": "e9adb47f466c8486",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 39",
        "mode": "link",
        "links": [
            "9e5fee19e6fe85b4",
            "c68fe8c8bf2defd4"
        ],
        "x": 825,
        "y": 2120,
        "wires": []
    },
    {
        "id": "f52b3940681a37a9",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 40",
        "mode": "link",
        "links": [
            "07f828e418990e13"
        ],
        "x": 825,
        "y": 2160,
        "wires": []
    },
    {
        "id": "6e790a8f3db8444c",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 41",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 2220,
        "wires": []
    },
    {
        "id": "49ee6ed6cef28847",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out 42",
        "mode": "link",
        "links": [],
        "x": 825,
        "y": 2260,
        "wires": []
    },
    {
        "id": "946968ec1459b9a4",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "74e967f7eba80e18",
        "name": "link out taster Sitzecke Heater",
        "mode": "link",
        "links": [
            "81dfadc9b9ac3e66",
            "1b46e877bad270ee",
            "78a22f8a9615ab77"
        ],
        "x": 825,
        "y": 2300,
        "wires": []
    },
    {
        "id": "83d57cfafbf811f5",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "long push",
        "func": "msg.label = global.get(\"Ndimmer0\")\nif (flow.get(\"timer0\") == \"stop\") {\n    return null\n}\n\nif (flow.get(\"dimDirection0\") == \"down\" && flow.get(\"dimmer0_state\") > 5) {\n    global.set(\"dimmer0\", global.get(\"dimmer0\") -1 <= 5 ? 5 : global.get(\"dimmer0\") -1)\n    msg.payload = global.get(\"dimmer0\")\n    return msg\n}\n\nif (flow.get(\"dimDirection0\") == \"up\" && flow.get(\"dimmer0_state\") < 100) {\n    global.set(\"dimmer0\", global.get(\"dimmer0\") +1 >= 100 ? 100 : global.get(\"dimmer0\") +1)\n    msg.payload = global.get(\"dimmer0\")\n    return msg\n}\n\n\n//if dimmer = 100 then dim down\nif (flow.get(\"dimmer0_state\") >= 100) {\n    if (global.get(\"dimmer0\") <= 0) {\n        //global.set(\"dimmer0\", 0)\n        msg.payload = 5 // do not dim to under 5%\n    }\n    else { \n        //global.set(\"dimmer0\", global.get(\"dimmer0\") -1) \n        msg.payload = global.get(\"dimmer0\") -1\n    }\n    flow.set(\"dimDirection0\", \"down\")\n}\n//if dimmer = 0 then dim up\nelse if (flow.get(\"dimmer0_state\") <= 5 || flow.get(\"dimDirection0\" == undefined)) {\n    if (global.get(\"dimmer0\") >= 100) {\n        //global.set(\"dimmer0\", 100)\n        msg.payload = 100\n    }\n    else {\n        //global.set(\"dimmer0\", global.get(\"dimmer0\") +1) \n        msg.payload = global.get(\"dimmer0\") +1\n    }\n    flow.set(\"dimDirection0\", \"up\")\n}\nmsg.payload = global.get(\"dimmer0\")\n\nreturn msg",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2460,
        "y": 200,
        "wires": [
            [
                "3265aefcdac188cd"
            ]
        ]
    },
    {
        "id": "5c6dc9c2feb016ad",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "get true/false",
        "func": "if (msg.type == \"switch\") {\n    flow.set(\"dimmer0_state\", Number(global.get(\"dimmer0\")) || 0)\n    return [msg, null]\n}\nelse if (msg.type == \"button\") {\n\n    if (msg.payload == true) {\n        flow.set(\"dimmer0_state\", Number(global.get(\"dimmer0\")) || 0)\n        msg.time = Date.now()\n        msg.topic = \"start\"\n        flow.set(\"timer0\", \"start\")\n    }\n    if (msg.payload == false) {\n        msg.time = Date.now()\n        msg.topic = \"stop\"\n        flow.set(\"timer0\", \"stop\")\n    }\n    return [null, msg]\n}",
        "outputs": 2,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1661,
        "y": 182,
        "wires": [
            [
                "3db3c6216c77faf3",
                "528e545c5abe5204"
            ],
            [
                "bff3fe6a4a50c8d5"
            ]
        ]
    },
    {
        "id": "bff3fe6a4a50c8d5",
        "type": "join",
        "z": "cf7b6fee7d280a29",
        "name": "long/short push?",
        "mode": "custom",
        "build": "object",
        "property": "time",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "useparts": true,
        "accumulate": false,
        "timeout": "0.7",
        "count": "",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "num",
        "reduceFixup": "",
        "x": 1850,
        "y": 200,
        "wires": [
            [
                "75288fe2b9c1fc6d"
            ]
        ]
    },
    {
        "id": "75288fe2b9c1fc6d",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "short/long push",
        "func": "if (msg.time.hasOwnProperty(\"start\") && msg.time.hasOwnProperty(\"stop\") && msg.topic == \"stop\") {\n    return [msg, null]\n}\nelse if (msg.topic == \"start\") { \n    return [null, msg]\n}\nelse if (msg.topic == \"stop\") { \n    msg.payload = false\n    return [null, msg]\n}",
        "outputs": 2,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2040,
        "y": 200,
        "wires": [
            [
                "3db3c6216c77faf3"
            ],
            [
                "fae15f76807c35ac"
            ]
        ]
    },
    {
        "id": "3db3c6216c77faf3",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "short push",
        "func": "msg.label = global.get(\"Ndimmer0\")\nlet target\nlet dimmerbefore = flow.get(\"dimmer0before\");\n\nif (msg.type == \"switch\") {\n    if (msg.mcpinput_status == true) {\n        target = (dimmerbefore === null || dimmerbefore === undefined || dimmerbefore < 1) ? 50 : dimmerbefore;\n    }\n    else if (msg.mcpinput_status == false) {\n        flow.set(\"dimmer0before\", Number(flow.get(\"dimmer0_state\")))\n        target = 0\n    }\n}\nelse if (msg.type == \"button\") {\n    target = (Number(flow.get(\"dimmer0_state\")) > 0 ? 0 : (dimmerbefore === null || dimmerbefore === undefined || dimmerbefore === 0) ? 50 : dimmerbefore)\n}\nmsg.payload = Number(flow.get(\"dimmer0_state\"))\n\nif (target == 0) {\n    flow.set(\"dimDirection0\", \"down\")\n    flow.set(\"dimmer0before\", Number(flow.get(\"dimmer0_state\")))\n    while (msg.payload > 0) {\n        node.send(msg)\n        msg.payload = msg.payload - 2.5\n        msg.payload = msg.payload < 0 ? 0 : msg.payload\n        await new Promise(resolve => setTimeout(resolve, 25));\n    }\n    msg.payload = 0\n    return msg\n}\nelse {\n    flow.set(\"dimDirection0\", \"up\")\n    target = target <= 10 ? 20 : target\n    while (msg.payload < target) {\n        msg.payload = msg.payload + 2.5\n        msg.payload = msg.payload > target ? target : msg.payload\n        node.send(msg)\n        await new Promise(resolve => setTimeout(resolve, 25));\n    }\n}",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2221,
        "y": 162,
        "wires": [
            [
                "54456924c96f9e45"
            ]
        ]
    },
    {
        "id": "528e545c5abe5204",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "name": "debug 10",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1922,
        "y": 122,
        "wires": []
    },
    {
        "id": "54456924c96f9e45",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "name": "debug 11",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 2222,
        "y": 102,
        "wires": []
    },
    {
        "id": "fae15f76807c35ac",
        "type": "trigger",
        "z": "cf7b6fee7d280a29",
        "name": "",
        "op1": "1",
        "op2": "0",
        "op1type": "str",
        "op2type": "str",
        "duration": "-30",
        "extend": false,
        "overrideDelay": false,
        "units": "ms",
        "reset": "false",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 2260,
        "y": 200,
        "wires": [
            [
                "83d57cfafbf811f5"
            ]
        ]
    },
    {
        "id": "3265aefcdac188cd",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "name": "debug 13",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 2500,
        "y": 320,
        "wires": []
    },
    {
        "id": "4985f2ae388172d7",
        "type": "trigger",
        "z": "cf7b6fee7d280a29",
        "name": "",
        "op1": "1",
        "op2": "0",
        "op1type": "str",
        "op2type": "str",
        "duration": "-30",
        "extend": false,
        "overrideDelay": false,
        "units": "ms",
        "reset": "false",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 2030,
        "y": 660,
        "wires": [
            [
                "32b109c6334f9d24"
            ]
        ]
    },
    {
        "id": "32b109c6334f9d24",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "long push",
        "func": "msg.label = global.get(\"Ndimmer0\")\nif (flow.get(\"timer0\") == \"stop\") {\n    return null\n}\n\nif (flow.get(\"dimDirection0\") == \"down\" && flow.get(\"dimmer0_state\") > 5) {\n    global.set(\"dimmer0\", global.get(\"dimmer0\") -1 <= 5 ? 5 : global.get(\"dimmer0\") -1)\n    msg.payload = global.get(\"dimmer0\")\n    return msg\n}\n\nif (flow.get(\"dimDirection0\") == \"up\" && flow.get(\"dimmer0_state\") < 100) {\n    global.set(\"dimmer0\", global.get(\"dimmer0\") +1 >= 100 ? 100 : global.get(\"dimmer0\") +1)\n    msg.payload = global.get(\"dimmer0\")\n    return msg\n}\n\n\n//if dimmer = 100 then dim down\nif (flow.get(\"dimmer0_state\") >= 100) {\n    if (global.get(\"dimmer0\") <= 0) {\n        //global.set(\"dimmer0\", 0)\n        msg.payload = 5 // do not dim to under 5%\n    }\n    else { \n        //global.set(\"dimmer0\", global.get(\"dimmer0\") -1) \n        msg.payload = global.get(\"dimmer0\") -1\n    }\n    flow.set(\"dimDirection0\", \"down\")\n}\n//if dimmer = 0 then dim up\nelse if (flow.get(\"dimmer0_state\") <= 5 || flow.get(\"dimDirection0\" == undefined)) {\n    if (global.get(\"dimmer0\") >= 100) {\n        //global.set(\"dimmer0\", 100)\n        msg.payload = 100\n    }\n    else {\n        //global.set(\"dimmer0\", global.get(\"dimmer0\") +1) \n        msg.payload = global.get(\"dimmer0\") +1\n    }\n    flow.set(\"dimDirection0\", \"up\")\n}\nmsg.payload = global.get(\"dimmer0\")\n\nreturn msg",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2220,
        "y": 660,
        "wires": [
            [
                "d859542773cf08e9",
                "d03df808f705ac6b"
            ]
        ]
    },
    {
        "id": "139973fdf36bd51a",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "get true/false",
        "func": "\n\n\nif (msg.type == \"switch\") {\n    flow.set(\"dimmer0_state\", Number(global.get(\"dimmer0\")) || 0)\n    return [msg, null]\n}\nelse if (msg.type == \"button\") {\n\n    if (msg.payload == true) {\n        flow.set(\"dimmer0_state\", Number(global.get(\"dimmer0\")) || 0)\n        msg.time = Date.now()\n        msg.topic = \"start\"\n        flow.set(\"timer0\", \"start\")\n    }\n    if (msg.payload == false) {\n        msg.time = Date.now()\n        msg.topic = \"stop\"\n        flow.set(\"timer0\", \"stop\")\n    }\n    return [null, msg]\n}",
        "outputs": 2,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1450,
        "y": 640,
        "wires": [
            [
                "40d0e0ce532dfdfe"
            ],
            [
                "20bcb51bd6ad4046"
            ]
        ]
    },
    {
        "id": "20bcb51bd6ad4046",
        "type": "join",
        "z": "cf7b6fee7d280a29",
        "name": "long/short push?",
        "mode": "custom",
        "build": "object",
        "property": "time",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "useparts": true,
        "accumulate": false,
        "timeout": "0.7",
        "count": "",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "num",
        "reduceFixup": "",
        "x": 1620,
        "y": 640,
        "wires": [
            [
                "aa2f4175fe165538"
            ]
        ]
    },
    {
        "id": "aa2f4175fe165538",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "short/long push",
        "func": "if (msg.time.hasOwnProperty(\"start\") && msg.time.hasOwnProperty(\"stop\") && msg.topic == \"stop\") {\n    return [msg, null]\n}\nelse if (msg.topic == \"start\") { \n    return [null, msg]\n}\nelse if (msg.topic == \"stop\") { \n    msg.payload = false\n    return [null, msg]\n}",
        "outputs": 2,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1800,
        "y": 640,
        "wires": [
            [
                "40d0e0ce532dfdfe"
            ],
            [
                "4985f2ae388172d7"
            ]
        ]
    },
    {
        "id": "40d0e0ce532dfdfe",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "short push",
        "func": "msg.label = global.get(\"Ndimmer0\")\nlet target\nlet dimmerbefore = flow.get(\"dimmer0before\");\n\nif (msg.type == \"switch\") {\n    if (msg.mcpinput_status == true) {\n        target = (dimmerbefore === null || dimmerbefore === undefined || dimmerbefore < 1) ? 50 : dimmerbefore;\n    }\n    else if (msg.mcpinput_status == false) {\n        flow.set(\"dimmer0before\", Number(flow.get(\"dimmer0_state\")))\n        target = 0\n    }\n}\nelse if (msg.type == \"button\") {\n    target = (Number(flow.get(\"dimmer0_state\")) > 0 ? 0 : (dimmerbefore === null || dimmerbefore === undefined || dimmerbefore === 0) ? 50 : dimmerbefore)\n}\nmsg.payload = Number(flow.get(\"dimmer0_state\"))\n\nif (target == 0) {\n    flow.set(\"dimDirection0\", \"down\")\n    flow.set(\"dimmer0before\", Number(flow.get(\"dimmer0_state\")))\n    while (msg.payload > 0) {\n        node.send(msg)\n        msg.payload = msg.payload - 2.5\n        msg.payload = msg.payload < 0 ? 0 : msg.payload\n        await new Promise(resolve => setTimeout(resolve, 25));\n    }\n    msg.payload = 0\n    return msg\n}\nelse {\n    flow.set(\"dimDirection0\", \"up\")\n    target = target <= 10 ? 20 : target\n    while (msg.payload < target) {\n        msg.payload = msg.payload + 2.5\n        msg.payload = msg.payload > target ? target : msg.payload\n        node.send(msg)\n        await new Promise(resolve => setTimeout(resolve, 25));\n    }\n}",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1990,
        "y": 620,
        "wires": [
            [
                "d859542773cf08e9"
            ]
        ]
    },
    {
        "id": "d03df808f705ac6b",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "name": "dimmer test mcp0",
        "mode": "link",
        "links": [
            "a4c0fd66546e7864"
        ],
        "x": 2334,
        "y": 618,
        "wires": []
    },
    {
        "id": "d859542773cf08e9",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "name": "debug 85",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2379,
        "y": 658,
        "wires": []
    },
    {
        "id": "79679d8119563d8e",
        "type": "inject",
        "z": "cf7b6fee7d280a29",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 1110,
        "y": 640,
        "wires": [
            [
                "37f71613e8fb42c7"
            ]
        ]
    },
    {
        "id": "37f71613e8fb42c7",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "name": "function 24",
        "func": "var zustand1 = flow.get(\"state_dimmer0\") || false;\n\nif (msg.payload === true && zustand1 === false) {\n    flow.set (\"state_dimmer0\",true)\n    msg.type = \"button\"\n    msg.payload = true\n    flow.set(\"dimDirection0\",\"up\")\n}\nelse if (msg.payload === true && zustand1 === true){\n    flow.set (\"state_dimmer0\",false)\n    msg.type = \"button\"\n    msg.payload = false\n}\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1270,
        "y": 640,
        "wires": [
            [
                "00ef78781f91bc34",
                "139973fdf36bd51a"
            ]
        ]
    },
    {
        "id": "00ef78781f91bc34",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "name": "debug 86",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1440,
        "y": 680,
        "wires": []
    },
    {
        "id": "8c59cc7f9abc86db",
        "type": "comment",
        "z": "cf7b6fee7d280a29",
        "name": "Hier komt der Zigbee Taster dran",
        "info": "",
        "x": 1190,
        "y": 580,
        "wires": []
    },
    {
        "id": "2e0a5548b1930602",
        "type": "comment",
        "z": "cf7b6fee7d280a29",
        "name": "Hier gehts zum Dimmer ",
        "info": "",
        "x": 2380,
        "y": 580,
        "wires": []
    },
    {
        "id": "ca8c06bfcf10a0bd",
        "type": "comment",
        "z": "cf7b6fee7d280a29",
        "name": "Musst du noch am Long Push anschließen",
        "info": "",
        "x": 2520,
        "y": 620,
        "wires": []
    },
    {
        "id": "b16f3d92a47bce5d",
        "type": "zigbee2mqtt-in",
        "z": "cf7b6fee7d280a29",
        "name": "Dachzelt",
        "server": "36746ccac661caef",
        "friendly_name": "Dachzelt (TS0043)",
        "device_id": "0xa4c13872a8f73f67",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 160,
        "y": 2620,
        "wires": [
            [
                "6b879ec5b04dd42b"
            ]
        ]
    },
    {
        "id": "6b879ec5b04dd42b",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "name": "debug 69",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 410,
        "y": 2640,
        "wires": []
    },
    {
        "id": "c68fe8c8bf2defd4",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in SetDc",
        "links": [
            "0122085c0b68d71e",
            "276c36d05c4bc4a3",
            "2f4d7d9d1779e9af",
            "2f5be0a517b2bcfc",
            "34aa94c2dc3e9d95",
            "49aa9c5aba58e5b0",
            "85decfae85f69df4",
            "978f71f0f57b203b",
            "a1a7080628764e97",
            "aff5193be74a3bb1",
            "b7fec611d7a8af39",
            "cb1ba3c2dbfe9d1b",
            "d0626d55fc2d601d",
            "e9adb47f466c8486",
            "eeb5b05cc7ebc45f",
            "f3a045868adc0b11",
            "f3bc0b9fc1735866",
            "f5ec58b0cc406650"
        ],
        "x": 1075,
        "y": 40,
        "wires": [
            [
                "c21ec2c1c456918a"
            ]
        ]
    },
    {
        "id": "c21ec2c1c456918a",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "a9dd6386ea56b1bd",
        "name": "SetDcOnForLight",
        "func": "let DcState = global.get(\"EcoFlowDcState\")\n\nif (DcState == false){\n\n    msg.payload = true\n    \n    }    \nelse { return null }\n\nreturn msg;\n\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1230,
        "y": 40,
        "wires": [
            [
                "7a8b9e40e83a8905"
            ]
        ]
    },
    {
        "id": "7a8b9e40e83a8905",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "a9dd6386ea56b1bd",
        "name": "link out 31",
        "mode": "link",
        "links": [
            "832791c85ec92b8c"
        ],
        "x": 1415,
        "y": 40,
        "wires": []
    },
    {
        "id": "5da755ce9054e2e4",
        "type": "function",
        "z": "cf7b6fee7d280a29",
        "g": "a9dd6386ea56b1bd",
        "name": "SetAcOn",
        "func": "let AcState = global.get(\"EcoFlowAcState\")\n\nif (AcState == false){\n\n    msg.payload = true\n    \n    }    \nelse if (AcState == true){\n\n    msg.payload = false\n    \n    } \n\nelse { return null }\n\nreturn msg;\n\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1200,
        "y": 80,
        "wires": [
            [
                "07b9a7824c4db0f4"
            ]
        ]
    },
    {
        "id": "07b9a7824c4db0f4",
        "type": "link out",
        "z": "cf7b6fee7d280a29",
        "g": "a9dd6386ea56b1bd",
        "name": "link out 43",
        "mode": "link",
        "links": [
            "60d09bec518ec002"
        ],
        "x": 1395,
        "y": 80,
        "wires": []
    },
    {
        "id": "07f828e418990e13",
        "type": "link in",
        "z": "cf7b6fee7d280a29",
        "name": "link in SetAc",
        "links": [
            "52a372d6be301555",
            "9ba2229ef7da0ede",
            "f52b3940681a37a9"
        ],
        "x": 1075,
        "y": 80,
        "wires": [
            [
                "5da755ce9054e2e4"
            ]
        ]
    },
    {
        "id": "7e1d3d82596c30a3",
        "type": "debug",
        "z": "cf7b6fee7d280a29",
        "name": "debug 27",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1360,
        "y": 760,
        "wires": []
    },
    {
        "id": "36746ccac661caef",
        "type": "zigbee2mqtt-server",
        "name": "",
        "host": "localhost",
        "mqtt_port": 1883,
        "mqtt_username": "",
        "mqtt_password": "",
        "mqtt_qos": "0",
        "tls": "",
        "usetls": false,
        "base_topic": "zigbee2mqtt"
    },
    {
        "id": "8bf340aa16ab8d95",
        "type": "ui_group",
        "name": "Status",
        "tab": "332fc59677952ebe",
        "order": 1,
        "disp": false,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "332fc59677952ebe",
        "type": "ui_tab",
        "name": "Zigbee_Status",
        "icon": "fa-stethoscope ",
        "order": 37,
        "disabled": false,
        "hidden": false
    }
]