[
{
"id": "cd388a27e1177b2a",
"type": "tab",
"label": "Flow 8",
"disabled": false,
"info": "",
"env": []
},
{
"id": "c858be985d04ff23",
"type": "junction",
"z": "cd388a27e1177b2a",
"x": 680,
"y": 560,
"wires": [
[
"e52cacfb28f4eef0",
"d4243e5842d002b7",
"f4dd19c85bec8f67"
]
]
},
{
"id": "49ed5c100ffadbfb",
"type": "junction",
"z": "cd388a27e1177b2a",
"x": 1060,
"y": 600,
"wires": [
[
"3da3568f5cb1d905",
"d9b21aa55e80ae44",
"c9f5b344739be161",
"a0d644333024864d"
]
]
},
{
"id": "6b29472d446bd70a",
"type": "junction",
"z": "cd388a27e1177b2a",
"x": 680,
"y": 320,
"wires": [
[
"1f6129972520dbc9",
"2cf7c09b18238747"
]
]
},
{
"id": "97a52cd45dee491f",
"type": "junction",
"z": "cd388a27e1177b2a",
"x": 1060,
"y": 460,
"wires": [
[
"49ed5c100ffadbfb"
]
]
},
{
"id": "17a82c94f393c061",
"type": "junction",
"z": "cd388a27e1177b2a",
"x": 160,
"y": 520,
"wires": [
[
"34daca3383213026"
]
]
},
{
"id": "f2c58fd53288296d",
"type": "debug",
"z": "cd388a27e1177b2a",
"name": "debug 3",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1400,
"y": 420,
"wires": []
},
{
"id": "25ad2bdbb9a6a3f2",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "motion:false",
"rules": [
{
"t": "set",
"p": "payload.motion",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 310,
"y": 420,
"wires": [
[
"c5344e2d70758330"
]
]
},
{
"id": "6fa8c560705cd84b",
"type": "switch",
"z": "cd388a27e1177b2a",
"name": "Schalter",
"property": "stopp",
"propertyType": "flow",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 560,
"y": 280,
"wires": [
[],
[
"e5b4dd5e0fdf55b3"
]
]
},
{
"id": "7cade0980ce23b6f",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "Motion",
"rules": [
{
"t": "set",
"p": "bewegung",
"pt": "flow",
"to": "payload.motion",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 470,
"y": 320,
"wires": [
[]
]
},
{
"id": "1d02d4d287c62d8d",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "set payload",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 610,
"y": 360,
"wires": [
[
"1f6129972520dbc9"
]
]
},
{
"id": "edd034e0ac4e9dbd",
"type": "switch",
"z": "cd388a27e1177b2a",
"name": "1000?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1000",
"vt": "num"
},
{
"t": "eq",
"v": "",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 230,
"y": 460,
"wires": [
[
"b3cf3d5c5932a0f1"
],
[]
]
},
{
"id": "e5b4dd5e0fdf55b3",
"type": "switch",
"z": "cd388a27e1177b2a",
"name": "Robi",
"property": "BWM",
"propertyType": "flow",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 690,
"y": 280,
"wires": [
[
"eb53173feca16754"
],
[]
]
},
{
"id": "6ad2e1e41e7eba3d",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "setze stopp",
"rules": [
{
"t": "set",
"p": "stopp",
"pt": "flow",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 460,
"wires": [
[]
]
},
{
"id": "d4243e5842d002b7",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "lösche stopp",
"rules": [
{
"t": "set",
"p": "stopp",
"pt": "flow",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 560,
"wires": [
[]
]
},
{
"id": "0649103700725132",
"type": "function",
"z": "cd388a27e1177b2a",
"name": "Variablen Ini + Ausgabe",
"func": "node.status({ text: msg.payload });\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\n\nflow.set(\"stopp\", false);\nflow.set(\"BWM\", true);\nflow.set(\"bewegung\", false);\n",
"finalize": "",
"libs": [],
"x": 1170,
"y": 420,
"wires": [
[
"f2c58fd53288296d",
"97a52cd45dee491f"
]
]
},
{
"id": "5b195fc1f7acb5c0",
"type": "ioBroker in",
"z": "cd388a27e1177b2a",
"name": "Robi",
"attrname": "payload",
"topic": "mihome-vacuum.0.info.state",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 110,
"y": 600,
"wires": [
[
"7f79db16bb82a357"
]
]
},
{
"id": "c5344e2d70758330",
"type": "function",
"z": "cd388a27e1177b2a",
"name": "Ausgang BWM",
"func": "\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 300,
"y": 380,
"wires": [
[
"7cade0980ce23b6f"
]
]
},
{
"id": "d4e6916ec6660771",
"type": "ioBroker in",
"z": "cd388a27e1177b2a",
"name": "KüSchalter",
"attrname": "payload",
"topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 80,
"y": 460,
"wires": [
[
"edd034e0ac4e9dbd"
]
]
},
{
"id": "7f79db16bb82a357",
"type": "switch",
"z": "cd388a27e1177b2a",
"name": "8?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "8",
"vt": "num"
},
{
"t": "neq",
"v": "8",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 230,
"y": 600,
"wires": [
[
"34daca3383213026"
],
[
"9725d7651f53e931"
]
]
},
{
"id": "34daca3383213026",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "setze Flow.BWM",
"rules": [
{
"t": "set",
"p": "BWM",
"pt": "flow",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 410,
"y": 580,
"wires": [
[
"3d95821769504d11"
]
]
},
{
"id": "9725d7651f53e931",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "lösche Flow.BWM",
"rules": [
{
"t": "set",
"p": "BWM",
"pt": "flow",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 410,
"y": 620,
"wires": [
[
"3d95821769504d11"
]
]
},
{
"id": "6a9e975c8a2cb22e",
"type": "switch",
"z": "cd388a27e1177b2a",
"name": "nur true",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 420,
"y": 280,
"wires": [
[
"6fa8c560705cd84b"
],
[]
]
},
{
"id": "3d95821769504d11",
"type": "debug",
"z": "cd388a27e1177b2a",
"name": "debug 4",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 580,
"y": 600,
"wires": []
},
{
"id": "19d59c4b02bc1d4e",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "true/on/false/off",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "true",
"tot": "bool"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 820,
"y": 440,
"wires": [
[
"2b6788c8f61bc75d"
]
]
},
{
"id": "2b6788c8f61bc75d",
"type": "switch",
"z": "cd388a27e1177b2a",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
},
{
"t": "eq",
"v": "",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 830,
"y": 500,
"wires": [
[
"0649103700725132",
"22f763e23b4b426d"
],
[
"0649103700725132",
"d4243e5842d002b7",
"078d3cdea12da58a"
],
[]
]
},
{
"id": "81379b4c78eb5084",
"type": "switch",
"z": "cd388a27e1177b2a",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
},
{
"t": "eq",
"v": "",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 970,
"y": 380,
"wires": [
[
"0649103700725132",
"cada2da2ed2bfaf6"
],
[
"0649103700725132",
"c38db948a076700c"
],
[]
]
},
{
"id": "6d74347a2369c9b1",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "true",
"tot": "bool"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 970,
"y": 320,
"wires": [
[
"81379b4c78eb5084"
]
]
},
{
"id": "eb53173feca16754",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 850,
"y": 280,
"wires": [
[
"2cf7c09b18238747"
]
]
},
{
"id": "b3cf3d5c5932a0f1",
"type": "ioBroker get",
"z": "cd388a27e1177b2a",
"name": "Virt Lampe",
"topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
"attrname": "payload",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 330,
"y": 520,
"wires": [
[
"fe9075ec01f6e19a"
]
]
},
{
"id": "fe9075ec01f6e19a",
"type": "switch",
"z": "cd388a27e1177b2a",
"name": "true false",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "false"
},
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 440,
"y": 460,
"wires": [
[
"6ad2e1e41e7eba3d",
"1d02d4d287c62d8d"
],
[
"6fda00babbc6c3cf",
"c858be985d04ff23",
"17a82c94f393c061"
]
]
},
{
"id": "e52cacfb28f4eef0",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "Alles auf Anfang",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 840,
"y": 600,
"wires": [
[
"0649103700725132",
"0e6b80937690ec94"
]
]
},
{
"id": "6fda00babbc6c3cf",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "stop",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stop",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 610,
"y": 320,
"wires": [
[
"6b29472d446bd70a"
]
]
},
{
"id": "1f6129972520dbc9",
"type": "mytimeout",
"z": "cd388a27e1177b2a",
"name": "45min",
"outtopic": "",
"outsafe": "on",
"outwarning": "Warning",
"outunsafe": "off",
"warning": "10",
"timer": "2700",
"debug": false,
"ndebug": false,
"ignoreCase": false,
"repeat": false,
"again": false,
"x": 810,
"y": 380,
"wires": [
[
"19d59c4b02bc1d4e"
],
[]
]
},
{
"id": "2cf7c09b18238747",
"type": "mytimeout",
"z": "cd388a27e1177b2a",
"name": "3min",
"outtopic": "",
"outsafe": "on",
"outwarning": "Warning",
"outunsafe": "off",
"warning": "10",
"timer": "90",
"debug": false,
"ndebug": false,
"ignoreCase": false,
"repeat": false,
"again": false,
"x": 810,
"y": 320,
"wires": [
[
"6d74347a2369c9b1"
],
[]
]
},
{
"id": "c9f5b344739be161",
"type": "ioBroker out",
"z": "cd388a27e1177b2a",
"name": "U-rechts",
"topic": "tuya.0.bfb09eea5dad3699abyrbu.20",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1200,
"y": 600,
"wires": []
},
{
"id": "eb0a77e50a594126",
"type": "ioBroker out",
"z": "cd388a27e1177b2a",
"name": "Küche Decke",
"topic": "tuya.0.bfe4af976feb74d845vugp.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1330,
"y": 480,
"wires": []
},
{
"id": "3da3568f5cb1d905",
"type": "ioBroker out",
"z": "cd388a27e1177b2a",
"name": "Virtuel Switch 1",
"topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
"ack": "false",
"autoCreate": "true",
"stateName": "Simlulierte Lampe",
"role": "value",
"payloadType": "boolean",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1220,
"y": 540,
"wires": []
},
{
"id": "d9b21aa55e80ae44",
"type": "delay",
"z": "cd388a27e1177b2a",
"name": "100ms",
"pauseType": "delay",
"timeout": "100",
"timeoutUnits": "milliseconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1190,
"y": 480,
"wires": [
[
"eb0a77e50a594126"
]
]
},
{
"id": "a0d644333024864d",
"type": "ioBroker out",
"z": "cd388a27e1177b2a",
"name": "U-links",
"topic": "hue.0.Hue_GordonX.Küche_Unterschr_Links.on",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1190,
"y": 660,
"wires": []
},
{
"id": "749bbf25ef1c6f5d",
"type": "hue-bridge-node",
"z": "cd388a27e1177b2a",
"name": "Hue",
"bridge": "cbd54dbabf6f65be",
"autoupdates": true,
"skipglobalevents": false,
"initevents": false,
"x": 90,
"y": 320,
"wires": [
[
"7e046925a0149339"
]
]
},
{
"id": "7e046925a0149339",
"type": "hue-motion",
"z": "cd388a27e1177b2a",
"name": "Küche Motion Sensor",
"bridge": "cbd54dbabf6f65be",
"sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
"skipevents": false,
"initevents": true,
"x": 280,
"y": 320,
"wires": [
[
"7cade0980ce23b6f"
]
]
},
{
"id": "6744591312f4367c",
"type": "inject",
"z": "cd388a27e1177b2a",
"name": "Takt",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "1",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "Takt",
"payload": "true",
"payloadType": "bool",
"x": 90,
"y": 280,
"wires": [
[
"19d0869e86da09b3"
]
]
},
{
"id": "19d0869e86da09b3",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "bewegung",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 250,
"y": 280,
"wires": [
[
"6a9e975c8a2cb22e"
]
]
},
{
"id": "f4dd19c85bec8f67",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "lösche bewegung",
"rules": [
{
"t": "set",
"p": "bewegung",
"pt": "flow",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 850,
"y": 640,
"wires": [
[]
]
},
{
"id": "14cbab0539105d58",
"type": "change",
"z": "cd388a27e1177b2a",
"name": "1002",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "1000",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 110,
"y": 380,
"wires": [
[
"edd034e0ac4e9dbd"
]
]
},
{
"id": "cada2da2ed2bfaf6",
"type": "debug",
"z": "cd388a27e1177b2a",
"name": "debug 8",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1300,
"y": 280,
"wires": []
},
{
"id": "c38db948a076700c",
"type": "debug",
"z": "cd388a27e1177b2a",
"name": "debug 17",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1300,
"y": 320,
"wires": []
},
{
"id": "0e6b80937690ec94",
"type": "debug",
"z": "cd388a27e1177b2a",
"name": "debug 18",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1200,
"y": 800,
"wires": []
},
{
"id": "078d3cdea12da58a",
"type": "debug",
"z": "cd388a27e1177b2a",
"name": "debug 19",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1200,
"y": 760,
"wires": []
},
{
"id": "22f763e23b4b426d",
"type": "debug",
"z": "cd388a27e1177b2a",
"name": "debug 20",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1200,
"y": 720,
"wires": []
},
{
"id": "cbd54dbabf6f65be",
"type": "hue-bridge",
"name": "Hue GordonX",
"bridge": "192.168.0.8",
"key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d",
"worker": "10",
"autoupdates": true,
"disableupdates": false
}
]