[
   {
       "id": "b8ad42061a6d5f2e",
       "type": "tab",
       "label": "homee Geräteliste",
       "disabled": false,
       "info": "",
       "env": []
   },
   {
       "id": "bc383b50669e8145",
       "type": "junction",
       "z": "b8ad42061a6d5f2e",
       "x": 960,
       "y": 660,
       "wires": [
           [
               "99528e0bbb0f2491",
               "afc0236a6dc34b6c",
               "3baf2b45228f3514",
               "61efee2e1293f2f8",
               "18ed2cb5de54b4e1",
               "8bc0a02357eaa25a",
               "6624873c35b06eae",
               "dfb85691acadb5e8"
           ]
       ]
   },
   {
       "id": "99528e0bbb0f2491",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Alle inaktiven Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload[state = 2]",
               "tot": "jsonata"
           },
           {
               "t": "set",
               "p": "homee.inactive",
               "pt": "flow",
               "to": "payload",
               "tot": "msg"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1140,
       "y": 380,
       "wires": [
           [
               "79c90e3a205144c8",
               "1a49f3e7a72eeb98"
           ]
       ]
   },
   {
       "id": "79c90e3a205144c8",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ? $count(payload) : 0",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1330,
       "y": 380,
       "wires": [
           [
               "6636132bd627fd5a",
               "a5ac3eaebc5a142d"
           ]
       ]
   },
   {
       "id": "6636132bd627fd5a",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl inaktive Geräte",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1620,
       "y": 320,
       "wires": []
   },
   {
       "id": "afc0236a6dc34b6c",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Alle Z-Wave Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload[protocol = 1]",
               "tot": "jsonata"
           },
           {
               "t": "set",
               "p": "payload.nodes",
               "pt": "flow",
               "to": "payload",
               "tot": "msg"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1130,
       "y": 520,
       "wires": [
           [
               "3f5d54fa1161d7c3",
               "fb541319f5065b26"
           ]
       ]
   },
   {
       "id": "3f5d54fa1161d7c3",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Geräte mit Z-Wave",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1370,
       "y": 460,
       "wires": []
   },
   {
       "id": "fb541319f5065b26",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ? $count(payload) : 0",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1330,
       "y": 520,
       "wires": [
           [
               "8b5f07919d5020d8",
               "27bd5b6a0a11f64b"
           ]
       ]
   },
   {
       "id": "8b5f07919d5020d8",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Geräte Z-Wave",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1620,
       "y": 460,
       "wires": []
   },
   {
       "id": "27bd5b6a0a11f64b",
       "type": "ioBroker out",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Z-Wave Geräte",
       "topic": "0_userdata.0.System.homee.ZWave",
       "ack": "true",
       "autoCreate": "true",
       "stateName": "0_userdata.0.System.homee.ZWave",
       "role": "",
       "payloadType": "number",
       "readonly": "false",
       "stateUnit": "",
       "stateMin": "",
       "stateMax": "",
       "x": 1620,
       "y": 520,
       "wires": []
   },
   {
       "id": "3baf2b45228f3514",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Alle ZigBee Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload[protocol = 2]",
               "tot": "jsonata"
           },
           {
               "t": "set",
               "p": "payload.nodes",
               "pt": "flow",
               "to": "payload",
               "tot": "msg"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1130,
       "y": 660,
       "wires": [
           [
               "b0d34d08416e6c10",
               "adb5799593bc282a"
           ]
       ]
   },
   {
       "id": "b0d34d08416e6c10",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Geräte mit ZigBee",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1370,
       "y": 600,
       "wires": []
   },
   {
       "id": "adb5799593bc282a",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ? $count(payload) : 0",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1330,
       "y": 660,
       "wires": [
           [
               "b553c35fe84e7ff1",
               "a722c9c32ead9437"
           ]
       ]
   },
   {
       "id": "b553c35fe84e7ff1",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Geräte ZigBee",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1620,
       "y": 600,
       "wires": []
   },
   {
       "id": "a722c9c32ead9437",
       "type": "ioBroker out",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl ZigBee Geräte",
       "topic": "0_userdata.0.System.homee.ZigBee",
       "ack": "true",
       "autoCreate": "true",
       "stateName": "0_userdata.0.System.homee.ZigBee",
       "role": "",
       "payloadType": "number",
       "readonly": "false",
       "stateUnit": "",
       "stateMin": "",
       "stateMax": "",
       "x": 1620,
       "y": 660,
       "wires": []
   },
   {
       "id": "306e283de06793a5",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "",
       "rules": [
           {
               "t": "move",
               "p": "payload",
               "pt": "msg",
               "to": "device",
               "tot": "msg"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 380,
       "y": 1080,
       "wires": [
           [
               "3fcd14dd3eda98a3"
           ]
       ]
   },
   {
       "id": "3fcd14dd3eda98a3",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "hole alle Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "{}",
               "tot": "json"
           },
           {
               "t": "set",
               "p": "payload.nodes",
               "pt": "msg",
               "to": "homee.nodes",
               "tot": "global"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 600,
       "y": 1080,
       "wires": [
           [
               "3981f0834f60fe3d"
           ]
       ]
   },
   {
       "id": "3981f0834f60fe3d",
       "type": "switch",
       "z": "b8ad42061a6d5f2e",
       "name": "Nur wenn Gerätestatus geändert",
       "property": "payload.nodes[id=$$.device.node.id].state = device.node.state",
       "propertyType": "jsonata",
       "rules": [
           {
               "t": "false"
           }
       ],
       "checkall": "true",
       "repair": false,
       "outputs": 1,
       "x": 250,
       "y": 820,
       "wires": [
           [
               "84e0be29a596b9f6"
           ]
       ]
   },
   {
       "id": "e565ecbc06eb639f",
       "type": "switch",
       "z": "b8ad42061a6d5f2e",
       "name": "verify device",
       "property": "payload.node",
       "propertyType": "msg",
       "rules": [
           {
               "t": "nnull"
           }
       ],
       "checkall": "true",
       "repair": false,
       "outputs": 1,
       "x": 170,
       "y": 1080,
       "wires": [
           [
               "306e283de06793a5"
           ]
       ]
   },
   {
       "id": "61efee2e1293f2f8",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Alle EnOcean Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload[protocol = 3]",
               "tot": "jsonata"
           },
           {
               "t": "set",
               "p": "payload.nodes",
               "pt": "flow",
               "to": "payload",
               "tot": "msg"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1140,
       "y": 800,
       "wires": [
           [
               "6174c1fb73ccadf7",
               "6bf0970636cc1e4a"
           ]
       ]
   },
   {
       "id": "6174c1fb73ccadf7",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Geräte mit EnOcean",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1380,
       "y": 740,
       "wires": []
   },
   {
       "id": "6bf0970636cc1e4a",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ? $count(payload) : 0",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1330,
       "y": 800,
       "wires": [
           [
               "ec17a4f04cc1f205",
               "39049bb60e657627"
           ]
       ]
   },
   {
       "id": "ec17a4f04cc1f205",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Geräte EnOcean",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1630,
       "y": 740,
       "wires": []
   },
   {
       "id": "39049bb60e657627",
       "type": "ioBroker out",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl EnOcean Geräte",
       "topic": "0_userdata.0.System.homee.EnOcean",
       "ack": "true",
       "autoCreate": "true",
       "stateName": "0_userdata.0.System.homee.EnOcean",
       "role": "",
       "payloadType": "number",
       "readonly": "false",
       "stateUnit": "",
       "stateMin": "",
       "stateMax": "",
       "x": 1630,
       "y": 800,
       "wires": []
   },
   {
       "id": "18ed2cb5de54b4e1",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Alle WLan Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload[protocol = 9]",
               "tot": "jsonata"
           },
           {
               "t": "set",
               "p": "payload.nodes",
               "pt": "flow",
               "to": "payload",
               "tot": "msg"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1130,
       "y": 940,
       "wires": [
           [
               "73232d6356145c91",
               "1f89021c7a98c311"
           ]
       ]
   },
   {
       "id": "73232d6356145c91",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Geräte mit WLan",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1370,
       "y": 880,
       "wires": []
   },
   {
       "id": "1f89021c7a98c311",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ? $count(payload) : 0",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1330,
       "y": 940,
       "wires": [
           [
               "1294df0c49809c46",
               "ab79ca8d13f7e817"
           ]
       ]
   },
   {
       "id": "1294df0c49809c46",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Geräte WLan",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1620,
       "y": 880,
       "wires": []
   },
   {
       "id": "ab79ca8d13f7e817",
       "type": "ioBroker out",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl WLan Geräte",
       "topic": "0_userdata.0.System.homee.WLan",
       "ack": "true",
       "autoCreate": "true",
       "stateName": "0_userdata.0.System.homee.WLan",
       "role": "",
       "payloadType": "number",
       "readonly": "false",
       "stateUnit": "",
       "stateMin": "",
       "stateMax": "",
       "x": 1620,
       "y": 940,
       "wires": []
   },
   {
       "id": "d8d565711fe0dd22",
       "type": "link in",
       "z": "b8ad42061a6d5f2e",
       "name": "",
       "links": [
           "d87f2174cf715cf2"
       ],
       "x": 75,
       "y": 940,
       "wires": [
           [
               "e565ecbc06eb639f"
           ]
       ]
   },
   {
       "id": "95b979349f1fd3f0",
       "type": "ioBroker out",
       "z": "b8ad42061a6d5f2e",
       "name": "Geräteliste",
       "topic": "0_userdata.0.System.homee.Tabelle",
       "ack": "true",
       "autoCreate": "true",
       "stateName": "0_userdata.0.System.homee.Tabelle",
       "role": "",
       "payloadType": "array",
       "readonly": "false",
       "stateUnit": "",
       "stateMin": "",
       "stateMax": "",
       "x": 1590,
       "y": 1220,
       "wires": []
   },
   {
       "id": "a5ac3eaebc5a142d",
       "type": "ioBroker out",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl nicht verfügbarer Geräte",
       "topic": "0_userdata.0.System.homee.NichtVerfügbar",
       "ack": "true",
       "autoCreate": "true",
       "stateName": "0_userdata.0.System.homee.NichtVerfügbar",
       "role": "",
       "payloadType": "number",
       "readonly": "false",
       "stateUnit": "",
       "stateMin": "",
       "stateMax": "",
       "x": 1650,
       "y": 380,
       "wires": []
   },
   {
       "id": "1a49f3e7a72eeb98",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "inaktive Geräte",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1360,
       "y": 320,
       "wires": []
   },
   {
       "id": "33dcf435082928a3",
       "type": "comment",
       "z": "b8ad42061a6d5f2e",
       "name": "homee Geräteliste",
       "info": "",
       "x": 150,
       "y": 80,
       "wires": []
   },
   {
       "id": "1b3e55fcd8eadc58",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "VIS Tabelle",
       "active": true,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1350,
       "y": 1160,
       "wires": []
   },
   {
       "id": "9c7798317b60270e",
       "type": "json",
       "z": "b8ad42061a6d5f2e",
       "name": "Tabelle JSON",
       "property": "payload",
       "action": "str",
       "pretty": false,
       "x": 1360,
       "y": 1220,
       "wires": [
           [
               "95b979349f1fd3f0"
           ]
       ]
   },
   {
       "id": "8bc0a02357eaa25a",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Alle Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ? $count(payload) : 0",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1130,
       "y": 240,
       "wires": [
           [
               "33eeadb2829047fd",
               "858928dd781c86a9"
           ]
       ]
   },
   {
       "id": "33eeadb2829047fd",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Alle Geräte",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1370,
       "y": 180,
       "wires": []
   },
   {
       "id": "858928dd781c86a9",
       "type": "ioBroker out",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Aller Geräte",
       "topic": "0_userdata.0.System.homee.GeräteAnzahl",
       "ack": "true",
       "autoCreate": "true",
       "stateName": "0_userdata.0.System.homee.GeräteAnzahl",
       "role": "",
       "payloadType": "number",
       "readonly": "false",
       "stateUnit": "",
       "stateMin": "",
       "stateMax": "",
       "x": 1370,
       "y": 240,
       "wires": []
   },
   {
       "id": "6624873c35b06eae",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Alle Batterie Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload[attributes[type =  8] or attributes[type =  69]]",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1130,
       "y": 1080,
       "wires": [
           [
               "0c5dce5940776e17",
               "676c2655140cea7e"
           ]
       ]
   },
   {
       "id": "0c5dce5940776e17",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Geräte mit Batterie",
       "active": false,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1370,
       "y": 1020,
       "wires": []
   },
   {
       "id": "676c2655140cea7e",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ? $count(payload) : 0",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1330,
       "y": 1080,
       "wires": [
           [
               "7cb6f5cee79a8d0b",
               "841edb859544f935"
           ]
       ]
   },
   {
       "id": "7cb6f5cee79a8d0b",
       "type": "debug",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Geräte Batterie",
       "active": true,
       "tosidebar": true,
       "console": false,
       "tostatus": false,
       "complete": "payload",
       "targetType": "msg",
       "statusVal": "",
       "statusType": "auto",
       "x": 1620,
       "y": 1020,
       "wires": []
   },
   {
       "id": "841edb859544f935",
       "type": "ioBroker out",
       "z": "b8ad42061a6d5f2e",
       "name": "Anzahl Baterrie Geräte",
       "topic": "0_userdata.0.System.homee.GeräteBatterie",
       "ack": "true",
       "autoCreate": "true",
       "stateName": "0_userdata.0.System.homee.GeräteBatterie",
       "role": "",
       "payloadType": "number",
       "readonly": "false",
       "stateUnit": "",
       "stateMin": "",
       "stateMax": "",
       "x": 1620,
       "y": 1080,
       "wires": []
   },
   {
       "id": "84e0be29a596b9f6",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "decodeUrlComponents",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ~> |$.nodes|{\"name\":$decodeUrlComponent(name),\t\"note\":$decodeUrlComponent(note),\t\"phonetic_name\":$decodeUrlComponent(phonetic_name)},\"attributes\"|",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 420,
       "y": 400,
       "wires": [
           [
               "8d240adaebd74c1b"
           ]
       ]
   },
   {
       "id": "8d240adaebd74c1b",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Alle Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload.nodes",
               "tot": "msg"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 530,
       "y": 660,
       "wires": [
           [
               "76924e9c23983f3d"
           ]
       ]
   },
   {
       "id": "76924e9c23983f3d",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "Geräte ausschliessen",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload ~> $filter(function($value){$value.id in [-1] != true})",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 740,
       "y": 660,
       "wires": [
           [
               "bc383b50669e8145"
           ]
       ]
   },
   {
       "id": "1e1eba7ac4087fac",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "hole alle Geräte",
       "rules": [
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "{}",
               "tot": "json"
           },
           {
               "t": "set",
               "p": "payload.nodes",
               "pt": "msg",
               "to": "homee.nodes",
               "tot": "global"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 180,
       "y": 400,
       "wires": [
           [
               "84e0be29a596b9f6"
           ]
       ]
   },
   {
       "id": "bf1c7f792a4007cf",
       "type": "inject",
       "z": "b8ad42061a6d5f2e",
       "name": "trigger",
       "props": [
           {
               "p": "payload"
           }
       ],
       "repeat": "",
       "crontab": "",
       "once": false,
       "onceDelay": 0.1,
       "topic": "",
       "payload": "true",
       "payloadType": "bool",
       "x": 130,
       "y": 180,
       "wires": [
           [
               "1e1eba7ac4087fac"
           ]
       ]
   },
   {
       "id": "dfb85691acadb5e8",
       "type": "change",
       "z": "b8ad42061a6d5f2e",
       "name": "VIS Tabelle 6",
       "rules": [
           {
               "t": "set",
               "p": "protocols",
               "pt": "msg",
               "to": "[{\"id\":1,\"name\":\"Z-Wave\",\"color\":\"#886fa9\"},{\"id\":2,\"name\":\"ZigBee\",\"color\":\"#ee6c1e\"},{\"id\":3,\"name\":\"EnOcean\",\"color\":\"#44abb2\"},{\"id\":9,\"name\":\"WLAN\",\"color\":\"#8f8f8f\"},{\"id\":12,\"name\":\"WLAN\",\"color\":\"#8f8f8f\"}]",
               "tot": "json"
           },
           {
               "t": "set",
               "p": "states",
               "pt": "msg",
               "to": "[{\"id\":1,\"name\":\"aktiv\",\"color\":\"green\"},{\"id\":2,\"name\":\"inaktiv\",\"color\":\"red\"},{\"id\":12,\"name\":\"wird aktualisiert\",\"color\":\"orange\"}]",
               "tot": "json"
           },
           {
               "t": "set",
               "p": "battery",
               "pt": "msg",
               "to": "[{\"level\":30,\"color\":\"green\"},{\"level\":20,\"color\":\"yellow\"},{\"level\":15,\"color\":\"orange\"},{\"level\":0,\"color\":\"red\"}]",
               "tot": "json"
           },
           {
               "t": "set",
               "p": "payload",
               "pt": "msg",
               "to": "payload.{\"name\" :name,\t        \"type\" : note,\t        \"protocol\" : ' <font color=\\\"' & $single($$.protocols, function($v){$v.id = protocol}).color & '\\\"> ' & $single($$.protocols, function($v){$v.id = protocol}).name,\t        \"state\" : ' <font color=\\\"' & $single($$.states, function($v){$v.id = state}).color & '\\\"> ' & $single($$.states, function($v){$v.id = state}).name,\t        \"battery\" : (attributes[type=8 ] ? attributes[type=8 ] : attributes[type=69 ]).type = 8 ? attributes[type=8 ].current_value : \t        (attributes[type=8 ] ? attributes[type=8 ] : attributes[type=69 ]).type = 69 ? attributes[type=69 ].current_value = 0 ? 100 : 0\t} ~> |$|{\"battery\" : $exists(battery) ? ' <font color=\\\"' & $filter($$.battery, function($v){battery >= $v.level})[0].color & '\\\"> ' & battery & \" %\" : \"Keine Batterie\"}|",
               "tot": "jsonata"
           }
       ],
       "action": "",
       "property": "",
       "from": "",
       "to": "",
       "reg": false,
       "x": 1110,
       "y": 1220,
       "wires": [
           [
               "9c7798317b60270e",
               "1b3e55fcd8eadc58"
           ]
       ]
   }
]