[ { "id": "8b0cf8a1.a69ad8", "type": "group", "z": "463437f9.dd86a8", "name": "Correct", "style": { "stroke": "#92d04f", "fill": "#e3f3d3", "label": true, "label-position": "n", "color": "#009919" }, "nodes": [ "e80d35a8.6d7d1", "d361885a.96a2c8", "39f5c80b.08bad", "b88f58bc.dff27", "931d822f.61c8d", "ec01ed4.c44cc9", "61f904f6.91ebd4", "bb07db98.3080b", "90fa4b74.21e36", "ff7fa553.91a68" ], "x": 74, "y": 139, "w": 1422, "h": 262 }, { "id": "e80d35a8.6d7d1", "type": "vertex action", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "Motion sensor", "typeButton": "motionsensor", "bPayload": { "PRESENCE": { "action": "setbrightness", "group": "1d606bc8d9eb7c1241805d7b07c81f1d", "param": "50", "priority": "255" }, "TRANSITION": { "action": "setbrightness", "group": "1d606bc8d9eb7c1241805d7b07c81f1d", "param": "50", "priority": "0" }, "NOPRESENCE": { "action": "setbrightness", "group": "1d606bc8d9eb7c1241805d7b07c81f1d", "param": "0", "priority": "254" } }, "bState": "", "defaultpriority": true, "x": 530, "y": 260, "wires": [ [ "931d822f.61c8d" ] ] }, { "id": "d361885a.96a2c8", "type": "dali2devs", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "Motion Sensor no1", "uid": "00000003A4214709BC", "dali2dev": "0", "instanceType": 3, "dali2t1": "10", "dali2t2": "", "mode": "", "x": 190, "y": 180, "wires": [ [ "e80d35a8.6d7d1" ] ] }, { "id": "39f5c80b.08bad", "type": "dali2devs", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "Motion Sensor no2", "uid": "00000003A4214709BC", "dali2dev": "0", "instanceType": 3, "dali2t1": "10", "dali2t2": "", "mode": "", "x": 190, "y": 260, "wires": [ [ "e80d35a8.6d7d1" ] ] }, { "id": "b88f58bc.dff27", "type": "dali2devs", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "Motion Sensor no3", "uid": "00000003A4214709BC", "dali2dev": "0", "instanceType": 3, "dali2t1": "10", "dali2t2": "", "mode": "", "x": 190, "y": 340, "wires": [ [ "e80d35a8.6d7d1" ] ] }, { "id": "931d822f.61c8d", "type": "switch", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "Presence/Transition/NoPresence", "property": "payload.MSEVENT", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "num" }, { "t": "eq", "v": "1", "vt": "num" }, { "t": "eq", "v": "2", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 3, "x": 820, "y": 260, "wires": [ [ "bb07db98.3080b" ], [ "ec01ed4.c44cc9" ], [ "ec01ed4.c44cc9" ] ] }, { "id": "ec01ed4.c44cc9", "type": "vertex cluster", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "rate": 5, "x": 1390, "y": 260, "wires": [] }, { "id": "61f904f6.91ebd4", "type": "vertex action", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "Direct Value", "typeButton": "directv", "bPayload": { "action": "setbrightness", "group": "1d606bc8d9eb7c1241805d7b07c81f1d", "param": 0, "priority": "254" }, "bState": "", "defaultpriority": true, "x": 1240, "y": 220, "wires": [ [ "ec01ed4.c44cc9" ] ] }, { "id": "bb07db98.3080b", "type": "change", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "level", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1060, "y": 220, "wires": [ [ "61f904f6.91ebd4" ] ] }, { "id": "90fa4b74.21e36", "type": "inject", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "Presence", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{"MSEVENT": 0, "UID": "FAKE1"}", "payloadType": "json", "x": 500, "y": 320, "wires": [ [ "e80d35a8.6d7d1" ] ] }, { "id": "ff7fa553.91a68", "type": "inject", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "No presence", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{"MSEVENT": 2, "UID": "FAKE1"}", "payloadType": "json", "x": 510, "y": 360, "wires": [ [ "e80d35a8.6d7d1" ] ] } ] |