[
{
"id": "c4f17d8302b83fa6",
"type": "ioBroker list",
"z": "517cd16e4d7e6ae4",
"name": "",
"topic": "mqtt.1.zigbee2mqtt.*",
"objType": "",
"regex": "",
"asArray": "true",
"onlyIDs": "false",
"withValues": "true",
"x": 560,
"y": 2640,
"wires": [
[
"bf3a117f8df1b5d6",
"8910edbe4f6cd8d5"
]
]
},
{
"id": "12c1ab80c14ac534",
"type": "inject",
"z": "517cd16e4d7e6ae4",
"name": "Check alle Zigbees",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 330,
"y": 2640,
"wires": [
[
"c4f17d8302b83fa6"
]
]
},
{
"id": "bf3a117f8df1b5d6",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Alle Zigbees",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 790,
"y": 2580,
"wires": []
},
{
"id": "781af463cda7f8a6",
"type": "switch",
"z": "517cd16e4d7e6ae4",
"name": "",
"property": "$moment(payload.ts,'x').locale('de').fromNow()",
"propertyType": "jsonata",
"rules": [
{
"t": "cont",
"v": "Sekunden",
"vt": "str"
},
{
"t": "cont",
"v": "Minute",
"vt": "str"
},
{
"t": "cont",
"v": "Stunde",
"vt": "str"
},
{
"t": "cont",
"v": "Tag",
"vt": "str"
},
{
"t": "cont",
"v": "Woche",
"vt": "str"
},
{
"t": "cont",
"v": "Monat",
"vt": "str"
},
{
"t": "cont",
"v": "Jahr",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": true,
"outputs": 8,
"x": 950,
"y": 2640,
"wires": [
[
"6cd56ac7ab7dce87"
],
[
"5fa6eb083d46122c"
],
[
"08f16a1626cf06cd"
],
[
"6fc58185a311d026"
],
[
"6432ac719be6bcc0"
],
[
"f741845d91b9f6be"
],
[
"6ba28c02c4ebf67b"
],
[
"e13771b884dd8076"
]
]
},
{
"id": "8910edbe4f6cd8d5",
"type": "split",
"z": "517cd16e4d7e6ae4",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 790,
"y": 2640,
"wires": [
[
"781af463cda7f8a6"
]
]
},
{
"id": "873f60158caf4c69",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Check Timestamp Jahr",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1520,
"y": 2740,
"wires": []
},
{
"id": "6ba28c02c4ebf67b",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Create New Object",
"rules": [
{
"t": "set",
"p": "new_payload.ts",
"pt": "msg",
"to": "payload.ts",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.since",
"pt": "msg",
"to": "$moment(payload.ts,'x').locale('de').fromNow()",
"tot": "jsonata"
},
{
"t": "set",
"p": "new_payload.id",
"pt": "msg",
"to": "payload._id",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.val",
"pt": "msg",
"to": "$exists(payload.val) ? $eval(payload.val)\t",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "new_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 2740,
"wires": [
[
"f42853bb676f9112"
]
]
},
{
"id": "f42853bb676f9112",
"type": "join",
"z": "517cd16e4d7e6ae4",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1330,
"y": 2740,
"wires": [
[
"873f60158caf4c69"
]
]
},
{
"id": "c955ae5137de646c",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Check Timestamp Monat",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1530,
"y": 2700,
"wires": []
},
{
"id": "28cc51d1a286e25b",
"type": "join",
"z": "517cd16e4d7e6ae4",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1330,
"y": 2700,
"wires": [
[
"c955ae5137de646c"
]
]
},
{
"id": "78a38beef0454f0e",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Check Timestamp Woche",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1530,
"y": 2660,
"wires": []
},
{
"id": "bc7b7df4eb3ca0d2",
"type": "join",
"z": "517cd16e4d7e6ae4",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1330,
"y": 2660,
"wires": [
[
"78a38beef0454f0e"
]
]
},
{
"id": "3054dd6f89f95828",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Check Timestamp Tag",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1520,
"y": 2620,
"wires": []
},
{
"id": "cd888096d9b8c78f",
"type": "join",
"z": "517cd16e4d7e6ae4",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1330,
"y": 2620,
"wires": [
[
"3054dd6f89f95828"
]
]
},
{
"id": "751348d1971f8884",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Check Timestamp Stunde",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1530,
"y": 2580,
"wires": []
},
{
"id": "a519c55337cb5938",
"type": "join",
"z": "517cd16e4d7e6ae4",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1330,
"y": 2580,
"wires": [
[
"751348d1971f8884"
]
]
},
{
"id": "ca1edc9ab2b833d1",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Check Timestamp Minute",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1530,
"y": 2540,
"wires": []
},
{
"id": "155b9f349a5fee3d",
"type": "join",
"z": "517cd16e4d7e6ae4",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1330,
"y": 2540,
"wires": [
[
"ca1edc9ab2b833d1"
]
]
},
{
"id": "765c617aa7f048b9",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "Check Timestamp Sekunde",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1540,
"y": 2500,
"wires": []
},
{
"id": "f5dddee5c7767d21",
"type": "join",
"z": "517cd16e4d7e6ae4",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1330,
"y": 2500,
"wires": [
[
"765c617aa7f048b9"
]
]
},
{
"id": "f741845d91b9f6be",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Create New Object",
"rules": [
{
"t": "set",
"p": "new_payload.ts",
"pt": "msg",
"to": "payload.ts",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.since",
"pt": "msg",
"to": "$moment(payload.ts,'x').locale('de').fromNow()",
"tot": "jsonata"
},
{
"t": "set",
"p": "new_payload.id",
"pt": "msg",
"to": "payload._id",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.val",
"pt": "msg",
"to": "$exists(payload.val) ? $eval(payload.val)\t",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "new_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 2700,
"wires": [
[
"28cc51d1a286e25b"
]
]
},
{
"id": "6432ac719be6bcc0",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Create New Object",
"rules": [
{
"t": "set",
"p": "new_payload.ts",
"pt": "msg",
"to": "payload.ts",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.since",
"pt": "msg",
"to": "$moment(payload.ts,'x').locale('de').fromNow()",
"tot": "jsonata"
},
{
"t": "set",
"p": "new_payload.id",
"pt": "msg",
"to": "payload._id",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.val",
"pt": "msg",
"to": "$exists(payload.val) ? $eval(payload.val)\t",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "new_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 2660,
"wires": [
[
"bc7b7df4eb3ca0d2"
]
]
},
{
"id": "6fc58185a311d026",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Create New Object",
"rules": [
{
"t": "set",
"p": "new_payload.ts",
"pt": "msg",
"to": "payload.ts",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.since",
"pt": "msg",
"to": "$moment(payload.ts,'x').locale('de').fromNow()",
"tot": "jsonata"
},
{
"t": "set",
"p": "new_payload.id",
"pt": "msg",
"to": "payload._id",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.val",
"pt": "msg",
"to": "$exists(payload.val) ? $eval(payload.val)\t",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "new_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 2620,
"wires": [
[
"cd888096d9b8c78f"
]
]
},
{
"id": "08f16a1626cf06cd",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Create New Object",
"rules": [
{
"t": "set",
"p": "new_payload.ts",
"pt": "msg",
"to": "payload.ts",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.since",
"pt": "msg",
"to": "$moment(payload.ts,'x').locale('de').fromNow()",
"tot": "jsonata"
},
{
"t": "set",
"p": "new_payload.id",
"pt": "msg",
"to": "payload._id",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.val",
"pt": "msg",
"to": "$exists(payload.val) ? $eval(payload.val)\t",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "new_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 2580,
"wires": [
[
"a519c55337cb5938"
]
]
},
{
"id": "5fa6eb083d46122c",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Create New Object",
"rules": [
{
"t": "set",
"p": "new_payload.ts",
"pt": "msg",
"to": "payload.ts",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.since",
"pt": "msg",
"to": "$moment(payload.ts,'x').locale('de').fromNow()",
"tot": "jsonata"
},
{
"t": "set",
"p": "new_payload.id",
"pt": "msg",
"to": "payload._id",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.val",
"pt": "msg",
"to": "$exists(payload.val) ? $eval(payload.val)\t",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "new_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 2540,
"wires": [
[
"155b9f349a5fee3d"
]
]
},
{
"id": "6cd56ac7ab7dce87",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Create New Object",
"rules": [
{
"t": "set",
"p": "new_payload.ts",
"pt": "msg",
"to": "payload.ts",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.since",
"pt": "msg",
"to": "$moment(payload.ts,'x').locale('de').fromNow()",
"tot": "jsonata"
},
{
"t": "set",
"p": "new_payload.id",
"pt": "msg",
"to": "payload._id",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.val",
"pt": "msg",
"to": "$exists(payload.val) ? $eval(payload.val)\t",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "new_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 2500,
"wires": [
[
"f5dddee5c7767d21"
]
]
},
{
"id": "af4f85ad15e25226",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"name": "ansonsten",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1490,
"y": 2800,
"wires": []
},
{
"id": "e13771b884dd8076",
"type": "change",
"z": "517cd16e4d7e6ae4",
"name": "Create New Object",
"rules": [
{
"t": "set",
"p": "new_payload.ts",
"pt": "msg",
"to": "payload.ts",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.since",
"pt": "msg",
"to": "$moment(payload.ts,'x').locale('de').fromNow()",
"tot": "jsonata"
},
{
"t": "set",
"p": "new_payload.id",
"pt": "msg",
"to": "payload._id",
"tot": "msg"
},
{
"t": "set",
"p": "new_payload.val",
"pt": "msg",
"to": "$exists(payload.val) ? $eval(payload.val)\t",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "new_payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 2800,
"wires": [
[
"ecd28452cd5b75a3"
]
]
},
{
"id": "ecd28452cd5b75a3",
"type": "join",
"z": "517cd16e4d7e6ae4",
"name": "",
"mode": "auto",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": "false",
"timeout": "",
"count": "",
"reduceRight": false,
"x": 1330,
"y": 2800,
"wires": [
[
"af4f85ad15e25226"
]
]
}
]