From cede813c522d0ae0f6b6420b348ce8cd75962610 Mon Sep 17 00:00:00 2001 From: Ebru Balaban <ebru.balaban@student.reutlingen-university.de> Date: Tue, 15 Feb 2022 21:40:00 +0000 Subject: [PATCH] Upload New File --- Flows_Simulation.json | 519 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 519 insertions(+) create mode 100644 Flows_Simulation.json diff --git a/Flows_Simulation.json b/Flows_Simulation.json new file mode 100644 index 0000000..856e7db --- /dev/null +++ b/Flows_Simulation.json @@ -0,0 +1,519 @@ +[ + { + "id": "c5dd388e891ccde2", + "type": "tab", + "label": "Flow 1", + "disabled": false, + "info": "", + "env": [] + }, + { + "id": "849e474f680c7308", + "type": "inject", + "z": "c5dd388e891ccde2", + "name": "MotionTrue", + "props": [ + { + "p": "payload" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "1", + "payloadType": "num", + "x": 600, + "y": 200, + "wires": [ + [ + "2076d864c7401897" + ] + ] + }, + { + "id": "146c99a1ad4e9592", + "type": "inject", + "z": "c5dd388e891ccde2", + "name": "MotionFalse", + "props": [ + { + "p": "payload" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "0", + "payloadType": "num", + "x": 610, + "y": 260, + "wires": [ + [ + "2076d864c7401897" + ] + ] + }, + { + "id": "2076d864c7401897", + "type": "switch", + "z": "c5dd388e891ccde2", + "name": "", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "1", + "vt": "num" + }, + { + "t": "eq", + "v": "0", + "vt": "num" + } + ], + "checkall": "true", + "repair": false, + "outputs": 2, + "x": 810, + "y": 220, + "wires": [ + [ + "f467915bbde5fe40", + "9b53f8957b9ad330" + ], + [ + "f467915bbde5fe40" + ] + ] + }, + { + "id": "f467915bbde5fe40", + "type": "trigger", + "z": "c5dd388e891ccde2", + "name": "", + "op1": "", + "op2": "", + "op1type": "nul", + "op2type": "payl", + "duration": "10", + "extend": false, + "overrideDelay": false, + "units": "s", + "reset": "1", + "bytopic": "all", + "topic": "topic", + "outputs": 1, + "x": 830, + "y": 300, + "wires": [ + [ + "00fe4e0f04afef03", + "eb3bde9cc79b014f" + ] + ] + }, + { + "id": "9b53f8957b9ad330", + "type": "rbe", + "z": "c5dd388e891ccde2", + "name": "", + "func": "rbe", + "gap": "", + "start": "", + "inout": "out", + "septopics": false, + "property": "payload", + "topi": "topic", + "x": 1290, + "y": 340, + "wires": [ + [ + "8ecb437fc067536f" + ] + ] + }, + { + "id": "4ec6a3af11c0bfa8", + "type": "ui_toast", + "z": "c5dd388e891ccde2", + "position": "top right", + "displayTime": "30", + "highlight": "", + "sendall": true, + "outputs": 0, + "ok": "OK", + "cancel": "", + "raw": false, + "className": "lightMsg", + "topic": "", + "name": "", + "x": 1780, + "y": 200, + "wires": [] + }, + { + "id": "8ecb437fc067536f", + "type": "switch", + "z": "c5dd388e891ccde2", + "name": "", + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "1", + "vt": "num" + }, + { + "t": "eq", + "v": "0", + "vt": "num" + } + ], + "checkall": "true", + "repair": false, + "outputs": 2, + "x": 1290, + "y": 240, + "wires": [ + [ + "b348a29b54230d70", + "b0e529813c51c13f" + ], + [ + "d5271f6cdacff1c5", + "b0e529813c51c13f" + ] + ] + }, + { + "id": "aee013503ceb79c1", + "type": "ui_text", + "z": "c5dd388e891ccde2", + "group": "c4234e7f95b0f351", + "order": 0, + "width": "0", + "height": "0", + "name": "", + "label": "Recommendation", + "format": "{{msg.payload}}", + "layout": "col-center", + "className": "", + "x": 1790, + "y": 280, + "wires": [] + }, + { + "id": "1599e5eb64101d1b", + "type": "ui_toast", + "z": "c5dd388e891ccde2", + "position": "dialog", + "displayTime": "3", + "highlight": "", + "sendall": true, + "outputs": 1, + "ok": "Yes", + "cancel": "Close Dialog Window", + "raw": false, + "className": "", + "topic": "", + "name": "", + "x": 830, + "y": 460, + "wires": [ + [ + "2e0d93f508e5c84a" + ] + ] + }, + { + "id": "00fe4e0f04afef03", + "type": "stoptimer", + "z": "c5dd388e891ccde2", + "duration": "5", + "units": "Second", + "payloadtype": "num", + "payloadval": "", + "name": "", + "x": 1320, + "y": 440, + "wires": [ + [ + "9b53f8957b9ad330", + "0e3d09004606a7db" + ], + [ + "9b53f8957b9ad330" + ] + ] + }, + { + "id": "eb3bde9cc79b014f", + "type": "change", + "z": "c5dd388e891ccde2", + "name": "", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "Is someone in the room?", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 840, + "y": 380, + "wires": [ + [ + "1599e5eb64101d1b" + ] + ] + }, + { + "id": "2e0d93f508e5c84a", + "type": "function", + "z": "c5dd388e891ccde2", + "name": "", + "func": "//only accept OK button\nif (msg.payload == 'Yes') {\n msg.payload = 1;\n node.send(msg);\n\n}\nreturn null;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 820, + "y": 540, + "wires": [ + [ + "e6de57c63be75eb2", + "9b53f8957b9ad330" + ] + ] + }, + { + "id": "e6de57c63be75eb2", + "type": "change", + "z": "c5dd388e891ccde2", + "name": "", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "stop", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 840, + "y": 620, + "wires": [ + [ + "00fe4e0f04afef03" + ] + ] + }, + { + "id": "0e3d09004606a7db", + "type": "function", + "z": "c5dd388e891ccde2", + "name": "", + "func": "//send empty string to dialog\nif (msg.payload == '') {\n msg.payload= msg.value;\n node.send(msg);\n}\nreturn null;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 1300, + "y": 540, + "wires": [ + [ + "1599e5eb64101d1b" + ] + ] + }, + { + "id": "b348a29b54230d70", + "type": "change", + "z": "c5dd388e891ccde2", + "name": "", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "Motion detected", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1520, + "y": 200, + "wires": [ + [ + "aee013503ceb79c1", + "4ec6a3af11c0bfa8" + ] + ] + }, + { + "id": "d5271f6cdacff1c5", + "type": "change", + "z": "c5dd388e891ccde2", + "name": "", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "no motion, switch off the lights", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1520, + "y": 280, + "wires": [ + [ + "4ec6a3af11c0bfa8", + "aee013503ceb79c1" + ] + ] + }, + { + "id": "649725b8b5ab0e86", + "type": "change", + "z": "c5dd388e891ccde2", + "name": "", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1740, + "y": 360, + "wires": [ + [ + "aee013503ceb79c1" + ] + ] + }, + { + "id": "5c39e2ace46ae1f4", + "type": "ui_button", + "z": "c5dd388e891ccde2", + "name": "", + "group": "c4234e7f95b0f351", + "order": 1, + "width": "0", + "height": "0", + "passthru": false, + "label": "Reset Motion Tracking", + "tooltip": "", + "color": "", + "bgcolor": "", + "className": "", + "icon": "", + "payload": "true", + "payloadType": "bool", + "topic": "topic", + "topicType": "msg", + "x": 1740, + "y": 440, + "wires": [ + [ + "649725b8b5ab0e86" + ] + ] + }, + { + "id": "5c83d64d74168214", + "type": "comment", + "z": "c5dd388e891ccde2", + "name": "DEMO Simulation", + "info": "", + "x": 410, + "y": 40, + "wires": [] + }, + { + "id": "b0e529813c51c13f", + "type": "ui_led", + "z": "c5dd388e891ccde2", + "order": 6, + "group": "c4234e7f95b0f351", + "width": "0", + "height": "0", + "label": "", + "labelPlacement": "right", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#ff0000", + "value": "0", + "valueType": "num" + }, + { + "color": "#008000", + "value": "1", + "valueType": "num" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "", + "x": 1490, + "y": 340, + "wires": [] + }, + { + "id": "c4234e7f95b0f351", + "type": "ui_group", + "name": "Recommendation for light control", + "tab": "9a767a6f4dda0c97", + "order": 2, + "disp": true, + "width": "6", + "collapse": false, + "className": "" + }, + { + "id": "9a767a6f4dda0c97", + "type": "ui_tab", + "name": "HHZ Motion Detection", + "icon": "mi-directions_walk", + "disabled": false, + "hidden": false + } +] \ No newline at end of file -- GitLab