...
You need to send a msg.payload of { "MSEVENT": 0}; "UID" : "FAKE1" }
:
...
Expandcode | ||
---|---|---|
| ||
[ { { "id": "8b0cf8a1.a69ad8", "type": "group", "z": "463437f9.dd86a8", "name": "Correct", "style":{ { "stroke": "#92d04f", "fill": "#e3f3d3", "label":true, "label- true, "label-position": "n", "color": "#009919" }, }, "nodes":[ "e80d35a8.6d7d1", [ "e80d35a8.6d7d1", "d361885a.96a2c8", "39f5c80b.08bad", "b88f58bc.dff27", "931d822f "931d822f.61c8d", "ec01ed4.c44cc9", "61f904f6.91ebd4", "bb07db98.3080b", "90fa4b74.21e36", "90fa4b74.21e36", "ff7fa553.91a68" ], ], "x":74, 334, "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": { { "PRESENCE": { "action": "setbrightness", "group": "1d606bc8d9eb7c1241805d7b07c81f1d", "param": "50", "param": "50", "priority": "255" }, "TRANSITION": { }, "TRANSITION": { "action": "setbrightness", "group": "1d606bc8d9eb7c1241805d7b07c81f1d", "param": "param": "50", "priority": "0" }, "NOPRESENCE": { }, "NOPRESENCE": { "action": "setbrightness", "group": "1d606bc8d9eb7c1241805d7b07c81f1d", "param": "0", "param": "0", "priority": "254" } }, } }, "bState": "", "defaultpriority": true, "x":530, 790, "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 "mode": "", "x":190, 450, "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, "x": 450, "y": 260, "wires":[ [ "e80d35a8.6d7d1" ] ] }, { [ [ "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, "x": 450, "y": 340, "wires":[ [ "e80d35a8.6d7d1" ] ] }, { [ [ "e80d35a8.6d7d1" ] ] }, { "id": "931d822f.61c8d", "type": "switch", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "name": "Presence/Transition/NoPresence", "property": "payload.MSEVENT", "propertyType "propertyType": "msg", "rules":[ { [ { "t": "eq", "v": "v": "0", "vt": "num" }, { "t": "eq", }, { "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" ] ] } "vt": "num" }, { "t": "eq", "v": "2", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 3, "x": 1080, "y": 260, "wires": [ [ "bb07db98.3080b" ], [ "ec01ed4.c44cc9" ], [ "ec01ed4.c44cc9" ] ] }, { "id": "ec01ed4.c44cc9", "type": "vertex cluster", "z": "463437f9.dd86a8", "g": "8b0cf8a1.a69ad8", "rate": 5, "x": 1650, "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": 1500, "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": 1320, "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": 760, "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": 770, "y": 360, "wires": [ [ "e80d35a8.6d7d1" ] ] } ] |