[
{
"id": "2e295f1c879e6af4",
"type": "tab",
"label": "Bad_Motion",
"disabled": false,
"info": "",
"env": []
},
{
"id": "3c4eead45d639099",
"type": "junction",
"z": "2e295f1c879e6af4",
"x": 920,
"y": 70,
"wires": [
[
"8abca0bad942f182",
"fc25cbeee0cad617"
]
]
},
{
"id": "536b62b8d18c6cf0",
"type": "junction",
"z": "2e295f1c879e6af4",
"x": 270,
"y": 70,
"wires": [
[
"3c4eead45d639099"
]
]
},
{
"id": "f2e7288278a6661f",
"type": "junction",
"z": "2e295f1c879e6af4",
"x": 280,
"y": 160,
"wires": [
[
"7b323a4ddca3e7c1"
]
]
},
{
"id": "269ad011754f07ad",
"type": "junction",
"z": "2e295f1c879e6af4",
"x": 280,
"y": 270,
"wires": [
[
"7b323a4ddca3e7c1"
]
]
},
{
"id": "8ba39a421f5c3317",
"type": "junction",
"z": "2e295f1c879e6af4",
"x": 230,
"y": 450,
"wires": [
[
"6e55b108db47eaed",
"2b793d273b25a2f7"
]
]
},
{
"id": "4c349095bd25378c",
"type": "ioBroker get",
"z": "2e295f1c879e6af4",
"name": "Reinigung Status",
"topic": "mihome-vacuum.1.info.state",
"attrname": "roborock",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 600,
"y": 370,
"wires": [
[
"a95d63f2785aa847"
]
]
},
{
"id": "4b318acc0eab7b1b",
"type": "ioBroker in",
"z": "2e295f1c879e6af4",
"name": "Bad Motion 1",
"attrname": "payload",
"topic": "hue.0.Bad_Motion_Sensor.presence",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 130,
"y": 160,
"wires": [
[
"f2e7288278a6661f"
]
]
},
{
"id": "9dd1e1bc2bca9ade",
"type": "ioBroker out",
"z": "2e295f1c879e6af4",
"name": "Bad Decke",
"topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1020,
"y": 320,
"wires": []
},
{
"id": "d0ddca612599b43c",
"type": "debug",
"z": "2e295f1c879e6af4",
"name": "Bad Licht",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1010,
"y": 370,
"wires": []
},
{
"id": "66e5680c9143f38f",
"type": "switch",
"z": "2e295f1c879e6af4",
"name": "Bewegung erkannt?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 830,
"y": 210,
"wires": [
[
"122117be9b2af524"
],
[
"154396f8caa9bc54"
]
]
},
{
"id": "a95d63f2785aa847",
"type": "switch",
"z": "2e295f1c879e6af4",
"name": "Robi nicht Status 5",
"property": "roborock",
"propertyType": "msg",
"rules": [
{
"t": "neq",
"v": "5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 800,
"y": 370,
"wires": [
[
"d0ddca612599b43c",
"9dd1e1bc2bca9ade"
]
]
},
{
"id": "2cbb19c25bdbf55d",
"type": "trigger",
"z": "2e295f1c879e6af4",
"name": "1 min. warten bevor false",
"op1": "true",
"op2": "false",
"op1type": "bool",
"op2type": "bool",
"duration": "10",
"extend": true,
"overrideDelay": false,
"units": "s",
"reset": "true",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 780,
"y": 320,
"wires": [
[
"d0ddca612599b43c",
"9dd1e1bc2bca9ade"
]
]
},
{
"id": "3d16cb434aa22482",
"type": "ioBroker get",
"z": "2e295f1c879e6af4",
"name": "Bad licht an Alexa",
"topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.d2b8b4a7-0faf-444d-be14-0e90a1db9e1e",
"attrname": "Alexa",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 110,
"y": 270,
"wires": [
[
"269ad011754f07ad"
]
]
},
{
"id": "fc25cbeee0cad617",
"type": "ioBroker out",
"z": "2e295f1c879e6af4",
"name": "Bad Decke",
"topic": "sonoff.0.bad_deckenlampe.POWER",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1020,
"y": 90,
"wires": []
},
{
"id": "4961b7defde8b1ea",
"type": "ioBroker in",
"z": "2e295f1c879e6af4",
"name": "Schalter Digital",
"attrname": "payload",
"topic": "0_userdata.0.Test_Schalter",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 120,
"y": 40,
"wires": [
[
"536b62b8d18c6cf0"
]
]
},
{
"id": "8abca0bad942f182",
"type": "debug",
"z": "2e295f1c879e6af4",
"name": "Bad Licht Alexa",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1030,
"y": 50,
"wires": []
},
{
"id": "323cb6465fa717e5",
"type": "ioBroker in",
"z": "2e295f1c879e6af4",
"name": "Bad Motion 2",
"attrname": "payload",
"topic": "tuya.0.bf15a2489964bff33bavvv.1",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 130,
"y": 210,
"wires": [
[
"9bdfabd4b2e4a214"
]
]
},
{
"id": "1050671f0db85c92",
"type": "ioBroker in",
"z": "2e295f1c879e6af4",
"name": "Alexa Bad Licht an",
"attrname": "payload",
"topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.d2b8b4a7-0faf-444d-be14-0e90a1db9e1e",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 110,
"y": 100,
"wires": [
[
"536b62b8d18c6cf0"
]
]
},
{
"id": "9bdfabd4b2e4a214",
"type": "change",
"z": "2e295f1c879e6af4",
"name": "wechsel",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "1",
"fromt": "str",
"to": "true",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "0",
"fromt": "str",
"to": "false",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 290,
"y": 210,
"wires": [
[
"7b323a4ddca3e7c1"
]
]
},
{
"id": "122117be9b2af524",
"type": "link out",
"z": "2e295f1c879e6af4",
"name": "link out 3",
"mode": "link",
"links": [
"12526f836b7135a5",
"2f09309457a74553"
],
"x": 965,
"y": 190,
"wires": []
},
{
"id": "2f09309457a74553",
"type": "link in",
"z": "2e295f1c879e6af4",
"name": "link in 3",
"links": [
"122117be9b2af524",
"154396f8caa9bc54"
],
"x": 635,
"y": 320,
"wires": [
[
"2cbb19c25bdbf55d"
]
]
},
{
"id": "12526f836b7135a5",
"type": "link in",
"z": "2e295f1c879e6af4",
"name": "link in 4",
"links": [
"122117be9b2af524",
"154396f8caa9bc54"
],
"x": 475,
"y": 370,
"wires": [
[
"4c349095bd25378c"
]
]
},
{
"id": "154396f8caa9bc54",
"type": "link out",
"z": "2e295f1c879e6af4",
"name": "link out 4",
"mode": "link",
"links": [
"2f09309457a74553",
"12526f836b7135a5"
],
"x": 965,
"y": 230,
"wires": []
},
{
"id": "7b323a4ddca3e7c1",
"type": "switch",
"z": "2e295f1c879e6af4",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "Schalter.Bad",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 510,
"y": 210,
"wires": [
[
"66e5680c9143f38f"
]
]
},
{
"id": "825a34e2e6145b1c",
"type": "ioBroker in",
"z": "2e295f1c879e6af4",
"name": "",
"attrname": "payload",
"topic": "Lichtschalter Bad",
"payloadType": "object",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 100,
"y": 450,
"wires": [
[
"8ba39a421f5c3317"
]
]
},
{
"id": "2b793d273b25a2f7",
"type": "ioBroker out",
"z": "2e295f1c879e6af4",
"name": "Bad Decke",
"topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1040,
"y": 450,
"wires": []
},
{
"id": "50172abc4513c6cf",
"type": "debug",
"z": "2e295f1c879e6af4",
"name": "Bad Decke",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1010,
"y": 500,
"wires": []
},
{
"id": "6e55b108db47eaed",
"type": "change",
"z": "2e295f1c879e6af4",
"name": "",
"rules": [
{
"t": "set",
"p": "Schalter.Bad",
"pt": "flow",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 490,
"wires": [
[
"4faf1ed0bf7c1af3"
]
]
},
{
"id": "4faf1ed0bf7c1af3",
"type": "trigger",
"z": "2e295f1c879e6af4",
"name": "",
"op1": "",
"op2": "false",
"op1type": "nul",
"op2type": "bool",
"duration": "10",
"extend": true,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 590,
"y": 490,
"wires": [
[
"f65257011e0b574c"
]
]
},
{
"id": "f65257011e0b574c",
"type": "change",
"z": "2e295f1c879e6af4",
"name": "",
"rules": [
{
"t": "set",
"p": "Schalter.Bad",
"pt": "flow",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 790,
"y": 490,
"wires": [
[
"50172abc4513c6cf",
"2b793d273b25a2f7"
]
]
},
{
"id": "d4d742934b195768",
"type": "inject",
"z": "2e295f1c879e6af4",
"name": "Aus",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "false",
"payloadType": "bool",
"x": 120,
"y": 370,
"wires": [
[
"8ba39a421f5c3317"
]
]
},
{
"id": "34a6d988e012a62b",
"type": "inject",
"z": "2e295f1c879e6af4",
"name": "An",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 120,
"y": 410,
"wires": [
[
"8ba39a421f5c3317"
]
]
}
]