[
    {
        "id": "f3b2cd6b33cf87c5",
        "type": "tab",
        "label": "Zigbee",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "fbcea4264071a328",
        "type": "zigbee2mqtt-bridge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "server": "6c8b07583ed8424a",
        "topic": null,
        "x": 170,
        "y": 60,
        "wires": [
            [
                "22625c35b520602a"
            ]
        ]
    },
    {
        "id": "81ef9eca532d62ba",
        "type": "zigbee2mqtt-in",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor test",
        "server": "6c8b07583ed8424a",
        "friendly_name": "0x00124b002a51e5f7 (SNZB-02)",
        "device_id": "0x00124b002a51e5f7",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 150,
        "y": 120,
        "wires": [
            [
                "24c962e6c4814a9e",
                "9436d2b233a4ac18",
                "5b96eb83bd20386e",
                "4111448c5a32f08f",
                "31b0f61ea97fd98d",
                "a29154408bd5bf6c"
            ]
        ]
    },
    {
        "id": "24c962e6c4814a9e",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 360,
        "y": 120,
        "wires": []
    },
    {
        "id": "22625c35b520602a",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 385,
        "y": 63,
        "wires": []
    },
    {
        "id": "039eda0bfe89fc63",
        "type": "zigbee2mqtt-in",
        "z": "f3b2cd6b33cf87c5",
        "name": "4-Schalter",
        "server": "6c8b07583ed8424a",
        "friendly_name": "0xb43522fffef7b813 (TS0044)",
        "device_id": "0xb43522fffef7b813",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 220,
        "y": 760,
        "wires": [
            [
                "1029049681174d71",
                "bcb56b0c2201964b",
                "a9373b91eeedfdfc",
                "3636532dafe8e7fa",
                "143c5820d2b0f5ca",
                "664aae9115651967",
                "bc046ab652a1377f",
                "39c438627f9ab126",
                "a6d3e8efffb7685a",
                "112a8bb970265c2f",
                "bb1aaabfbbf7d8b7",
                "7ea1111a0a510cc6",
                "5f5b56f02669697c",
                "d440990da37f66d6",
                "60438b360c17cbe7",
                "2c7cddccd1189cb1",
                "3a659297acd2d76f",
                "99e4524ed203ac0f"
            ]
        ]
    },
    {
        "id": "1029049681174d71",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 430,
        "y": 760,
        "wires": []
    },
    {
        "id": "bcb56b0c2201964b",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 520,
        "wires": [
            [
                "92071405958a01e7",
                "7af9228833eb455d"
            ]
        ]
    },
    {
        "id": "a9373b91eeedfdfc",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1 lang",
        "func": "if (msg.payload.action ==\"1_hold\"){\nflow.set(\"ZigbeeDimmerstart\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 560,
        "wires": [
            [
                "9ac1f7f742e88c61",
                "b09e428aba150c59",
                "1e470d2ee47e7354",
                "60c362e36e58c670",
                "c9e18acf0e18feb7",
                "c63235f751296479",
                "dda0e324eb36adee"
            ]
        ]
    },
    {
        "id": "3636532dafe8e7fa",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 650,
        "y": 1040,
        "wires": [
            [
                "a604b3333f052592"
            ]
        ]
    },
    {
        "id": "143c5820d2b0f5ca",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 650,
        "y": 1080,
        "wires": [
            []
        ]
    },
    {
        "id": "664aae9115651967",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 670,
        "y": 480,
        "wires": [
            [
                "bc4cf2f981c6a130",
                "41200fb0e026c8ba",
                "fa19523747fdd0e9"
            ]
        ]
    },
    {
        "id": "bc046ab652a1377f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 lang",
        "func": "if (msg.payload.action ==\"2_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 700,
        "wires": [
            [
                "dde955edce6678dd"
            ]
        ]
    },
    {
        "id": "39c438627f9ab126",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 doppelt",
        "func": "if (msg.payload.action == \"2_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 4)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 660,
        "wires": [
            [
                "aaea0dd9957c5a61",
                "e0b656449a21b93b"
            ]
        ]
    },
    {
        "id": "a6d3e8efffb7685a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 einfach",
        "func": "if (msg.payload.action == \"2_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 3)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 620,
        "wires": [
            [
                "955241832b0e4d71",
                "84aae2e896772cc6",
                "e04a36fcec194a7e"
            ]
        ]
    },
    {
        "id": "112a8bb970265c2f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 einfach",
        "func": "if (msg.payload.action == \"3_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 5)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 760,
        "wires": [
            [
                "9341fcfae4a9fdc8",
                "ba86772c0140a993"
            ]
        ]
    },
    {
        "id": "bb1aaabfbbf7d8b7",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 doppelt",
        "func": "if (msg.payload.action == \"3_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 6)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 800,
        "wires": [
            [
                "23999c82f8649240",
                "85640b0923717390",
                "544c49cb735406a0"
            ]
        ]
    },
    {
        "id": "7ea1111a0a510cc6",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 lang",
        "func": "if (msg.payload.action ==\"3_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 840,
        "wires": [
            [
                "2c87ce0d9ec5443a"
            ]
        ]
    },
    {
        "id": "5f5b56f02669697c",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 einfach",
        "func": "if (msg.payload.action == \"4_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 7)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 900,
        "wires": [
            [
                "5353cb56cdcd5e4e",
                "a153ea216ded8ac5",
                "cb7765f0567bcf4d"
            ]
        ]
    },
    {
        "id": "d440990da37f66d6",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 doppelt",
        "func": "if (msg.payload.action == \"4_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 8)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 940,
        "wires": [
            [
                "22dff75a3b3b41aa"
            ]
        ]
    },
    {
        "id": "60438b360c17cbe7",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 lang",
        "func": "if (msg.payload.action ==\"4_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 980,
        "wires": [
            [
                "22599344a5d547f9"
            ]
        ]
    },
    {
        "id": "2c7cddccd1189cb1",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 390,
        "y": 1120,
        "wires": [
            [
                "9e10e1704aa06428"
            ]
        ]
    },
    {
        "id": "3a659297acd2d76f",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 1160,
        "wires": [
            [
                "45841c4802b1a4ff"
            ]
        ]
    },
    {
        "id": "99e4524ed203ac0f",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 1200,
        "wires": [
            [
                "be79eb9c5ccde343"
            ]
        ]
    },
    {
        "id": "9ac1f7f742e88c61",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 1){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 480,
        "wires": [
            [
                "0971bb2ce411666a",
                "1ccebf6d46fa38cf"
            ]
        ]
    },
    {
        "id": "b09e428aba150c59",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.2",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 2){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 540,
        "wires": [
            [
                "41825c6cfea7175c"
            ]
        ]
    },
    {
        "id": "1e470d2ee47e7354",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 3){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 620,
        "wires": [
            [
                "0a4fb4092df67eb4",
                "1a8642303aa56b51"
            ]
        ]
    },
    {
        "id": "60c362e36e58c670",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 4){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 660,
        "wires": [
            [
                "b779284033f36230"
            ]
        ]
    },
    {
        "id": "c9e18acf0e18feb7",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 5){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 760,
        "wires": [
            [
                "93aefa91e313cf10"
            ]
        ]
    },
    {
        "id": "c63235f751296479",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 6){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 800,
        "wires": [
            [
                "9591e68121a096d5",
                "7817c62cee418f4a"
            ]
        ]
    },
    {
        "id": "dda0e324eb36adee",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 4.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 7){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 900,
        "wires": [
            [
                "d02d2aef4d471cfc",
                "d6bafd0f034b0c4e"
            ]
        ]
    },
    {
        "id": "9e10e1704aa06428",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 1 battery",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 600,
        "y": 1120,
        "wires": []
    },
    {
        "id": "45841c4802b1a4ff",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 1 signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 600,
        "y": 1160,
        "wires": []
    },
    {
        "id": "be79eb9c5ccde343",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 1 voltage",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 610,
        "y": 1200,
        "wires": []
    },
    {
        "id": "b3755d3cad1b8644",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 2 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 700,
        "wires": []
    },
    {
        "id": "eef7a25d2a097c0a",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 3 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 840,
        "wires": []
    },
    {
        "id": "05f26f459ec5aeae",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter4 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 980,
        "wires": []
    },
    {
        "id": "4e3ac1a77697daca",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 4 double (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 940,
        "wires": []
    },
    {
        "id": "2c87ce0d9ec5443a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 45",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 840,
        "wires": [
            [
                "eef7a25d2a097c0a",
                "c36d56e8b9307d79"
            ]
        ]
    },
    {
        "id": "22dff75a3b3b41aa",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 47",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 940,
        "wires": [
            [
                "4e3ac1a77697daca",
                "dfc219e7d7a6da5e"
            ]
        ]
    },
    {
        "id": "22599344a5d547f9",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 48",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 980,
        "wires": [
            [
                "05f26f459ec5aeae",
                "e81006ee7bcc8d8d"
            ]
        ]
    },
    {
        "id": "dfb82c6cdb4ec175",
        "type": "comment",
        "z": "f3b2cd6b33cf87c5",
        "name": "paaren Schalter 3 10 sec drucken bis alle 4 LEDs leuchten",
        "info": "",
        "x": 330,
        "y": 640,
        "wires": []
    },
    {
        "id": "9436d2b233a4ac18",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 390,
        "y": 200,
        "wires": [
            [
                "28d8699726d3a2f1"
            ]
        ]
    },
    {
        "id": "5b96eb83bd20386e",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 390,
        "y": 240,
        "wires": [
            []
        ]
    },
    {
        "id": "4111448c5a32f08f",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 310,
        "y": 280,
        "wires": [
            [
                "1fdefc0c12c2c365"
            ]
        ]
    },
    {
        "id": "31b0f61ea97fd98d",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 320,
        "wires": [
            [
                "91808c7f07e57e74"
            ]
        ]
    },
    {
        "id": "a29154408bd5bf6c",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 360,
        "wires": [
            [
                "1e779c2b4f85d6ba"
            ]
        ]
    },
    {
        "id": "1fdefc0c12c2c365",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Tempsensor 1 battery",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 500,
        "y": 280,
        "wires": []
    },
    {
        "id": "91808c7f07e57e74",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Tempsensor 1 signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 500,
        "y": 320,
        "wires": []
    },
    {
        "id": "1e779c2b4f85d6ba",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Tempsensor 1 voltage",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 500,
        "y": 360,
        "wires": []
    },
    {
        "id": "bc4cf2f981c6a130",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 480,
        "wires": [
            [
                "fdd1b9b8909f7c63",
                "e8074f368971b3ac"
            ]
        ]
    },
    {
        "id": "dde955edce6678dd",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 44",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 700,
        "wires": [
            [
                "b3755d3cad1b8644",
                "3cf218e19748e7ce"
            ]
        ]
    },
    {
        "id": "aaea0dd9957c5a61",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 660,
        "wires": [
            [
                "ba82631d4864b92e"
            ]
        ]
    },
    {
        "id": "92071405958a01e7",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 520,
        "wires": [
            [
                "e9b5b5fe9f4cd3cc"
            ]
        ]
    },
    {
        "id": "955241832b0e4d71",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 620,
        "wires": [
            [
                "f0a5b03a4472a38d",
                "b64e2920b4b6c61e"
            ]
        ]
    },
    {
        "id": "9341fcfae4a9fdc8",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 5",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 760,
        "wires": [
            [
                "5b9ab010dcdfe660"
            ]
        ]
    },
    {
        "id": "23999c82f8649240",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 6",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 800,
        "wires": [
            [
                "21a02d1742e00384",
                "ec833d894221d129"
            ]
        ]
    },
    {
        "id": "5353cb56cdcd5e4e",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 7",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 900,
        "wires": [
            [
                "8aa502406ea9fece",
                "fc4e1340bec4b811"
            ]
        ]
    },
    {
        "id": "85640b0923717390",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 880,
        "y": 1020,
        "wires": []
    },
    {
        "id": "a153ea216ded8ac5",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 880,
        "y": 1060,
        "wires": []
    },
    {
        "id": "21a02d1742e00384",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 1020,
        "wires": []
    },
    {
        "id": "8aa502406ea9fece",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 1060,
        "wires": []
    },
    {
        "id": "9591e68121a096d5",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1500,
        "y": 1040,
        "wires": []
    },
    {
        "id": "d02d2aef4d471cfc",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1500,
        "y": 1080,
        "wires": []
    },
    {
        "id": "3cf218e19748e7ce",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 700,
        "wires": []
    },
    {
        "id": "c36d56e8b9307d79",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 840,
        "wires": []
    },
    {
        "id": "dfc219e7d7a6da5e",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 940,
        "wires": []
    },
    {
        "id": "e81006ee7bcc8d8d",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 1000,
        "wires": []
    },
    {
        "id": "78daef0e7e2c7ed8",
        "type": "zigbee2mqtt-in",
        "z": "f3b2cd6b33cf87c5",
        "name": "4-Schalter",
        "server": "6c8b07583ed8424a",
        "friendly_name": "0xa4c13816136ed84a (TS0044_1)",
        "device_id": "0xa4c13816136ed84a",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 220,
        "y": 1600,
        "wires": [
            [
                "db273e80b78fb444",
                "5eae9d97a7bf1c23",
                "2bd1e08cc76f2ec7",
                "69571411bac53e85",
                "0a6d971a9d8ffa5f",
                "871c519f43c7221a",
                "46ab2b5f8148f4fe",
                "1b1d9ba7387da866",
                "58b418a780814023",
                "63d472a37974960d",
                "68c232b2836411f5",
                "85f3998e11356055",
                "ce62bebe22b8a174",
                "dc2cf2d863535058",
                "07767067a8bd3abf",
                "fe3bdf77643e094f",
                "7413265d45bdef34",
                "57e85e742af3526e"
            ]
        ]
    },
    {
        "id": "db273e80b78fb444",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 430,
        "y": 1600,
        "wires": []
    },
    {
        "id": "5eae9d97a7bf1c23",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 1360,
        "wires": [
            [
                "466c962cb6e30466",
                "a2a918a3a3e87d9c"
            ]
        ]
    },
    {
        "id": "2bd1e08cc76f2ec7",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1 lang",
        "func": "if (msg.payload.action ==\"1_hold\"){\nflow.set(\"ZigbeeDimmerstart\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 1400,
        "wires": [
            [
                "65777d9d40477daf",
                "421a32535b285885",
                "b72953201c49e2b1",
                "bb634efee297caf6",
                "c0a9ae222d730650",
                "ae9afabd0f7bc278",
                "4689f11f3f6f958a"
            ]
        ]
    },
    {
        "id": "69571411bac53e85",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 650,
        "y": 1880,
        "wires": [
            [
                "f2de4cb4a11cfc40"
            ]
        ]
    },
    {
        "id": "0a6d971a9d8ffa5f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 650,
        "y": 1920,
        "wires": [
            []
        ]
    },
    {
        "id": "871c519f43c7221a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 670,
        "y": 1320,
        "wires": [
            [
                "a2be4954b3224ac9",
                "87c167491b0bda34"
            ]
        ]
    },
    {
        "id": "46ab2b5f8148f4fe",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 lang",
        "func": "if (msg.payload.action ==\"2_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 1540,
        "wires": [
            [
                "5f9ef85236493f67"
            ]
        ]
    },
    {
        "id": "1b1d9ba7387da866",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 doppelt",
        "func": "if (msg.payload.action == \"2_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 4)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 1500,
        "wires": [
            [
                "332268de8e9ad5f1",
                "dd4adeaae77cf825"
            ]
        ]
    },
    {
        "id": "58b418a780814023",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 einfach",
        "func": "if (msg.payload.action == \"2_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 3)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 1460,
        "wires": [
            [
                "e7947c21d351571b",
                "22d42e1491ba9674"
            ]
        ]
    },
    {
        "id": "63d472a37974960d",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 einfach",
        "func": "if (msg.payload.action == \"3_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 5)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 1600,
        "wires": [
            [
                "bf9450d2a1a9001e",
                "bf5d5d3fb888bf8a"
            ]
        ]
    },
    {
        "id": "68c232b2836411f5",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 doppelt",
        "func": "if (msg.payload.action == \"3_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 6)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 1640,
        "wires": [
            [
                "ec6e45f066293668",
                "4f698c70bf7b0597",
                "a59085dcf8f35db8"
            ]
        ]
    },
    {
        "id": "85f3998e11356055",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 lang",
        "func": "if (msg.payload.action ==\"3_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 1680,
        "wires": [
            [
                "d13b01f379040087"
            ]
        ]
    },
    {
        "id": "ce62bebe22b8a174",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 einfach",
        "func": "if (msg.payload.action == \"4_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 7)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 1740,
        "wires": [
            [
                "779813e549599cb6",
                "814120ec6151c629",
                "b08d3bfc3c1f1d5c"
            ]
        ]
    },
    {
        "id": "dc2cf2d863535058",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 doppelt",
        "func": "if (msg.payload.action == \"4_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 8)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 1780,
        "wires": [
            [
                "8aee6a906027c8ba"
            ]
        ]
    },
    {
        "id": "07767067a8bd3abf",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 lang",
        "func": "if (msg.payload.action ==\"4_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 1820,
        "wires": [
            [
                "2414dfec8f090ccf"
            ]
        ]
    },
    {
        "id": "fe3bdf77643e094f",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 390,
        "y": 1960,
        "wires": [
            [
                "513624e5316fadea"
            ]
        ]
    },
    {
        "id": "7413265d45bdef34",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 2000,
        "wires": [
            [
                "834377f1a80c85a5"
            ]
        ]
    },
    {
        "id": "57e85e742af3526e",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 2040,
        "wires": [
            [
                "b99778a49ec63fd6"
            ]
        ]
    },
    {
        "id": "466c962cb6e30466",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 1360,
        "wires": [
            [
                "a49811c8a9c31a97"
            ]
        ]
    },
    {
        "id": "65777d9d40477daf",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 1){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 1320,
        "wires": [
            [
                "5d8b806a11b4365b"
            ]
        ]
    },
    {
        "id": "421a32535b285885",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.2",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 2){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 1380,
        "wires": [
            [
                "87c19314d7a894f0"
            ]
        ]
    },
    {
        "id": "b72953201c49e2b1",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 3){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 1460,
        "wires": [
            [
                "06ddb076272edc23"
            ]
        ]
    },
    {
        "id": "bb634efee297caf6",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 4){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 1500,
        "wires": [
            [
                "dc9452a204d3ae18"
            ]
        ]
    },
    {
        "id": "c0a9ae222d730650",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 5){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 1600,
        "wires": [
            [
                "d3ce9c5c5a7d9d20"
            ]
        ]
    },
    {
        "id": "ae9afabd0f7bc278",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 6){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 1640,
        "wires": [
            [
                "b945528744c6d31f",
                "0496ea71fe71c81f"
            ]
        ]
    },
    {
        "id": "4689f11f3f6f958a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 4.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 7){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 1740,
        "wires": [
            [
                "414c48bea2042c21",
                "a011ea9e6dcc3cfc"
            ]
        ]
    },
    {
        "id": "a2be4954b3224ac9",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 1320,
        "wires": [
            [
                "04d3e601b169d248"
            ]
        ]
    },
    {
        "id": "5f9ef85236493f67",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 49",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 1540,
        "wires": [
            [
                "cc5c098ce233d90b",
                "5193d80205731517"
            ]
        ]
    },
    {
        "id": "332268de8e9ad5f1",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 1500,
        "wires": [
            [
                "c21b56cd32d0798d"
            ]
        ]
    },
    {
        "id": "e7947c21d351571b",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 1460,
        "wires": [
            [
                "3dab5d1d18c83733"
            ]
        ]
    },
    {
        "id": "bf9450d2a1a9001e",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 5",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 1600,
        "wires": [
            [
                "683e5c67f0821b14"
            ]
        ]
    },
    {
        "id": "ec6e45f066293668",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 6",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 1640,
        "wires": [
            [
                "34060b690841cafa",
                "12795c2f7b62dbad"
            ]
        ]
    },
    {
        "id": "4f698c70bf7b0597",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 880,
        "y": 1860,
        "wires": []
    },
    {
        "id": "d13b01f379040087",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 50",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 1680,
        "wires": [
            [
                "b6efb8f7fc8494bf",
                "befcc125e22d4877"
            ]
        ]
    },
    {
        "id": "779813e549599cb6",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 7",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 1740,
        "wires": [
            [
                "92a4f21553f5a5fa",
                "d8c1ff2d3b445383"
            ]
        ]
    },
    {
        "id": "814120ec6151c629",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 880,
        "y": 1900,
        "wires": []
    },
    {
        "id": "8aee6a906027c8ba",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 51",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 1780,
        "wires": [
            [
                "de0003fd4ef09578",
                "58736866989e9c16"
            ]
        ]
    },
    {
        "id": "2414dfec8f090ccf",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 52",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 1820,
        "wires": [
            [
                "a6097975991bd509",
                "7d750b0a08114e71"
            ]
        ]
    },
    {
        "id": "513624e5316fadea",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 2 battery",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 600,
        "y": 1960,
        "wires": []
    },
    {
        "id": "834377f1a80c85a5",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 2 signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 600,
        "y": 2000,
        "wires": []
    },
    {
        "id": "b99778a49ec63fd6",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 2 voltage",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 610,
        "y": 2040,
        "wires": []
    },
    {
        "id": "b945528744c6d31f",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1500,
        "y": 1880,
        "wires": []
    },
    {
        "id": "414c48bea2042c21",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1500,
        "y": 1920,
        "wires": []
    },
    {
        "id": "cc5c098ce233d90b",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 2 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 1540,
        "wires": []
    },
    {
        "id": "5193d80205731517",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 1540,
        "wires": []
    },
    {
        "id": "34060b690841cafa",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 1860,
        "wires": []
    },
    {
        "id": "b6efb8f7fc8494bf",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 3 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 1680,
        "wires": []
    },
    {
        "id": "befcc125e22d4877",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 1680,
        "wires": []
    },
    {
        "id": "92a4f21553f5a5fa",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 1900,
        "wires": []
    },
    {
        "id": "de0003fd4ef09578",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 4 double (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 1780,
        "wires": []
    },
    {
        "id": "58736866989e9c16",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 1780,
        "wires": []
    },
    {
        "id": "a6097975991bd509",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter4 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 1820,
        "wires": []
    },
    {
        "id": "7d750b0a08114e71",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 1840,
        "wires": []
    },
    {
        "id": "edaea0cf709369eb",
        "type": "comment",
        "z": "f3b2cd6b33cf87c5",
        "name": "1",
        "info": "",
        "x": 210,
        "y": 700,
        "wires": []
    },
    {
        "id": "4a779886b78899bd",
        "type": "comment",
        "z": "f3b2cd6b33cf87c5",
        "name": "2",
        "info": "",
        "x": 230,
        "y": 1560,
        "wires": []
    },
    {
        "id": "76bd90c2b965d6df",
        "type": "comment",
        "z": "f3b2cd6b33cf87c5",
        "name": "3",
        "info": "",
        "x": 1890,
        "y": 660,
        "wires": []
    },
    {
        "id": "27350aec527a4fa6",
        "type": "comment",
        "z": "f3b2cd6b33cf87c5",
        "name": "4",
        "info": "",
        "x": 1970,
        "y": 1500,
        "wires": []
    },
    {
        "id": "13d6f76824aa2ffb",
        "type": "comment",
        "z": "f3b2cd6b33cf87c5",
        "name": "5",
        "info": "",
        "x": 210,
        "y": 2320,
        "wires": []
    },
    {
        "id": "d6395f502f5999b4",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Telegram",
        "mode": "link",
        "links": [
            "3e552f4b450569fc",
            "2f13db830badcc75",
            "861151fbd26de8a1",
            "762ba118b9727495",
            "3c7a80664934fd5c"
        ],
        "x": 825,
        "y": 240,
        "wires": []
    },
    {
        "id": "cdefb40018262194",
        "type": "rbe",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 570,
        "y": 240,
        "wires": [
            [
                "2d19c9d920ad1d9d"
            ]
        ]
    },
    {
        "id": "28d8699726d3a2f1",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSensor <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSensor OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 610,
        "y": 200,
        "wires": [
            [
                "cdefb40018262194"
            ]
        ]
    },
    {
        "id": "2d19c9d920ad1d9d",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [
            "6abfa55e2dbc3646"
        ],
        "x": 665,
        "y": 240,
        "wires": []
    },
    {
        "id": "6abfa55e2dbc3646",
        "type": "link in",
        "z": "f3b2cd6b33cf87c5",
        "name": "link in zu Telegram",
        "links": [
            "2d19c9d920ad1d9d",
            "48b14403f4fac41e",
            "1614304ef4c94e9f",
            "97a7d9d2d6b81d98",
            "146410b02e2239be",
            "e7658af61a62fddf",
            "935fe2d19a791235",
            "f603654dadeffd72",
            "2d414eb6cfe62a41"
        ],
        "x": 755,
        "y": 240,
        "wires": [
            [
                "d6395f502f5999b4"
            ]
        ]
    },
    {
        "id": "048c8f667c9e2eea",
        "type": "rbe",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 930,
        "y": 1140,
        "wires": [
            [
                "48b14403f4fac41e"
            ]
        ]
    },
    {
        "id": "a604b3333f052592",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 1 <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 1 OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 970,
        "y": 1100,
        "wires": [
            [
                "048c8f667c9e2eea"
            ]
        ]
    },
    {
        "id": "48b14403f4fac41e",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [
            "6abfa55e2dbc3646"
        ],
        "x": 1025,
        "y": 1140,
        "wires": []
    },
    {
        "id": "f2de4cb4a11cfc40",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 2 <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 2 OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 910,
        "y": 1940,
        "wires": [
            [
                "4e4e5705dd201895"
            ]
        ]
    },
    {
        "id": "4e4e5705dd201895",
        "type": "rbe",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 870,
        "y": 1980,
        "wires": [
            [
                "1614304ef4c94e9f"
            ]
        ]
    },
    {
        "id": "1614304ef4c94e9f",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [
            "6abfa55e2dbc3646"
        ],
        "x": 965,
        "y": 1980,
        "wires": []
    },
    {
        "id": "41200fb0e026c8ba",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "dimmen1 ON (out)",
        "mode": "link",
        "links": [
            "c2a29985d750486a"
        ],
        "x": 835,
        "y": 480,
        "wires": []
    },
    {
        "id": "7af9228833eb455d",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 ON (out)",
        "mode": "link",
        "links": [
            "bd352c7d73fd8056"
        ],
        "x": 835,
        "y": 520,
        "wires": []
    },
    {
        "id": "84aae2e896772cc6",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 ON (out)",
        "mode": "link",
        "links": [
            "599ef69f6a8974e3"
        ],
        "x": 835,
        "y": 620,
        "wires": []
    },
    {
        "id": "e0b656449a21b93b",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 ON (out)",
        "mode": "link",
        "links": [
            "2f5d555b2446cd0b"
        ],
        "x": 835,
        "y": 660,
        "wires": []
    },
    {
        "id": "ba86772c0140a993",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 ON (out)",
        "mode": "link",
        "links": [
            "0845fe8ae07cff85"
        ],
        "x": 835,
        "y": 760,
        "wires": []
    },
    {
        "id": "544c49cb735406a0",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 ON (out)",
        "mode": "link",
        "links": [
            "10ce5ec47062ac3a"
        ],
        "x": 835,
        "y": 800,
        "wires": []
    },
    {
        "id": "cb7765f0567bcf4d",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 ON (out)",
        "mode": "link",
        "links": [
            "2cfc7d509b8f9893"
        ],
        "x": 835,
        "y": 900,
        "wires": []
    },
    {
        "id": "fc4e1340bec4b811",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN7 ON (out)",
        "mode": "link",
        "links": [
            "fc2dcb260e77a4f5"
        ],
        "x": 1155,
        "y": 900,
        "wires": []
    },
    {
        "id": "ec833d894221d129",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN6 ON (out)",
        "mode": "link",
        "links": [
            "136c399c1b5dff69"
        ],
        "x": 1155,
        "y": 800,
        "wires": []
    },
    {
        "id": "5b9ab010dcdfe660",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN5 ON (out)",
        "mode": "link",
        "links": [
            "c93b293f6e2ce36e"
        ],
        "x": 1155,
        "y": 760,
        "wires": []
    },
    {
        "id": "ba82631d4864b92e",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN4 ON (out)",
        "mode": "link",
        "links": [
            "65ccac48228b17ec"
        ],
        "x": 1155,
        "y": 660,
        "wires": []
    },
    {
        "id": "f0a5b03a4472a38d",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN3 ON (out)",
        "mode": "link",
        "links": [
            "4805357877aa4786"
        ],
        "x": 1155,
        "y": 620,
        "wires": []
    },
    {
        "id": "e9b5b5fe9f4cd3cc",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN2 ON (out)",
        "mode": "link",
        "links": [
            "52626da6b223cb75"
        ],
        "x": 1165,
        "y": 520,
        "wires": []
    },
    {
        "id": "fdd1b9b8909f7c63",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN1 ON (out)",
        "mode": "link",
        "links": [
            "39c1529f93fc90b0"
        ],
        "x": 1165,
        "y": 480,
        "wires": []
    },
    {
        "id": "0971bb2ce411666a",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer1 OFF (out)",
        "mode": "link",
        "links": [
            "331b1b8a3c97505e"
        ],
        "x": 1545,
        "y": 480,
        "wires": []
    },
    {
        "id": "41825c6cfea7175c",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 OFF (out)",
        "mode": "link",
        "links": [
            "df0577f7ef687c3c"
        ],
        "x": 1545,
        "y": 540,
        "wires": []
    },
    {
        "id": "0a4fb4092df67eb4",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 OFF (out)",
        "mode": "link",
        "links": [
            "4072939ef73e2ee3"
        ],
        "x": 1545,
        "y": 620,
        "wires": []
    },
    {
        "id": "b779284033f36230",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 OFF (out)",
        "mode": "link",
        "links": [
            "faa2028df69ee364"
        ],
        "x": 1545,
        "y": 660,
        "wires": []
    },
    {
        "id": "93aefa91e313cf10",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 OFF (out)",
        "mode": "link",
        "links": [
            "bf10a16434ce0bc1"
        ],
        "x": 1545,
        "y": 760,
        "wires": []
    },
    {
        "id": "7817c62cee418f4a",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 OFF (out)",
        "mode": "link",
        "links": [
            "3b3b1d624154d622"
        ],
        "x": 1545,
        "y": 800,
        "wires": []
    },
    {
        "id": "d6bafd0f034b0c4e",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 OFF (out)",
        "mode": "link",
        "links": [
            "5cb6468b4879e488"
        ],
        "x": 1545,
        "y": 900,
        "wires": []
    },
    {
        "id": "87c167491b0bda34",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "dimmen1 ON (out)",
        "mode": "link",
        "links": [
            "c2a29985d750486a"
        ],
        "x": 805,
        "y": 1320,
        "wires": []
    },
    {
        "id": "a2a918a3a3e87d9c",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 ON (out)",
        "mode": "link",
        "links": [
            "bd352c7d73fd8056"
        ],
        "x": 805,
        "y": 1360,
        "wires": []
    },
    {
        "id": "22d42e1491ba9674",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 ON (out)",
        "mode": "link",
        "links": [
            "599ef69f6a8974e3"
        ],
        "x": 805,
        "y": 1460,
        "wires": []
    },
    {
        "id": "dd4adeaae77cf825",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 ON (out)",
        "mode": "link",
        "links": [
            "2f5d555b2446cd0b"
        ],
        "x": 805,
        "y": 1500,
        "wires": []
    },
    {
        "id": "bf5d5d3fb888bf8a",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 ON (out)",
        "mode": "link",
        "links": [
            "0845fe8ae07cff85"
        ],
        "x": 805,
        "y": 1600,
        "wires": []
    },
    {
        "id": "a59085dcf8f35db8",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 ON (out)",
        "mode": "link",
        "links": [
            "10ce5ec47062ac3a"
        ],
        "x": 805,
        "y": 1640,
        "wires": []
    },
    {
        "id": "b08d3bfc3c1f1d5c",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 ON (out)",
        "mode": "link",
        "links": [
            "2cfc7d509b8f9893"
        ],
        "x": 805,
        "y": 1740,
        "wires": []
    },
    {
        "id": "d8c1ff2d3b445383",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN7 ON (out)",
        "mode": "link",
        "links": [
            "fc2dcb260e77a4f5"
        ],
        "x": 1125,
        "y": 1740,
        "wires": []
    },
    {
        "id": "12795c2f7b62dbad",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN6 ON (out)",
        "mode": "link",
        "links": [
            "136c399c1b5dff69"
        ],
        "x": 1125,
        "y": 1640,
        "wires": []
    },
    {
        "id": "683e5c67f0821b14",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN5 ON (out)",
        "mode": "link",
        "links": [
            "c93b293f6e2ce36e"
        ],
        "x": 1125,
        "y": 1600,
        "wires": []
    },
    {
        "id": "c21b56cd32d0798d",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN4 ON (out)",
        "mode": "link",
        "links": [
            "65ccac48228b17ec"
        ],
        "x": 1125,
        "y": 1500,
        "wires": []
    },
    {
        "id": "3dab5d1d18c83733",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN3 ON (out)",
        "mode": "link",
        "links": [
            "4805357877aa4786"
        ],
        "x": 1125,
        "y": 1460,
        "wires": []
    },
    {
        "id": "a49811c8a9c31a97",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN2 ON (out)",
        "mode": "link",
        "links": [
            "52626da6b223cb75"
        ],
        "x": 1135,
        "y": 1360,
        "wires": []
    },
    {
        "id": "04d3e601b169d248",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN1 ON (out)",
        "mode": "link",
        "links": [
            "39c1529f93fc90b0"
        ],
        "x": 1135,
        "y": 1320,
        "wires": []
    },
    {
        "id": "5d8b806a11b4365b",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer1 OFF (out)",
        "mode": "link",
        "links": [
            "331b1b8a3c97505e"
        ],
        "x": 1515,
        "y": 1320,
        "wires": []
    },
    {
        "id": "87c19314d7a894f0",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 OFF (out)",
        "mode": "link",
        "links": [
            "df0577f7ef687c3c"
        ],
        "x": 1515,
        "y": 1380,
        "wires": []
    },
    {
        "id": "06ddb076272edc23",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 OFF (out)",
        "mode": "link",
        "links": [
            "4072939ef73e2ee3"
        ],
        "x": 1515,
        "y": 1460,
        "wires": []
    },
    {
        "id": "dc9452a204d3ae18",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 OFF (out)",
        "mode": "link",
        "links": [
            "faa2028df69ee364"
        ],
        "x": 1515,
        "y": 1500,
        "wires": []
    },
    {
        "id": "d3ce9c5c5a7d9d20",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 OFF (out)",
        "mode": "link",
        "links": [
            "bf10a16434ce0bc1"
        ],
        "x": 1515,
        "y": 1600,
        "wires": []
    },
    {
        "id": "0496ea71fe71c81f",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 OFF (out)",
        "mode": "link",
        "links": [
            "3b3b1d624154d622"
        ],
        "x": 1515,
        "y": 1640,
        "wires": []
    },
    {
        "id": "a011ea9e6dcc3cfc",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 OFF (out)",
        "mode": "link",
        "links": [
            "5cb6468b4879e488"
        ],
        "x": 1515,
        "y": 1740,
        "wires": []
    },
    {
        "id": "fa19523747fdd0e9",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 940,
        "y": 360,
        "wires": []
    },
    {
        "id": "e8074f368971b3ac",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1240,
        "y": 360,
        "wires": []
    },
    {
        "id": "1ccebf6d46fa38cf",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1520,
        "y": 360,
        "wires": []
    },
    {
        "id": "e04a36fcec194a7e",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 940,
        "y": 420,
        "wires": []
    },
    {
        "id": "b64e2920b4b6c61e",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1240,
        "y": 420,
        "wires": []
    },
    {
        "id": "1a8642303aa56b51",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1538.88330078125,
        "y": 427.2833251953125,
        "wires": []
    },
    {
        "id": "24ceb0c686fb4819",
        "type": "zigbee2mqtt-in",
        "z": "f3b2cd6b33cf87c5",
        "name": "4-Schalter",
        "server": "6c8b07583ed8424a",
        "friendly_name": "0xa4c1383724b0bcb2 (TS0044)",
        "device_id": "0xa4c1383724b0bcb2",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 220,
        "y": 2380,
        "wires": [
            [
                "27b3829052001d5d",
                "9f47e5486193df1f",
                "e465da44099e7bdc",
                "b97e5c30c6fdb090",
                "4fee61e09bbc02e5",
                "c28f57191b1c13ae",
                "5c889eb3e167bb9e",
                "302039fa3844c5e5",
                "3eebd9e58ccc9e1e",
                "7e2124a38b7a8dc5",
                "be9f2c3e1e5c6818",
                "162eee4ad2644768",
                "f991f9e312dffb86",
                "958df6854d29e46f",
                "fd0b25f1f2850f75",
                "f6cd2eea23a2693b",
                "bee2c3e81e34f40a",
                "1a5973cc02d35687"
            ]
        ]
    },
    {
        "id": "27b3829052001d5d",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 430,
        "y": 2380,
        "wires": []
    },
    {
        "id": "9f47e5486193df1f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 2140,
        "wires": [
            [
                "dff83bff219abccf",
                "4eb806fc0bfa24bd"
            ]
        ]
    },
    {
        "id": "e465da44099e7bdc",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1 lang",
        "func": "if (msg.payload.action ==\"1_hold\"){\nflow.set(\"ZigbeeDimmerstart\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 2180,
        "wires": [
            [
                "5d414304e71f075f",
                "cad47bd4da455bcb",
                "f0f05a60e37e1a81",
                "a75342f7b772d199",
                "407e2f9bd8660ff9",
                "ede08830b468fc72",
                "49cf0f3a40dd8591"
            ]
        ]
    },
    {
        "id": "b97e5c30c6fdb090",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 650,
        "y": 2660,
        "wires": [
            [
                "46ece3b4890ddd32"
            ]
        ]
    },
    {
        "id": "4fee61e09bbc02e5",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 650,
        "y": 2700,
        "wires": [
            []
        ]
    },
    {
        "id": "c28f57191b1c13ae",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 670,
        "y": 2100,
        "wires": [
            [
                "a12f35fac4017a76",
                "463d142ec3c393a6"
            ]
        ]
    },
    {
        "id": "5c889eb3e167bb9e",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 lang",
        "func": "if (msg.payload.action ==\"2_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 2320,
        "wires": [
            [
                "78e059a6e89bd9d7"
            ]
        ]
    },
    {
        "id": "302039fa3844c5e5",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 doppelt",
        "func": "if (msg.payload.action == \"2_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 4)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 2280,
        "wires": [
            [
                "35547647b30a8900",
                "1ea54338dc6a42f7"
            ]
        ]
    },
    {
        "id": "3eebd9e58ccc9e1e",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 einfach",
        "func": "if (msg.payload.action == \"2_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 3)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 2240,
        "wires": [
            [
                "f545e40df3d9fcc7",
                "3ac4bc936cf27d01"
            ]
        ]
    },
    {
        "id": "7e2124a38b7a8dc5",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 einfach",
        "func": "if (msg.payload.action == \"3_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 5)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 2380,
        "wires": [
            [
                "107618ced6784122",
                "c526296100b30cf3"
            ]
        ]
    },
    {
        "id": "be9f2c3e1e5c6818",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 doppelt",
        "func": "if (msg.payload.action == \"3_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 6)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 2420,
        "wires": [
            [
                "12f9f8917260ef4f",
                "7384a76669210d39",
                "f73db375351af909"
            ]
        ]
    },
    {
        "id": "162eee4ad2644768",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 lang",
        "func": "if (msg.payload.action ==\"3_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 2460,
        "wires": [
            [
                "06470af747db9543"
            ]
        ]
    },
    {
        "id": "f991f9e312dffb86",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 einfach",
        "func": "if (msg.payload.action == \"4_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 7)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 2520,
        "wires": [
            [
                "a08df5b366dce19d",
                "174543977f90537c",
                "31c724ea48eb2996"
            ]
        ]
    },
    {
        "id": "958df6854d29e46f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 doppelt",
        "func": "if (msg.payload.action == \"4_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 8)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 2560,
        "wires": [
            [
                "ce1d2bd511c009b5"
            ]
        ]
    },
    {
        "id": "fd0b25f1f2850f75",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 lang",
        "func": "if (msg.payload.action ==\"4_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 660,
        "y": 2600,
        "wires": [
            [
                "54b1c9b0014eb45b"
            ]
        ]
    },
    {
        "id": "f6cd2eea23a2693b",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 390,
        "y": 2740,
        "wires": [
            [
                "ce99be0f7d5eb9a8"
            ]
        ]
    },
    {
        "id": "bee2c3e81e34f40a",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 2780,
        "wires": [
            [
                "493ca47c44d5d07c"
            ]
        ]
    },
    {
        "id": "1a5973cc02d35687",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 400,
        "y": 2820,
        "wires": [
            [
                "ca25fa29fa2c8404"
            ]
        ]
    },
    {
        "id": "dff83bff219abccf",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 2140,
        "wires": [
            [
                "4330b1a8e4be5b7f"
            ]
        ]
    },
    {
        "id": "4eb806fc0bfa24bd",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 ON (out)",
        "mode": "link",
        "links": [
            "bd352c7d73fd8056"
        ],
        "x": 805,
        "y": 2140,
        "wires": []
    },
    {
        "id": "5d414304e71f075f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 1){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 2100,
        "wires": [
            [
                "94a76c511ac50a2f"
            ]
        ]
    },
    {
        "id": "cad47bd4da455bcb",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.2",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 2){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 2160,
        "wires": [
            [
                "dd5ab33f89eb5aa6"
            ]
        ]
    },
    {
        "id": "f0f05a60e37e1a81",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 3){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 2240,
        "wires": [
            [
                "177d0beaa5a9a666"
            ]
        ]
    },
    {
        "id": "a75342f7b772d199",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 4){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 2280,
        "wires": [
            [
                "492ec3e765f6b3c5"
            ]
        ]
    },
    {
        "id": "407e2f9bd8660ff9",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 5){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 2380,
        "wires": [
            [
                "633ae7bcec4e755c"
            ]
        ]
    },
    {
        "id": "ede08830b468fc72",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 6){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 2420,
        "wires": [
            [
                "6259d813b7b06179",
                "cd051792dad59468"
            ]
        ]
    },
    {
        "id": "49cf0f3a40dd8591",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 4.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 7){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1330,
        "y": 2520,
        "wires": [
            [
                "46f905affa9743b9",
                "8931e9346b448de1"
            ]
        ]
    },
    {
        "id": "46ece3b4890ddd32",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 5 <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 5 OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 910,
        "y": 2720,
        "wires": [
            [
                "c1f0d83e64e37257"
            ]
        ]
    },
    {
        "id": "a12f35fac4017a76",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 2100,
        "wires": [
            [
                "ea4cbe11bfccc56c"
            ]
        ]
    },
    {
        "id": "463d142ec3c393a6",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "dimmen1 ON (out)",
        "mode": "link",
        "links": [
            "c2a29985d750486a"
        ],
        "x": 805,
        "y": 2100,
        "wires": []
    },
    {
        "id": "78e059a6e89bd9d7",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 61",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 2320,
        "wires": [
            [
                "17d84c0b0e166526",
                "6c436eaa7b749a53"
            ]
        ]
    },
    {
        "id": "35547647b30a8900",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 2280,
        "wires": [
            [
                "0f1de47298414821"
            ]
        ]
    },
    {
        "id": "1ea54338dc6a42f7",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 ON (out)",
        "mode": "link",
        "links": [
            "2f5d555b2446cd0b"
        ],
        "x": 805,
        "y": 2280,
        "wires": []
    },
    {
        "id": "f545e40df3d9fcc7",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 2240,
        "wires": [
            [
                "1182891cc96acc85"
            ]
        ]
    },
    {
        "id": "3ac4bc936cf27d01",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 ON (out)",
        "mode": "link",
        "links": [
            "599ef69f6a8974e3"
        ],
        "x": 805,
        "y": 2240,
        "wires": []
    },
    {
        "id": "107618ced6784122",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 5",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 2380,
        "wires": [
            [
                "2c1c9cc887bf2177"
            ]
        ]
    },
    {
        "id": "c526296100b30cf3",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 ON (out)",
        "mode": "link",
        "links": [
            "0845fe8ae07cff85"
        ],
        "x": 805,
        "y": 2380,
        "wires": []
    },
    {
        "id": "12f9f8917260ef4f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 6",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 2420,
        "wires": [
            [
                "41c431061280f3d1",
                "1aa488e447743e57"
            ]
        ]
    },
    {
        "id": "7384a76669210d39",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 880,
        "y": 2640,
        "wires": []
    },
    {
        "id": "f73db375351af909",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 ON (out)",
        "mode": "link",
        "links": [
            "10ce5ec47062ac3a"
        ],
        "x": 805,
        "y": 2420,
        "wires": []
    },
    {
        "id": "06470af747db9543",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 62",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 2460,
        "wires": [
            [
                "da8f2b6a8360716d",
                "2b9bce16dcdb4fc4"
            ]
        ]
    },
    {
        "id": "a08df5b366dce19d",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 7",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1010,
        "y": 2520,
        "wires": [
            [
                "9a5235a3a4d451b4",
                "8956a2c43d58c30f"
            ]
        ]
    },
    {
        "id": "174543977f90537c",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 880,
        "y": 2680,
        "wires": []
    },
    {
        "id": "31c724ea48eb2996",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 ON (out)",
        "mode": "link",
        "links": [
            "2cfc7d509b8f9893"
        ],
        "x": 805,
        "y": 2520,
        "wires": []
    },
    {
        "id": "ce1d2bd511c009b5",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 63",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 2560,
        "wires": [
            [
                "486096e5f3f31dbd",
                "335e972a5cc60100"
            ]
        ]
    },
    {
        "id": "54b1c9b0014eb45b",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 64",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1460,
        "y": 2600,
        "wires": [
            [
                "6121317eba431611",
                "e4310a557d37747c"
            ]
        ]
    },
    {
        "id": "ce99be0f7d5eb9a8",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 5 battery",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 600,
        "y": 2740,
        "wires": []
    },
    {
        "id": "493ca47c44d5d07c",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 5 signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 600,
        "y": 2780,
        "wires": []
    },
    {
        "id": "ca25fa29fa2c8404",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 5 voltage",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 610,
        "y": 2820,
        "wires": []
    },
    {
        "id": "4330b1a8e4be5b7f",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN2 ON (out)",
        "mode": "link",
        "links": [
            "52626da6b223cb75"
        ],
        "x": 1135,
        "y": 2140,
        "wires": []
    },
    {
        "id": "94a76c511ac50a2f",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer1 OFF (out)",
        "mode": "link",
        "links": [
            "331b1b8a3c97505e"
        ],
        "x": 1515,
        "y": 2100,
        "wires": []
    },
    {
        "id": "dd5ab33f89eb5aa6",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 OFF (out)",
        "mode": "link",
        "links": [
            "df0577f7ef687c3c"
        ],
        "x": 1515,
        "y": 2160,
        "wires": []
    },
    {
        "id": "177d0beaa5a9a666",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 OFF (out)",
        "mode": "link",
        "links": [
            "4072939ef73e2ee3"
        ],
        "x": 1515,
        "y": 2240,
        "wires": []
    },
    {
        "id": "492ec3e765f6b3c5",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 OFF (out)",
        "mode": "link",
        "links": [
            "faa2028df69ee364"
        ],
        "x": 1515,
        "y": 2280,
        "wires": []
    },
    {
        "id": "633ae7bcec4e755c",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 OFF (out)",
        "mode": "link",
        "links": [
            "bf10a16434ce0bc1"
        ],
        "x": 1515,
        "y": 2380,
        "wires": []
    },
    {
        "id": "6259d813b7b06179",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1500,
        "y": 2660,
        "wires": []
    },
    {
        "id": "cd051792dad59468",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 OFF (out)",
        "mode": "link",
        "links": [
            "3b3b1d624154d622"
        ],
        "x": 1515,
        "y": 2420,
        "wires": []
    },
    {
        "id": "46f905affa9743b9",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1500,
        "y": 2700,
        "wires": []
    },
    {
        "id": "8931e9346b448de1",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 OFF (out)",
        "mode": "link",
        "links": [
            "5cb6468b4879e488"
        ],
        "x": 1515,
        "y": 2520,
        "wires": []
    },
    {
        "id": "c1f0d83e64e37257",
        "type": "rbe",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 870,
        "y": 2760,
        "wires": [
            [
                "935fe2d19a791235"
            ]
        ]
    },
    {
        "id": "ea4cbe11bfccc56c",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN1 ON (out)",
        "mode": "link",
        "links": [
            "39c1529f93fc90b0"
        ],
        "x": 1135,
        "y": 2100,
        "wires": []
    },
    {
        "id": "17d84c0b0e166526",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 2 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 2320,
        "wires": []
    },
    {
        "id": "6c436eaa7b749a53",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 2320,
        "wires": []
    },
    {
        "id": "0f1de47298414821",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN4 ON (out)",
        "mode": "link",
        "links": [
            "65ccac48228b17ec"
        ],
        "x": 1125,
        "y": 2280,
        "wires": []
    },
    {
        "id": "1182891cc96acc85",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN3 ON (out)",
        "mode": "link",
        "links": [
            "4805357877aa4786"
        ],
        "x": 1125,
        "y": 2240,
        "wires": []
    },
    {
        "id": "2c1c9cc887bf2177",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN5 ON (out)",
        "mode": "link",
        "links": [
            "c93b293f6e2ce36e"
        ],
        "x": 1125,
        "y": 2380,
        "wires": []
    },
    {
        "id": "41c431061280f3d1",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 2640,
        "wires": []
    },
    {
        "id": "1aa488e447743e57",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN6 ON (out)",
        "mode": "link",
        "links": [
            "136c399c1b5dff69"
        ],
        "x": 1125,
        "y": 2420,
        "wires": []
    },
    {
        "id": "da8f2b6a8360716d",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 3 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 2460,
        "wires": []
    },
    {
        "id": "2b9bce16dcdb4fc4",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 2460,
        "wires": []
    },
    {
        "id": "9a5235a3a4d451b4",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1180,
        "y": 2680,
        "wires": []
    },
    {
        "id": "8956a2c43d58c30f",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN7 ON (out)",
        "mode": "link",
        "links": [
            "fc2dcb260e77a4f5"
        ],
        "x": 1125,
        "y": 2520,
        "wires": []
    },
    {
        "id": "486096e5f3f31dbd",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 4 double (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 2560,
        "wires": []
    },
    {
        "id": "335e972a5cc60100",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 2560,
        "wires": []
    },
    {
        "id": "6121317eba431611",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter4 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 1575,
        "y": 2600,
        "wires": []
    },
    {
        "id": "e4310a557d37747c",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1720,
        "y": 2620,
        "wires": []
    },
    {
        "id": "935fe2d19a791235",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [
            "6abfa55e2dbc3646"
        ],
        "x": 965,
        "y": 2760,
        "wires": []
    },
    {
        "id": "2f469c253442178b",
        "type": "zigbee2mqtt-in",
        "z": "f3b2cd6b33cf87c5",
        "name": "4-Schalter",
        "server": "6c8b07583ed8424a",
        "friendly_name": "0xa4c13860cd7bf4d3 (TS0044)",
        "device_id": "0xa4c13860cd7bf4d3",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 1900,
        "y": 720,
        "wires": [
            [
                "6651d23da6c7ad8c",
                "bfd1514778dafaa6",
                "18b00427d4c8c14a",
                "14905cfe264697ce",
                "ee5063943dab60aa",
                "4d73bfd714bddead",
                "3592c4f57750b251",
                "f5a6ac752623214a",
                "042ffb86309d4dcb",
                "8b76eff927ecd18d",
                "10c35b5772dd4b4f",
                "d6f916ecd0dbbd36",
                "3664e4092afd0f71",
                "b7582b9e94094db0",
                "c6caa0705517f354",
                "d92f1f7e8b2374b6",
                "bfe9aed529cd87b5",
                "c85ee3323c6bf26a"
            ]
        ]
    },
    {
        "id": "6651d23da6c7ad8c",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2110,
        "y": 720,
        "wires": []
    },
    {
        "id": "bfd1514778dafaa6",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2350,
        "y": 480,
        "wires": [
            [
                "5246994c5258469f",
                "66e8bf82b0a1fb0b"
            ]
        ]
    },
    {
        "id": "18b00427d4c8c14a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1 lang",
        "func": "if (msg.payload.action ==\"1_hold\"){\nflow.set(\"ZigbeeDimmerstart\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2340,
        "y": 520,
        "wires": [
            [
                "20ad303b6b231377",
                "384689b3ac9c2618",
                "e1405d481b1e9e8c",
                "6e3e8d0ff41fb6c9",
                "1baab92f7edeb22b",
                "004a49dd8b620ef9",
                "daca5320e7271d22"
            ]
        ]
    },
    {
        "id": "14905cfe264697ce",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 2330,
        "y": 1000,
        "wires": [
            [
                "a9a5e1bc6307d7e4"
            ]
        ]
    },
    {
        "id": "ee5063943dab60aa",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 2330,
        "y": 1040,
        "wires": [
            []
        ]
    },
    {
        "id": "4d73bfd714bddead",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 2350,
        "y": 440,
        "wires": [
            [
                "c6251e55608e5ff2",
                "b6d6a71fa202ccb8"
            ]
        ]
    },
    {
        "id": "3592c4f57750b251",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 lang",
        "func": "if (msg.payload.action ==\"2_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2340,
        "y": 660,
        "wires": [
            [
                "555d199f01745e94"
            ]
        ]
    },
    {
        "id": "f5a6ac752623214a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 doppelt",
        "func": "if (msg.payload.action == \"2_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 4)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2350,
        "y": 620,
        "wires": [
            [
                "03075afc4c73e5b9",
                "bd31e17e819bfc44"
            ]
        ]
    },
    {
        "id": "042ffb86309d4dcb",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 einfach",
        "func": "if (msg.payload.action == \"2_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 3)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2350,
        "y": 580,
        "wires": [
            [
                "91214d141762057b",
                "e9d17415158f48c5"
            ]
        ]
    },
    {
        "id": "8b76eff927ecd18d",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 einfach",
        "func": "if (msg.payload.action == \"3_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 5)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2350,
        "y": 720,
        "wires": [
            [
                "1b065abf55f388bf",
                "3e5aab8da56ce270"
            ]
        ]
    },
    {
        "id": "10c35b5772dd4b4f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 doppelt",
        "func": "if (msg.payload.action == \"3_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 6)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2350,
        "y": 760,
        "wires": [
            [
                "d5c1a0d86ed6ae93",
                "527d601c359be369",
                "f61d3701088d5fa9"
            ]
        ]
    },
    {
        "id": "d6f916ecd0dbbd36",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 lang",
        "func": "if (msg.payload.action ==\"3_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2340,
        "y": 800,
        "wires": [
            [
                "2d45921efee41386"
            ]
        ]
    },
    {
        "id": "3664e4092afd0f71",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 einfach",
        "func": "if (msg.payload.action == \"4_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 7)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2350,
        "y": 860,
        "wires": [
            [
                "b1cfaa36aab1ab37",
                "60344c6741190e04",
                "a8c254e4613d3528"
            ]
        ]
    },
    {
        "id": "b7582b9e94094db0",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 doppelt",
        "func": "if (msg.payload.action == \"4_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 8)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2350,
        "y": 900,
        "wires": [
            [
                "2f2024e5e02a7b8a"
            ]
        ]
    },
    {
        "id": "c6caa0705517f354",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 lang",
        "func": "if (msg.payload.action ==\"4_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2340,
        "y": 940,
        "wires": [
            [
                "01b3aded9cf9a66a"
            ]
        ]
    },
    {
        "id": "d92f1f7e8b2374b6",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2070,
        "y": 1080,
        "wires": [
            [
                "ab1b3226d9286fc6"
            ]
        ]
    },
    {
        "id": "bfe9aed529cd87b5",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2080,
        "y": 1120,
        "wires": [
            [
                "67a3ed48e05ba336"
            ]
        ]
    },
    {
        "id": "c85ee3323c6bf26a",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2080,
        "y": 1160,
        "wires": [
            [
                "ebd821d0509803f6"
            ]
        ]
    },
    {
        "id": "5246994c5258469f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2690,
        "y": 480,
        "wires": [
            [
                "cb38103af1e642dc"
            ]
        ]
    },
    {
        "id": "66e8bf82b0a1fb0b",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 ON (out)",
        "mode": "link",
        "links": [
            "bd352c7d73fd8056"
        ],
        "x": 2485,
        "y": 480,
        "wires": []
    },
    {
        "id": "20ad303b6b231377",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 1){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3010,
        "y": 440,
        "wires": [
            [
                "34d9c919a5242aff"
            ]
        ]
    },
    {
        "id": "384689b3ac9c2618",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.2",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 2){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3010,
        "y": 500,
        "wires": [
            [
                "4a72249266b133e6"
            ]
        ]
    },
    {
        "id": "e1405d481b1e9e8c",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 3){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3010,
        "y": 580,
        "wires": [
            [
                "cd6a48d11fef4729"
            ]
        ]
    },
    {
        "id": "6e3e8d0ff41fb6c9",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 4){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3010,
        "y": 620,
        "wires": [
            [
                "750e8a0a67776554"
            ]
        ]
    },
    {
        "id": "1baab92f7edeb22b",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 5){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3010,
        "y": 720,
        "wires": [
            [
                "fa22bc529cf148cc"
            ]
        ]
    },
    {
        "id": "004a49dd8b620ef9",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 6){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3010,
        "y": 760,
        "wires": [
            [
                "030db7707fa215f2",
                "590fee13f08e2747"
            ]
        ]
    },
    {
        "id": "daca5320e7271d22",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 4.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 7){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3010,
        "y": 860,
        "wires": [
            [
                "6c9fb80af52bbdf8",
                "49744e909cc8547f"
            ]
        ]
    },
    {
        "id": "a9a5e1bc6307d7e4",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 3 <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 3 OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2590,
        "y": 1060,
        "wires": [
            [
                "f13995ba50be8bbd"
            ]
        ]
    },
    {
        "id": "c6251e55608e5ff2",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2690,
        "y": 440,
        "wires": [
            [
                "1c38d36e6716dbd1"
            ]
        ]
    },
    {
        "id": "b6d6a71fa202ccb8",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "dimmen1 ON (out)",
        "mode": "link",
        "links": [
            "c2a29985d750486a"
        ],
        "x": 2485,
        "y": 440,
        "wires": []
    },
    {
        "id": "555d199f01745e94",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 65",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3140,
        "y": 660,
        "wires": [
            [
                "57362e5698d51616",
                "d8e465cecb0606a6"
            ]
        ]
    },
    {
        "id": "03075afc4c73e5b9",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2690,
        "y": 620,
        "wires": [
            [
                "abfea106702e35ed"
            ]
        ]
    },
    {
        "id": "bd31e17e819bfc44",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 ON (out)",
        "mode": "link",
        "links": [
            "2f5d555b2446cd0b"
        ],
        "x": 2485,
        "y": 620,
        "wires": []
    },
    {
        "id": "91214d141762057b",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2690,
        "y": 580,
        "wires": [
            [
                "5bceaf642a28b137"
            ]
        ]
    },
    {
        "id": "e9d17415158f48c5",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 ON (out)",
        "mode": "link",
        "links": [
            "599ef69f6a8974e3"
        ],
        "x": 2485,
        "y": 580,
        "wires": []
    },
    {
        "id": "1b065abf55f388bf",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 5",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2690,
        "y": 720,
        "wires": [
            [
                "0c554fb3079a3c58"
            ]
        ]
    },
    {
        "id": "3e5aab8da56ce270",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 ON (out)",
        "mode": "link",
        "links": [
            "0845fe8ae07cff85"
        ],
        "x": 2485,
        "y": 720,
        "wires": []
    },
    {
        "id": "d5c1a0d86ed6ae93",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 6",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2690,
        "y": 760,
        "wires": [
            [
                "659ebabf44dce6c1",
                "3fd37953ce3273bd"
            ]
        ]
    },
    {
        "id": "527d601c359be369",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2560,
        "y": 980,
        "wires": []
    },
    {
        "id": "f61d3701088d5fa9",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 ON (out)",
        "mode": "link",
        "links": [
            "10ce5ec47062ac3a"
        ],
        "x": 2485,
        "y": 760,
        "wires": []
    },
    {
        "id": "2d45921efee41386",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 66",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3140,
        "y": 800,
        "wires": [
            [
                "cce74eec1210a309",
                "533f28e412368977"
            ]
        ]
    },
    {
        "id": "b1cfaa36aab1ab37",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 7",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2690,
        "y": 860,
        "wires": [
            [
                "b34e95a92803076f",
                "a2ad49b35173c02d"
            ]
        ]
    },
    {
        "id": "60344c6741190e04",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2560,
        "y": 1020,
        "wires": []
    },
    {
        "id": "a8c254e4613d3528",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 ON (out)",
        "mode": "link",
        "links": [
            "2cfc7d509b8f9893"
        ],
        "x": 2485,
        "y": 860,
        "wires": []
    },
    {
        "id": "2f2024e5e02a7b8a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 67",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3140,
        "y": 900,
        "wires": [
            [
                "efc5df306962c628",
                "416a84b7de5dcf6c"
            ]
        ]
    },
    {
        "id": "01b3aded9cf9a66a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 68",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3140,
        "y": 940,
        "wires": [
            [
                "956abef14a5269f4",
                "69723b6d58e20f3a"
            ]
        ]
    },
    {
        "id": "ab1b3226d9286fc6",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 3 battery",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 2280,
        "y": 1080,
        "wires": []
    },
    {
        "id": "67a3ed48e05ba336",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 3 signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 2280,
        "y": 1120,
        "wires": []
    },
    {
        "id": "ebd821d0509803f6",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 3 voltage",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 2290,
        "y": 1160,
        "wires": []
    },
    {
        "id": "cb38103af1e642dc",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN2 ON (out)",
        "mode": "link",
        "links": [
            "52626da6b223cb75"
        ],
        "x": 2815,
        "y": 480,
        "wires": []
    },
    {
        "id": "34d9c919a5242aff",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer1 OFF (out)",
        "mode": "link",
        "links": [
            "331b1b8a3c97505e"
        ],
        "x": 3195,
        "y": 440,
        "wires": []
    },
    {
        "id": "4a72249266b133e6",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 OFF (out)",
        "mode": "link",
        "links": [
            "df0577f7ef687c3c"
        ],
        "x": 3195,
        "y": 500,
        "wires": []
    },
    {
        "id": "cd6a48d11fef4729",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 OFF (out)",
        "mode": "link",
        "links": [
            "4072939ef73e2ee3"
        ],
        "x": 3195,
        "y": 580,
        "wires": []
    },
    {
        "id": "750e8a0a67776554",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 OFF (out)",
        "mode": "link",
        "links": [
            "faa2028df69ee364"
        ],
        "x": 3195,
        "y": 620,
        "wires": []
    },
    {
        "id": "fa22bc529cf148cc",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 OFF (out)",
        "mode": "link",
        "links": [
            "bf10a16434ce0bc1"
        ],
        "x": 3195,
        "y": 720,
        "wires": []
    },
    {
        "id": "030db7707fa215f2",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3180,
        "y": 1000,
        "wires": []
    },
    {
        "id": "590fee13f08e2747",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 OFF (out)",
        "mode": "link",
        "links": [
            "3b3b1d624154d622"
        ],
        "x": 3195,
        "y": 760,
        "wires": []
    },
    {
        "id": "6c9fb80af52bbdf8",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3180,
        "y": 1040,
        "wires": []
    },
    {
        "id": "49744e909cc8547f",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 OFF (out)",
        "mode": "link",
        "links": [
            "5cb6468b4879e488"
        ],
        "x": 3195,
        "y": 860,
        "wires": []
    },
    {
        "id": "f13995ba50be8bbd",
        "type": "rbe",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 2550,
        "y": 1100,
        "wires": [
            [
                "f603654dadeffd72"
            ]
        ]
    },
    {
        "id": "1c38d36e6716dbd1",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN1 ON (out)",
        "mode": "link",
        "links": [
            "39c1529f93fc90b0"
        ],
        "x": 2815,
        "y": 440,
        "wires": []
    },
    {
        "id": "57362e5698d51616",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 2 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 3255,
        "y": 660,
        "wires": []
    },
    {
        "id": "d8e465cecb0606a6",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3400,
        "y": 660,
        "wires": []
    },
    {
        "id": "abfea106702e35ed",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN4 ON (out)",
        "mode": "link",
        "links": [
            "65ccac48228b17ec"
        ],
        "x": 2805,
        "y": 620,
        "wires": []
    },
    {
        "id": "5bceaf642a28b137",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN3 ON (out)",
        "mode": "link",
        "links": [
            "4805357877aa4786"
        ],
        "x": 2805,
        "y": 580,
        "wires": []
    },
    {
        "id": "0c554fb3079a3c58",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN5 ON (out)",
        "mode": "link",
        "links": [
            "c93b293f6e2ce36e"
        ],
        "x": 2805,
        "y": 720,
        "wires": []
    },
    {
        "id": "659ebabf44dce6c1",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2860,
        "y": 980,
        "wires": []
    },
    {
        "id": "3fd37953ce3273bd",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN6 ON (out)",
        "mode": "link",
        "links": [
            "136c399c1b5dff69"
        ],
        "x": 2805,
        "y": 760,
        "wires": []
    },
    {
        "id": "cce74eec1210a309",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 3 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 3255,
        "y": 800,
        "wires": []
    },
    {
        "id": "533f28e412368977",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3400,
        "y": 800,
        "wires": []
    },
    {
        "id": "b34e95a92803076f",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2860,
        "y": 1020,
        "wires": []
    },
    {
        "id": "a2ad49b35173c02d",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN7 ON (out)",
        "mode": "link",
        "links": [
            "fc2dcb260e77a4f5"
        ],
        "x": 2805,
        "y": 860,
        "wires": []
    },
    {
        "id": "efc5df306962c628",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 4 double (out)",
        "mode": "link",
        "links": [],
        "x": 3255,
        "y": 900,
        "wires": []
    },
    {
        "id": "416a84b7de5dcf6c",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3400,
        "y": 900,
        "wires": []
    },
    {
        "id": "956abef14a5269f4",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter4 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 3255,
        "y": 940,
        "wires": []
    },
    {
        "id": "69723b6d58e20f3a",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3400,
        "y": 960,
        "wires": []
    },
    {
        "id": "f603654dadeffd72",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [
            "6abfa55e2dbc3646"
        ],
        "x": 2645,
        "y": 1100,
        "wires": []
    },
    {
        "id": "dec5c0aa91e169fd",
        "type": "zigbee2mqtt-in",
        "z": "f3b2cd6b33cf87c5",
        "name": "4-Schalter",
        "server": "6c8b07583ed8424a",
        "friendly_name": "0xa4c1386c8c534a6a (TS0044)",
        "device_id": "0xa4c1386c8c534a6a",
        "state": "0",
        "outputAtStartup": true,
        "filterChanges": false,
        "enableMultiple": false,
        "x": 1983.4833984375,
        "y": 1564.0833740234375,
        "wires": [
            [
                "6ad323db0868265a",
                "4cb063a6136ea4b4",
                "ddac6021d9ee9e29",
                "6f012efb338eabbb",
                "86bb7e2e3fd62001",
                "c39066322a389b50",
                "948aabf457618a43",
                "17f087d057ce1895",
                "b4ec81155fcb8ee0",
                "1c1d64ee65dfe5a1",
                "837c606152398abc",
                "6d0918eb80f7b275",
                "ee69787c1c12998a",
                "2533862752064503",
                "aa9e0c51f5ba0cc3",
                "b580d4bba984d603",
                "ececc126088d9f18",
                "5d570719ce79864e"
            ]
        ]
    },
    {
        "id": "6ad323db0868265a",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2193.4833984375,
        "y": 1564.0833740234375,
        "wires": []
    },
    {
        "id": "4cb063a6136ea4b4",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2463.4833984375,
        "y": 1324.0833740234375,
        "wires": [
            [
                "139d99cdb9d4bac6",
                "6b568160fc18ed0d"
            ]
        ]
    },
    {
        "id": "ddac6021d9ee9e29",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1 lang",
        "func": "if (msg.payload.action ==\"1_hold\"){\nflow.set(\"ZigbeeDimmerstart\", true)\n    msg.payload = \"OFF\"\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2443.4833984375,
        "y": 1364.0833740234375,
        "wires": [
            [
                "220c490aedb46495",
                "a14bb0f5c9f09f19",
                "ecaad7680bcc2d36",
                "c339dde2c0f2caf8",
                "e8e6dc3c702968c8",
                "57ccd72273ecd4f0",
                "1e6f61a828d246b5"
            ]
        ]
    },
    {
        "id": "6f012efb338eabbb",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 2433.4833984375,
        "y": 1844.0833740234375,
        "wires": [
            [
                "5f6ccef26b64e173"
            ]
        ]
    },
    {
        "id": "86bb7e2e3fd62001",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 2433.4833984375,
        "y": 1884.0833740234375,
        "wires": [
            []
        ]
    },
    {
        "id": "c39066322a389b50",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "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": 2463.4833984375,
        "y": 1284.0833740234375,
        "wires": [
            [
                "7c53ac0cea5a0977",
                "a17fda6ff5e60c8a"
            ]
        ]
    },
    {
        "id": "948aabf457618a43",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 lang",
        "func": "if (msg.payload.action ==\"2_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2443.4833984375,
        "y": 1504.0833740234375,
        "wires": [
            [
                "a11d779fb68af979"
            ]
        ]
    },
    {
        "id": "17f087d057ce1895",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 doppelt",
        "func": "if (msg.payload.action == \"2_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 4)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2463.4833984375,
        "y": 1464.0833740234375,
        "wires": [
            [
                "ad66ada46b4d9785",
                "452892ad8ab5a05f"
            ]
        ]
    },
    {
        "id": "b4ec81155fcb8ee0",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2 einfach",
        "func": "if (msg.payload.action == \"2_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 3)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2463.4833984375,
        "y": 1424.0833740234375,
        "wires": [
            [
                "34c846eceb38eb2b",
                "0cf8598da34f0dd5"
            ]
        ]
    },
    {
        "id": "1c1d64ee65dfe5a1",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 einfach",
        "func": "if (msg.payload.action == \"3_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 5)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2463.4833984375,
        "y": 1564.0833740234375,
        "wires": [
            [
                "5a85da3c7323c171",
                "8f0c6fc64da1d7aa"
            ]
        ]
    },
    {
        "id": "837c606152398abc",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 doppelt",
        "func": "if (msg.payload.action == \"3_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 6)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2463.4833984375,
        "y": 1604.0833740234375,
        "wires": [
            [
                "f4ef9f9bb2f19589",
                "69f9beda6e94916b",
                "e866444a32c15a5b"
            ]
        ]
    },
    {
        "id": "6d0918eb80f7b275",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3 lang",
        "func": "if (msg.payload.action ==\"3_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2443.4833984375,
        "y": 1644.0833740234375,
        "wires": [
            [
                "0a12474bce58fd83"
            ]
        ]
    },
    {
        "id": "ee69787c1c12998a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 einfach",
        "func": "if (msg.payload.action == \"4_single\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 7)\n    }\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2463.4833984375,
        "y": 1704.0833740234375,
        "wires": [
            [
                "29d97caa371ba78b",
                "39944c8bf57c983f",
                "ce8c30f5d72c1821"
            ]
        ]
    },
    {
        "id": "2533862752064503",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 doppelt",
        "func": "if (msg.payload.action == \"4_double\") {\n    msg.payload = \"ON\"\n    flow.set(\"ZigbeeDimmer1\", 8)\n}\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2463.4833984375,
        "y": 1744.0833740234375,
        "wires": [
            [
                "ea12d59e51b9652f"
            ]
        ]
    },
    {
        "id": "aa9e0c51f5ba0cc3",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4 lang",
        "func": "if (msg.payload.action ==\"4_hold\")\nmsg.payload = \"OFF\"\nelse { return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2443.4833984375,
        "y": 1784.0833740234375,
        "wires": [
            [
                "a4af45e3fde1438a"
            ]
        ]
    },
    {
        "id": "b580d4bba984d603",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "battery",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.battery",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2153.4833984375,
        "y": 1924.0833740234375,
        "wires": [
            [
                "a6c752043d23a69f"
            ]
        ]
    },
    {
        "id": "ececc126088d9f18",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "linkquality",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.linkquality",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2173.4833984375,
        "y": 1964.0833740234375,
        "wires": [
            [
                "cdaf227dd43eb132"
            ]
        ]
    },
    {
        "id": "5d570719ce79864e",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "voltage",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.voltage",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2163.4833984375,
        "y": 2004.0833740234375,
        "wires": [
            [
                "17bb02505527a08b"
            ]
        ]
    },
    {
        "id": "139d99cdb9d4bac6",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 2",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2783.4833984375,
        "y": 1324.0833740234375,
        "wires": [
            [
                "21cf0439184e2e29"
            ]
        ]
    },
    {
        "id": "6b568160fc18ed0d",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 ON (out)",
        "mode": "link",
        "links": [
            "bd352c7d73fd8056"
        ],
        "x": 2615,
        "y": 1320,
        "wires": []
    },
    {
        "id": "220c490aedb46495",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 1){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3123.4833984375,
        "y": 1284.0833740234375,
        "wires": [
            [
                "a80e2e0640ea4bc1"
            ]
        ]
    },
    {
        "id": "a14bb0f5c9f09f19",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 1.2",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 2){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3123.4833984375,
        "y": 1344.0833740234375,
        "wires": [
            [
                "e1a0ac23c853774e"
            ]
        ]
    },
    {
        "id": "ecaad7680bcc2d36",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.1",
        "func": "var dimm = flow.get (\"ZigbeeDimmer1\")\nif (dimm == 3){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3123.4833984375,
        "y": 1424.0833740234375,
        "wires": [
            [
                "e70d235e4758b513"
            ]
        ]
    },
    {
        "id": "c339dde2c0f2caf8",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 2.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 4){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3123.4833984375,
        "y": 1464.0833740234375,
        "wires": [
            [
                "92b81905298b429e"
            ]
        ]
    },
    {
        "id": "e8e6dc3c702968c8",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 5){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3123.4833984375,
        "y": 1564.0833740234375,
        "wires": [
            [
                "8a315ae6c8da3c90"
            ]
        ]
    },
    {
        "id": "57ccd72273ecd4f0",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 3.2",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 6){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3123.4833984375,
        "y": 1604.0833740234375,
        "wires": [
            [
                "42491ef50851d24c",
                "e0ad8105547f47f7"
            ]
        ]
    },
    {
        "id": "1e6f61a828d246b5",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer Start 4.1",
        "func": "var dimm = flow.get(\"ZigbeeDimmer1\")\nif (dimm == 7){\nmsg.payload = \"OFF\"\n}\nelse\n{ return null }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3123.4833984375,
        "y": 1704.0833740234375,
        "wires": [
            [
                "c1fdbcc68ae6f77b",
                "909a576465fa1124"
            ]
        ]
    },
    {
        "id": "5f6ccef26b64e173",
        "type": "change",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 4 <30%",
                "tot": "str"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "bool",
                "to": "Batterie ZigbeeSchalter 4 OK",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2703.4833984375,
        "y": 1904.0833740234375,
        "wires": [
            [
                "30d7d29cf72393e7"
            ]
        ]
    },
    {
        "id": "7c53ac0cea5a0977",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 1",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2783.4833984375,
        "y": 1284.0833740234375,
        "wires": [
            [
                "467784fe0cec4414"
            ]
        ]
    },
    {
        "id": "a17fda6ff5e60c8a",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "dimmen1 ON (out)",
        "mode": "link",
        "links": [
            "c2a29985d750486a"
        ],
        "x": 2615,
        "y": 1280,
        "wires": []
    },
    {
        "id": "a11d779fb68af979",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 69",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3233.4833984375,
        "y": 1504.0833740234375,
        "wires": [
            [
                "9bb5dfe346f98499",
                "cea5147de88353e8"
            ]
        ]
    },
    {
        "id": "ad66ada46b4d9785",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 4",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2783.4833984375,
        "y": 1464.0833740234375,
        "wires": [
            [
                "33c3bf070892b0df"
            ]
        ]
    },
    {
        "id": "452892ad8ab5a05f",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 ON (out)",
        "mode": "link",
        "links": [
            "2f5d555b2446cd0b"
        ],
        "x": 2615,
        "y": 1460,
        "wires": []
    },
    {
        "id": "34c846eceb38eb2b",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 3",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2783.4833984375,
        "y": 1424.0833740234375,
        "wires": [
            [
                "b6ba444546fa485c"
            ]
        ]
    },
    {
        "id": "0cf8598da34f0dd5",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 ON (out)",
        "mode": "link",
        "links": [
            "599ef69f6a8974e3"
        ],
        "x": 2615,
        "y": 1420,
        "wires": []
    },
    {
        "id": "5a85da3c7323c171",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 5",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm ==true){\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\nmsg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2783.4833984375,
        "y": 1564.0833740234375,
        "wires": [
            [
                "b6208e1c72692e76"
            ]
        ]
    },
    {
        "id": "8f0c6fc64da1d7aa",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 ON (out)",
        "mode": "link",
        "links": [
            "0845fe8ae07cff85"
        ],
        "x": 2615,
        "y": 1560,
        "wires": []
    },
    {
        "id": "f4ef9f9bb2f19589",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 6",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2783.4833984375,
        "y": 1604.0833740234375,
        "wires": [
            [
                "920a8fa870b3a639",
                "f01e10871b4dec77"
            ]
        ]
    },
    {
        "id": "69f9beda6e94916b",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2643.4833984375,
        "y": 1824.0833740234375,
        "wires": []
    },
    {
        "id": "e866444a32c15a5b",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 ON (out)",
        "mode": "link",
        "links": [
            "10ce5ec47062ac3a"
        ],
        "x": 2615,
        "y": 1600,
        "wires": []
    },
    {
        "id": "0a12474bce58fd83",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 70",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3233.4833984375,
        "y": 1644.0833740234375,
        "wires": [
            [
                "29f2541f09dc0074",
                "991163a158e424c0"
            ]
        ]
    },
    {
        "id": "29d97caa371ba78b",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter 7",
        "func": "var check = msg.payload\nvar dimm = flow.get(\"ZigbeeDimmerstart\")\nif (dimm == true) {\n    flow.set(\"ZigbeeDimmerstart\", false)\n    flow.set(\"ZigbeeDimmer1\", 0)\n    { return null }\n}\n\nelse\n    msg.payload = check\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2783.4833984375,
        "y": 1704.0833740234375,
        "wires": [
            [
                "468e50388f8e1539",
                "7e58f49734105141"
            ]
        ]
    },
    {
        "id": "39944c8bf57c983f",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2643.4833984375,
        "y": 1864.0833740234375,
        "wires": []
    },
    {
        "id": "ce8c30f5d72c1821",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 ON (out)",
        "mode": "link",
        "links": [
            "2cfc7d509b8f9893"
        ],
        "x": 2615,
        "y": 1700,
        "wires": []
    },
    {
        "id": "ea12d59e51b9652f",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 71",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3233.4833984375,
        "y": 1744.0833740234375,
        "wires": [
            [
                "4455bf1df9967d09",
                "62d1f198888bb93e"
            ]
        ]
    },
    {
        "id": "a4af45e3fde1438a",
        "type": "function",
        "z": "f3b2cd6b33cf87c5",
        "name": "function 72",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 3233.4833984375,
        "y": 1784.0833740234375,
        "wires": [
            [
                "c59d572331fb7ee1",
                "69b4473ef3c13b05"
            ]
        ]
    },
    {
        "id": "a6c752043d23a69f",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 4 battery",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 2413.4833984375,
        "y": 1924.0833740234375,
        "wires": []
    },
    {
        "id": "cdaf227dd43eb132",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 4 signal",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "300",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 2413.4833984375,
        "y": 1964.0833740234375,
        "wires": []
    },
    {
        "id": "17bb02505527a08b",
        "type": "ui_gauge",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "group": "714ae9cbe1a869eb",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "TuYa Schalter 4 voltage",
        "label": "V",
        "format": "{{value}}",
        "min": 0,
        "max": "3000",
        "colors": [
            "#ff0000",
            "#e6e600",
            "#80ff00"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 2423.4833984375,
        "y": 2004.0833740234375,
        "wires": []
    },
    {
        "id": "21cf0439184e2e29",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN2 ON (out)",
        "mode": "link",
        "links": [
            "52626da6b223cb75"
        ],
        "x": 2915,
        "y": 1320,
        "wires": []
    },
    {
        "id": "a80e2e0640ea4bc1",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer1 OFF (out)",
        "mode": "link",
        "links": [
            "331b1b8a3c97505e"
        ],
        "x": 3255,
        "y": 1280,
        "wires": []
    },
    {
        "id": "e1a0ac23c853774e",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer2 OFF (out)",
        "mode": "link",
        "links": [
            "df0577f7ef687c3c"
        ],
        "x": 3255,
        "y": 1340,
        "wires": []
    },
    {
        "id": "e70d235e4758b513",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer3 OFF (out)",
        "mode": "link",
        "links": [
            "4072939ef73e2ee3"
        ],
        "x": 3255,
        "y": 1420,
        "wires": []
    },
    {
        "id": "92b81905298b429e",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer4 OFF (out)",
        "mode": "link",
        "links": [
            "faa2028df69ee364"
        ],
        "x": 3255,
        "y": 1460,
        "wires": []
    },
    {
        "id": "8a315ae6c8da3c90",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer5 OFF (out)",
        "mode": "link",
        "links": [
            "bf10a16434ce0bc1"
        ],
        "x": 3255,
        "y": 1560,
        "wires": []
    },
    {
        "id": "42491ef50851d24c",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3263.4833984375,
        "y": 1844.0833740234375,
        "wires": []
    },
    {
        "id": "e0ad8105547f47f7",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer6 OFF (out)",
        "mode": "link",
        "links": [
            "3b3b1d624154d622"
        ],
        "x": 3255,
        "y": 1600,
        "wires": []
    },
    {
        "id": "c1fdbcc68ae6f77b",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3263.4833984375,
        "y": 1884.0833740234375,
        "wires": []
    },
    {
        "id": "909a576465fa1124",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Dimmer7 OFF (out)",
        "mode": "link",
        "links": [
            "5cb6468b4879e488"
        ],
        "x": 3265,
        "y": 1700,
        "wires": []
    },
    {
        "id": "30d7d29cf72393e7",
        "type": "rbe",
        "z": "f3b2cd6b33cf87c5",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 2623.4833984375,
        "y": 1944.0833740234375,
        "wires": [
            [
                "2d414eb6cfe62a41"
            ]
        ]
    },
    {
        "id": "467784fe0cec4414",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN1 ON (out)",
        "mode": "link",
        "links": [
            "39c1529f93fc90b0"
        ],
        "x": 2915,
        "y": 1280,
        "wires": []
    },
    {
        "id": "9bb5dfe346f98499",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 2 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 3355,
        "y": 1500,
        "wires": []
    },
    {
        "id": "cea5147de88353e8",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3483.4833984375,
        "y": 1504.0833740234375,
        "wires": []
    },
    {
        "id": "33c3bf070892b0df",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN4 ON (out)",
        "mode": "link",
        "links": [
            "65ccac48228b17ec"
        ],
        "x": 2905,
        "y": 1460,
        "wires": []
    },
    {
        "id": "b6ba444546fa485c",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN3 ON (out)",
        "mode": "link",
        "links": [
            "4805357877aa4786"
        ],
        "x": 2905,
        "y": 1420,
        "wires": []
    },
    {
        "id": "b6208e1c72692e76",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN5 ON (out)",
        "mode": "link",
        "links": [
            "c93b293f6e2ce36e"
        ],
        "x": 2905,
        "y": 1560,
        "wires": []
    },
    {
        "id": "920a8fa870b3a639",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2943.4833984375,
        "y": 1824.0833740234375,
        "wires": []
    },
    {
        "id": "f01e10871b4dec77",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN6 ON (out)",
        "mode": "link",
        "links": [
            "136c399c1b5dff69"
        ],
        "x": 2905,
        "y": 1600,
        "wires": []
    },
    {
        "id": "29f2541f09dc0074",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 3 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 3345,
        "y": 1640,
        "wires": []
    },
    {
        "id": "991163a158e424c0",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3483.4833984375,
        "y": 1644.0833740234375,
        "wires": []
    },
    {
        "id": "468e50388f8e1539",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 2943.4833984375,
        "y": 1864.0833740234375,
        "wires": []
    },
    {
        "id": "7e58f49734105141",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "DimmerEIN7 ON (out)",
        "mode": "link",
        "links": [
            "fc2dcb260e77a4f5"
        ],
        "x": 2905,
        "y": 1700,
        "wires": []
    },
    {
        "id": "4455bf1df9967d09",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Taster 4 double (out)",
        "mode": "link",
        "links": [],
        "x": 3345,
        "y": 1740,
        "wires": []
    },
    {
        "id": "62d1f198888bb93e",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3483.4833984375,
        "y": 1744.0833740234375,
        "wires": []
    },
    {
        "id": "c59d572331fb7ee1",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "Schalter4 Lang  (out)",
        "mode": "link",
        "links": [],
        "x": 3355,
        "y": 1780,
        "wires": []
    },
    {
        "id": "69b4473ef3c13b05",
        "type": "debug",
        "z": "f3b2cd6b33cf87c5",
        "name": "Sensor",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "true",
        "targetType": "full",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 3483.4833984375,
        "y": 1804.0833740234375,
        "wires": []
    },
    {
        "id": "2d414eb6cfe62a41",
        "type": "link out",
        "z": "f3b2cd6b33cf87c5",
        "name": "link out zu Telegram",
        "mode": "link",
        "links": [
            "6abfa55e2dbc3646"
        ],
        "x": 2715,
        "y": 1940,
        "wires": []
    },
    {
        "id": "440b87d95b0e9a0f",
        "type": "ui_spacer",
        "z": "f3b2cd6b33cf87c5",
        "name": "spacer",
        "group": "f89e1392760d829e",
        "order": 2,
        "width": 5,
        "height": 1
    },
    {
        "id": "6c8b07583ed8424a",
        "type": "zigbee2mqtt-server",
        "name": "",
        "host": "pekaway.local",
        "mqtt_port": "1883",
        "mqtt_username": "",
        "mqtt_password": "",
        "mqtt_qos": "0",
        "tls": "4230868a2749a2ba",
        "usetls": false,
        "base_topic": "zigbee2mqtt"
    },
    {
        "id": "714ae9cbe1a869eb",
        "type": "ui_group",
        "name": "Status",
        "tab": "3cbd9912c89a0cc7",
        "order": 5,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "f89e1392760d829e",
        "type": "ui_group",
        "name": "NICK",
        "tab": "44c44161193a7be6",
        "order": 1,
        "disp": false,
        "width": 7,
        "collapse": false,
        "className": ""
    },
    {
        "id": "4230868a2749a2ba",
        "type": "tls-config",
        "name": "",
        "cert": "",
        "key": "",
        "ca": "",
        "certname": "",
        "keyname": "",
        "caname": "",
        "servername": "",
        "verifyservercert": false,
        "alpnprotocol": ""
    },
    {
        "id": "3cbd9912c89a0cc7",
        "type": "ui_tab",
        "name": "Zigbee",
        "icon": "fa-stethoscope ",
        "order": 33,
        "disabled": false,
        "hidden": false
    },
    {
        "id": "44c44161193a7be6",
        "type": "ui_tab",
        "name": "Position Sensor",
        "icon": "fa-arrows",
        "order": 6,
        "disabled": false,
        "hidden": false
    }
]