I have a light control with a motion detector that doesn't do what it's supposed to. It should come on with movement and come on again with movement again. If the vacuum robot has a value of 5, the motion detector should not work. When you press the light switch, the motion detector should also be inactive. Then the light should be on for 45 minutes. When the robot is on the move it only works, the lamps go crazy and go on and off 2 to 3 times per second. I don't know why that is. Maybe one of you can take a look at my circuit and maybe find the error.
[
{
"id": "f40fbc4eb5ac4f7a",
"type": "tab",
"label": "Küche",
"disabled": false,
"info": "",
"env": []
},
{
"id": "63524b08cb45c082",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 310,
"y": 370,
"wires": [
[
"bbe47e797e5bd352",
"8dbccd4f1d2e0ecb"
]
]
},
{
"id": "8dbccd4f1d2e0ecb",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 940,
"y": 370,
"wires": [
[
"36517556eea614c2",
"e2635897a5b4a26d",
"7bbc1e6a458c30a4"
]
]
},
{
"id": "b4d58094fea6da65",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 260,
"y": 430,
"wires": [
[
"63524b08cb45c082"
]
]
},
{
"id": "40480422abea98ad",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 190,
"y": 70,
"wires": [
[
"75ca0135796c93c8"
]
]
},
{
"id": "ae24e45f243802bf",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 920,
"y": 190,
"wires": [
[
"c01b7af31e635058",
"79b702de70404090",
"e265b3e669cabbed"
]
]
},
{
"id": "cc199f24c2162a7f",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 920,
"y": 240,
"wires": [
[
"c01b7af31e635058",
"79b702de70404090",
"e265b3e669cabbed"
]
]
},
{
"id": "33cf5d23a026b4a3",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 190,
"y": 220,
"wires": [
[
"37235a98bb0b252e",
"f708a16c2d734ba2"
]
]
},
{
"id": "f708a16c2d734ba2",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 220,
"y": 190,
"wires": [
[
"ae8811169c3918eb"
]
]
},
{
"id": "0f00586703c4c5f8",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 930,
"y": 520,
"wires": [
[
"8654777b67aeb594",
"036ee8eb38e50f46",
"2427ca2ff9b108e4"
]
]
},
{
"id": "19254570a6e12680",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 930,
"y": 670,
"wires": [
[
"d3a21dfe403ed866",
"712fa614b26118a7",
"536b6e0abd5fb919"
]
]
},
{
"id": "75ca0135796c93c8",
"type": "junction",
"z": "f40fbc4eb5ac4f7a",
"x": 950,
"y": 70,
"wires": [
[
"745d8681a3f9f06e",
"0ce50d653966b0d0",
"7724c8fa02d0eb36"
]
]
},
{
"id": "9108a39567622628",
"type": "ioBroker in",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche",
"attrname": "payload",
"topic": "tuya.0.bfa31f81841589e9aerhgk.1",
"payloadType": "value",
"onlyack": "",
"func": "rbe",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 100,
"y": 110,
"wires": [
[
"40480422abea98ad"
]
]
},
{
"id": "e9b338134fd47b01",
"type": "inject",
"z": "f40fbc4eb5ac4f7a",
"name": "true",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 100,
"y": 30,
"wires": [
[
"40480422abea98ad"
]
]
},
{
"id": "9eba54f2d3f608ae",
"type": "inject",
"z": "f40fbc4eb5ac4f7a",
"name": "false",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "false",
"payloadType": "bool",
"x": 100,
"y": 70,
"wires": [
[
"40480422abea98ad"
]
]
},
{
"id": "bbe47e797e5bd352",
"type": "change",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche true",
"rules": [
{
"t": "set",
"p": "Schalter.Kueche",
"pt": "flow",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 410,
"y": 400,
"wires": [
[
"4d88bc3dbe17d4a0"
]
]
},
{
"id": "4d88bc3dbe17d4a0",
"type": "trigger",
"z": "f40fbc4eb5ac4f7a",
"name": "30 min.",
"op1": "",
"op2": "false",
"op1type": "nul",
"op2type": "bool",
"duration": "20",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "Schalter.Kueche",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 560,
"y": 400,
"wires": [
[
"0be12e6bd4e8e8b0"
]
]
},
{
"id": "0be12e6bd4e8e8b0",
"type": "change",
"z": "f40fbc4eb5ac4f7a",
"name": "",
"rules": [
{
"t": "set",
"p": "Schalter.Kueche",
"pt": "flow",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 760,
"y": 400,
"wires": [
[
"8dbccd4f1d2e0ecb"
]
]
},
{
"id": "bc31192270462750",
"type": "inject",
"z": "f40fbc4eb5ac4f7a",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 100,
"y": 410,
"wires": [
[
"b4d58094fea6da65"
]
]
},
{
"id": "e081bb71ad5f804e",
"type": "inject",
"z": "f40fbc4eb5ac4f7a",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "false",
"payloadType": "bool",
"x": 100,
"y": 460,
"wires": [
[
"b4d58094fea6da65"
]
]
},
{
"id": "f0e98b2901027f4e",
"type": "ioBroker in",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche",
"attrname": "payload",
"topic": "tuya.0.bfa31f81841589e9aerhgk.1",
"payloadType": "value",
"onlyack": "",
"func": "rbe",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 100,
"y": 370,
"wires": [
[
"63524b08cb45c082"
]
]
},
{
"id": "5810b23825401f18",
"type": "ioBroker in",
"z": "f40fbc4eb5ac4f7a",
"name": "Alexa Küche Licht an",
"attrname": "payload",
"topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.b3634834-802f-48e1-b1b2-6e460623c7f3",
"payloadType": "value",
"onlyack": "update",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 110,
"y": 520,
"wires": [
[
"0f00586703c4c5f8"
]
]
},
{
"id": "393c547d48209b0e",
"type": "ioBroker in",
"z": "f40fbc4eb5ac4f7a",
"name": "Alexa Küche Licht aus",
"attrname": "payload",
"topic": "alexa2.0.Echo-Devices.G090LV0371040175.Routines.983e658a-504a-44fb-9fbb-8b17eb377f8c",
"payloadType": "value",
"onlyack": "command",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 110,
"y": 670,
"wires": [
[
"19254570a6e12680"
]
]
},
{
"id": "da7126dab2db34ac",
"type": "ioBroker get",
"z": "f40fbc4eb5ac4f7a",
"name": "Status",
"topic": "mihome-vacuum.1.info.state",
"attrname": "roborock",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 660,
"y": 240,
"wires": [
[
"cfd8c9bf0c7f6348"
]
]
},
{
"id": "cfd8c9bf0c7f6348",
"type": "switch",
"z": "f40fbc4eb5ac4f7a",
"name": "Robi nicht 5",
"property": "roborock",
"propertyType": "msg",
"rules": [
{
"t": "neq",
"v": "5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 800,
"y": 240,
"wires": [
[
"cc199f24c2162a7f"
]
]
},
{
"id": "3dc8e25bc8ecd68c",
"type": "trigger",
"z": "f40fbc4eb5ac4f7a",
"name": "2 min. warten bevor false",
"op1": "",
"op2": "false",
"op1type": "nul",
"op2type": "bool",
"duration": "10",
"extend": true,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 720,
"y": 190,
"wires": [
[
"ae24e45f243802bf"
]
]
},
{
"id": "57de54256f54f3d4",
"type": "ioBroker in",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Motion",
"attrname": "payload",
"topic": "hue.0.Küche_Motion_Sensor.presence",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"outFormat": "MQTT",
"x": 80,
"y": 190,
"wires": [
[
"33cf5d23a026b4a3"
]
]
},
{
"id": "ae8811169c3918eb",
"type": "switch",
"z": "f40fbc4eb5ac4f7a",
"name": "Bewegung ?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 470,
"y": 190,
"wires": [
[
"da7126dab2db34ac",
"3dc8e25bc8ecd68c"
]
]
},
{
"id": "37235a98bb0b252e",
"type": "switch",
"z": "f40fbc4eb5ac4f7a",
"name": "",
"property": "Schalter.Kueche",
"propertyType": "flow",
"rules": [
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 290,
"y": 220,
"wires": [
[
"ae8811169c3918eb"
]
]
},
{
"id": "29956a1191d5a375",
"type": "inject",
"z": "f40fbc4eb5ac4f7a",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 100,
"y": 240,
"wires": [
[
"33cf5d23a026b4a3"
]
]
},
{
"id": "c01b7af31e635058",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. rechts",
"topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1090,
"y": 220,
"wires": []
},
{
"id": "e265b3e669cabbed",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Decke",
"topic": "tuya.0.bfa31f81841589e9aerhgk.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1060,
"y": 270,
"wires": []
},
{
"id": "79b702de70404090",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. links",
"topic": "hue.0.Küche_Unterschr_Links.on",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1080,
"y": 170,
"wires": []
},
{
"id": "36517556eea614c2",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. rechts",
"topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1090,
"y": 370,
"wires": []
},
{
"id": "7bbc1e6a458c30a4",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Decke",
"topic": "tuya.0.bfa31f81841589e9aerhgk.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1060,
"y": 420,
"wires": []
},
{
"id": "e2635897a5b4a26d",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. links",
"topic": "hue.0.Küche_Unterschr_Links.on",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1080,
"y": 320,
"wires": []
},
{
"id": "036ee8eb38e50f46",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. rechts",
"topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1090,
"y": 520,
"wires": []
},
{
"id": "2427ca2ff9b108e4",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Decke",
"topic": "tuya.0.bfa31f81841589e9aerhgk.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1060,
"y": 570,
"wires": []
},
{
"id": "8654777b67aeb594",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. links",
"topic": "hue.0.Küche_Unterschr_Links.on",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1080,
"y": 470,
"wires": []
},
{
"id": "712fa614b26118a7",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. rechts",
"topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1090,
"y": 670,
"wires": []
},
{
"id": "536b6e0abd5fb919",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Decke",
"topic": "tuya.0.bfa31f81841589e9aerhgk.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1060,
"y": 720,
"wires": []
},
{
"id": "d3a21dfe403ed866",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. links",
"topic": "hue.0.Küche_Unterschr_Links.on",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1080,
"y": 620,
"wires": []
},
{
"id": "0ce50d653966b0d0",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. rechts",
"topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1090,
"y": 70,
"wires": []
},
{
"id": "7724c8fa02d0eb36",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Decke",
"topic": "tuya.0.bfa31f81841589e9aerhgk.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1060,
"y": 120,
"wires": []
},
{
"id": "745d8681a3f9f06e",
"type": "ioBroker out",
"z": "f40fbc4eb5ac4f7a",
"name": "Küche Unters. links",
"topic": "hue.0.Küche_Unterschr_Links.on",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1080,
"y": 20,
"wires": []
}
]