[
{
"id": "b802892eed83e90f",
"type": "tab",
"label": "Flow 8",
"disabled": false,
"info": "",
"env": []
},
{
"id": "f00e20abd94ff43d",
"type": "junction",
"z": "b802892eed83e90f",
"x": 960,
"y": 320,
"wires": [
[
"141a052859674836",
"574a9f7ddc4f663b"
]
]
},
{
"id": "423ea0f1dc0e4d31",
"type": "junction",
"z": "b802892eed83e90f",
"x": 1440,
"y": 300,
"wires": [
[
"ff32f89078260f0e",
"67e2e01a1266d1c3",
"e98816534075b0f5",
"21f36ea2695afe19",
"a695276a00fe8f61"
]
]
},
{
"id": "a2104cdffd7ca75f",
"type": "inject",
"z": "b802892eed83e90f",
"name": "Test Bewegung",
"props": [
{
"p": "payload.motion",
"v": "true",
"vt": "bool"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "Bewegungsmelder",
"x": 120,
"y": 60,
"wires": [
[
"a919a4c30d900c39",
"0150c15cf7b51170"
]
]
},
{
"id": "ed06e85de97289c8",
"type": "debug",
"z": "b802892eed83e90f",
"name": "debug 3",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1620,
"y": 140,
"wires": []
},
{
"id": "a919a4c30d900c39",
"type": "delay",
"z": "b802892eed83e90f",
"name": "",
"pauseType": "delay",
"timeout": "1",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 380,
"y": 140,
"wires": [
[
"bee64eb116d76ed1"
]
]
},
{
"id": "bee64eb116d76ed1",
"type": "change",
"z": "b802892eed83e90f",
"name": "motion:false",
"rules": [
{
"t": "set",
"p": "payload.motion",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 390,
"y": 100,
"wires": [
[
"0150c15cf7b51170"
]
]
},
{
"id": "ab41883686b27cc0",
"type": "switch",
"z": "b802892eed83e90f",
"name": "Schalter",
"property": "stopp",
"propertyType": "flow",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 860,
"y": 80,
"wires": [
[],
[
"01fea99b98c641a3"
]
]
},
{
"id": "0395e4bbb7c67e21",
"type": "change",
"z": "b802892eed83e90f",
"name": "Motion",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.motion",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 590,
"y": 80,
"wires": [
[
"d24a5429e472b18a"
]
]
},
{
"id": "59792b228df9eb30",
"type": "comment",
"z": "b802892eed83e90f",
"name": "<< Bewegungsmelder |||||||||||||| Simulator Beginn>>",
"info": "",
"x": 220,
"y": 20,
"wires": []
},
{
"id": "93f0d4c85ab42e59",
"type": "change",
"z": "b802892eed83e90f",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 590,
"y": 160,
"wires": [
[
"ed2607cafe826532"
]
]
},
{
"id": "e22b60db6265e908",
"type": "switch",
"z": "b802892eed83e90f",
"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": 210,
"y": 320,
"wires": [
[
"6ae2e0e61f81faeb"
],
[]
]
},
{
"id": "01fea99b98c641a3",
"type": "switch",
"z": "b802892eed83e90f",
"name": "Robi",
"property": "BWM",
"propertyType": "flow",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 990,
"y": 80,
"wires": [
[
"ba0aea0ff71ebc3d"
],
[]
]
},
{
"id": "7eea52e80cbe51f0",
"type": "change",
"z": "b802892eed83e90f",
"name": "",
"rules": [
{
"t": "set",
"p": "stopp",
"pt": "flow",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 680,
"y": 220,
"wires": [
[]
]
},
{
"id": "574a9f7ddc4f663b",
"type": "change",
"z": "b802892eed83e90f",
"name": "löscheflow.stopp",
"rules": [
{
"t": "set",
"p": "stopp",
"pt": "flow",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1280,
"y": 300,
"wires": [
[]
]
},
{
"id": "331a07cfba2d7df1",
"type": "function",
"z": "b802892eed83e90f",
"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\nflow.set(\"stopp\", false);\nflow.set(\"BWM\", true);\n",
"finalize": "",
"libs": [],
"x": 1410,
"y": 180,
"wires": [
[
"ed06e85de97289c8",
"423ea0f1dc0e4d31"
]
]
},
{
"id": "b9692c9131fb2ef5",
"type": "ioBroker in",
"z": "b802892eed83e90f",
"name": "Robi",
"attrname": "payload",
"topic": "mihome-vacuum.0.info.state",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 50,
"y": 380,
"wires": [
[
"6b214a0a59b5e04a"
]
]
},
{
"id": "0150c15cf7b51170",
"type": "function",
"z": "b802892eed83e90f",
"name": "Ausgang BWM",
"func": "\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 440,
"y": 60,
"wires": [
[
"0395e4bbb7c67e21"
]
]
},
{
"id": "b6b4c157c31e3701",
"type": "ioBroker in",
"z": "b802892eed83e90f",
"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": 60,
"y": 320,
"wires": [
[
"e22b60db6265e908"
]
]
},
{
"id": "6b214a0a59b5e04a",
"type": "switch",
"z": "b802892eed83e90f",
"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": 650,
"y": 380,
"wires": [
[
"7b9c0fa6e795af2d"
],
[
"ccadbb1ee1de29e6"
]
]
},
{
"id": "7b9c0fa6e795af2d",
"type": "change",
"z": "b802892eed83e90f",
"name": "setze Flow.BWM",
"rules": [
{
"t": "set",
"p": "BWM",
"pt": "flow",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 810,
"y": 360,
"wires": [
[
"b117dac109d51b34"
]
]
},
{
"id": "ccadbb1ee1de29e6",
"type": "change",
"z": "b802892eed83e90f",
"name": "lösche Flow.BWM",
"rules": [
{
"t": "set",
"p": "BWM",
"pt": "flow",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 810,
"y": 400,
"wires": [
[
"b117dac109d51b34"
]
]
},
{
"id": "558db419c5c37cca",
"type": "comment",
"z": "b802892eed83e90f",
"name": "evtl. gesperrt durch??",
"info": "",
"x": 860,
"y": 40,
"wires": []
},
{
"id": "d24a5429e472b18a",
"type": "switch",
"z": "b802892eed83e90f",
"name": "nur true",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 720,
"y": 80,
"wires": [
[
"ab41883686b27cc0"
],
[]
]
},
{
"id": "b117dac109d51b34",
"type": "debug",
"z": "b802892eed83e90f",
"name": "debug 4",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1100,
"y": 380,
"wires": []
},
{
"id": "d64f728f4f574f51",
"type": "comment",
"z": "b802892eed83e90f",
"name": "<< Bewegungsmelder |||||||||||||| Simulator Ende >>",
"info": "",
"x": 190,
"y": 280,
"wires": []
},
{
"id": "91febc7692f9b822",
"type": "change",
"z": "b802892eed83e90f",
"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": 930,
"y": 140,
"wires": [
[
"d303b6e1817d8b77"
]
]
},
{
"id": "d303b6e1817d8b77",
"type": "switch",
"z": "b802892eed83e90f",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
},
{
"t": "eq",
"v": "",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 1090,
"y": 120,
"wires": [
[
"331a07cfba2d7df1"
],
[
"331a07cfba2d7df1",
"574a9f7ddc4f663b"
],
[]
]
},
{
"id": "b4e55cb04c30244e",
"type": "switch",
"z": "b802892eed83e90f",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
},
{
"t": "eq",
"v": "",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 1630,
"y": 60,
"wires": [
[
"331a07cfba2d7df1"
],
[
"331a07cfba2d7df1"
],
[]
]
},
{
"id": "90c9685b4a5344dc",
"type": "change",
"z": "b802892eed83e90f",
"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": 1470,
"y": 60,
"wires": [
[
"b4e55cb04c30244e"
]
]
},
{
"id": "ba0aea0ff71ebc3d",
"type": "change",
"z": "b802892eed83e90f",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1150,
"y": 60,
"wires": [
[
"fa5f2b5bcd258a98"
]
]
},
{
"id": "6ae2e0e61f81faeb",
"type": "ioBroker get",
"z": "b802892eed83e90f",
"name": "Virtuelle Lampe",
"topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
"attrname": "payload",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 460,
"y": 320,
"wires": [
[
"cf3016a536d38a8d"
]
]
},
{
"id": "cf3016a536d38a8d",
"type": "switch",
"z": "b802892eed83e90f",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "false"
},
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 650,
"y": 320,
"wires": [
[
"7eea52e80cbe51f0",
"93f0d4c85ab42e59"
],
[
"7b9c0fa6e795af2d",
"87ec46662c49de4e",
"f00e20abd94ff43d"
]
]
},
{
"id": "141a052859674836",
"type": "change",
"z": "b802892eed83e90f",
"name": "Alles auf Anfang",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1280,
"y": 340,
"wires": [
[
"331a07cfba2d7df1"
]
]
},
{
"id": "87ec46662c49de4e",
"type": "change",
"z": "b802892eed83e90f",
"name": "stop",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stop",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 930,
"y": 280,
"wires": [
[
"ed2607cafe826532",
"fa5f2b5bcd258a98"
]
]
},
{
"id": "ed2607cafe826532",
"type": "mytimeout",
"z": "b802892eed83e90f",
"name": "45min.",
"outtopic": "",
"outsafe": "on",
"outwarning": "Warning",
"outunsafe": "off",
"warning": "10",
"timer": "2700",
"debug": false,
"ndebug": false,
"ignoreCase": false,
"repeat": false,
"again": false,
"x": 770,
"y": 160,
"wires": [
[
"91febc7692f9b822"
],
[]
]
},
{
"id": "fa5f2b5bcd258a98",
"type": "mytimeout",
"z": "b802892eed83e90f",
"name": "3Min.",
"outtopic": "",
"outsafe": "on",
"outwarning": "Warning",
"outunsafe": "off",
"warning": "10",
"timer": "180",
"debug": false,
"ndebug": false,
"ignoreCase": false,
"repeat": false,
"again": false,
"x": 1310,
"y": 100,
"wires": [
[
"90c9685b4a5344dc"
],
[]
]
},
{
"id": "802770af38c8534e",
"type": "hue-bridge-node",
"z": "b802892eed83e90f",
"name": "Hue",
"bridge": "cbd54dbabf6f65be",
"autoupdates": true,
"skipglobalevents": false,
"initevents": false,
"x": 90,
"y": 220,
"wires": [
[
"2e0c2a67486c0ac7"
]
]
},
{
"id": "2e0c2a67486c0ac7",
"type": "hue-motion",
"z": "b802892eed83e90f",
"name": "Küche Motion Sensor",
"bridge": "cbd54dbabf6f65be",
"sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
"skipevents": false,
"initevents": true,
"x": 140,
"y": 140,
"wires": [
[
"a919a4c30d900c39",
"0150c15cf7b51170"
]
]
},
{
"id": "21f36ea2695afe19",
"type": "ioBroker out",
"z": "b802892eed83e90f",
"name": "U-rechts",
"topic": "tuya.0.bfb09eea5dad3699abyrbu.20",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1600,
"y": 360,
"wires": []
},
{
"id": "084e7114b7ed1c61",
"type": "ioBroker out",
"z": "b802892eed83e90f",
"name": "Küche Decke",
"topic": "tuya.0.bfe4af976feb74d845vugp.1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1730,
"y": 240,
"wires": []
},
{
"id": "ff32f89078260f0e",
"type": "ioBroker out",
"z": "b802892eed83e90f",
"name": "Virtuel Switch 1",
"topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1620,
"y": 300,
"wires": []
},
{
"id": "442c2ef743d9599f",
"type": "debug",
"z": "b802892eed83e90f",
"name": "Küche",
"active": true,
"tosidebar": true,
"console": true,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1620,
"y": 520,
"wires": []
},
{
"id": "67e2e01a1266d1c3",
"type": "delay",
"z": "b802892eed83e90f",
"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": 1590,
"y": 240,
"wires": [
[
"084e7114b7ed1c61"
]
]
},
{
"id": "e98816534075b0f5",
"type": "change",
"z": "b802892eed83e90f",
"name": "Küche",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "1000",
"fromt": "str",
"to": "Küche",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "true",
"fromt": "bool",
"to": "Küche eingeschaltet",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "false",
"fromt": "bool",
"to": "Küche ausgeschaltet",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1490,
"y": 520,
"wires": [
[
"442c2ef743d9599f"
]
]
},
{
"id": "a695276a00fe8f61",
"type": "ioBroker out",
"z": "b802892eed83e90f",
"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": 1590,
"y": 440,
"wires": []
},
{
"id": "cbd54dbabf6f65be",
"type": "hue-bridge",
"name": "Hue GordonX",
"bridge": "192.168.0.8",
"key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d",
"worker": "10",
"autoupdates": true,
"disableupdates": false
}
]