Occupancy with multiple motion detectors?

I have a flow that works as it should, however sometimes the motion detector doesn't detect...

The motion detector is an Eve motion sensor that then triggers a NR homekit switch, which then triggers the flow. I am thinking about adding a second motion sensor to the room. Haven't done it yet, just a concept so far so I'm trying to figure out how to integrate it into the flow.

What I'm thinking so far is to have the second motion sensor actuate a second dummy switch...

So would it be as easy, using the flow, as having both switches flow into the same series?

Am I making sense? Should I just wait until I purchase the sensor to try it out?

[
    {
        "id": "68bdf802.773ca8",
        "type": "tab",
        "label": "Bedroom Occupancy",
        "disabled": false,
        "info": ""
    },
    {
        "id": "56d28fa8.491c1",
        "type": "switch",
        "z": "68bdf802.773ca8",
        "name": "Occupied",
        "property": "payload.On",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "true",
                "vt": "jsonata"
            },
            {
                "t": "eq",
                "v": "false",
                "vt": "jsonata"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 600,
        "y": 180,
        "wires": [
            [
                "d8aa7de5.7c546",
                "64472eb1.62606"
            ],
            [
                "d8aa7de5.7c546"
            ]
        ]
    },
    {
        "id": "7ac14fb9.11fb7",
        "type": "homekit-service",
        "z": "68bdf802.773ca8",
        "isParent": true,
        "hostType": "0",
        "bridge": "480b5cc0.4ea614",
        "accessoryId": "",
        "parentService": "",
        "name": "Bedroom Occupied",
        "serviceName": "Switch",
        "topic": "",
        "filter": false,
        "manufacturer": "NRCHKB",
        "model": "1.3.6",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.3.6",
        "hardwareRev": "1.3.6",
        "softwareRev": "1.3.6",
        "cameraConfigVideoProcessor": "ffmpeg",
        "cameraConfigSource": "",
        "cameraConfigStillImageSource": "",
        "cameraConfigMaxStreams": 2,
        "cameraConfigMaxWidth": 1280,
        "cameraConfigMaxHeight": 720,
        "cameraConfigMaxFPS": 10,
        "cameraConfigMaxBitrate": 300,
        "cameraConfigVideoCodec": "libx264",
        "cameraConfigAudioCodec": "libfdk_aac",
        "cameraConfigAudio": false,
        "cameraConfigPacketSize": 1316,
        "cameraConfigVerticalFlip": false,
        "cameraConfigHorizontalFlip": false,
        "cameraConfigMapVideo": "0:0",
        "cameraConfigMapAudio": "0:1",
        "cameraConfigVideoFilter": "scale=1280:720",
        "cameraConfigAdditionalCommandLine": "-tune zerolatency",
        "cameraConfigDebug": false,
        "cameraConfigSnapshotOutput": "disabled",
        "cameraConfigInterfaceName": "",
        "characteristicProperties": "{}",
        "waitForSetupMsg": false,
        "outputs": 2,
        "x": 150,
        "y": 180,
        "wires": [
            [
                "87882341.f7e72"
            ],
            []
        ]
    },
    {
        "id": "87882341.f7e72",
        "type": "switch",
        "z": "68bdf802.773ca8",
        "name": "Motion Bypass Off",
        "property": "BedroomMotionBypass",
        "propertyType": "global",
        "rules": [
            {
                "t": "eq",
                "v": "true",
                "vt": "jsonata"
            },
            {
                "t": "eq",
                "v": "false",
                "vt": "jsonata"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 390,
        "y": 180,
        "wires": [
            [],
            [
                "56d28fa8.491c1"
            ]
        ]
    },
    {
        "id": "d8aa7de5.7c546",
        "type": "trigger",
        "z": "68bdf802.773ca8",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "nul",
        "op2type": "payl",
        "duration": "480",
        "extend": true,
        "overrideDelay": false,
        "units": "s",
        "reset": "true",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 170,
        "y": 280,
        "wires": [
            [
                "8305b788.e96978"
            ]
        ]
    },
    {
        "id": "8305b788.e96978",
        "type": "switch",
        "z": "68bdf802.773ca8",
        "name": "Timer Cancel On",
        "property": "BedroomTimerCancel",
        "propertyType": "global",
        "rules": [
            {
                "t": "eq",
                "v": "true",
                "vt": "jsonata"
            },
            {
                "t": "eq",
                "v": "false",
                "vt": "jsonata"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 450,
        "y": 280,
        "wires": [
            [],
            [
                "a51d9fc7.3a16a"
            ]
        ]
    },
    {
        "id": "f049c77f.3cd768",
        "type": "link in",
        "z": "68bdf802.773ca8",
        "name": "Occupancy Switch",
        "links": [
            "40dcd44.884712c",
            "8d959318.8eda3",
            "a81f0428.559c38",
            "ed7c313f.c8553"
        ],
        "x": 195,
        "y": 60,
        "wires": [
            [
                "88fcfb8345a7c430"
            ]
        ]
    },
    {
        "id": "64472eb1.62606",
        "type": "within-time-switch",
        "z": "68bdf802.773ca8",
        "name": "Daytime/Nighttime Lights On",
        "nameInt": "",
        "positionConfig": "9b3a306f.b1c6e",
        "startTime": "06:00",
        "startTimeType": "entered",
        "startOffset": 0,
        "startOffsetType": "none",
        "startOffsetMultiplier": 60000,
        "endTime": "02:00",
        "endTimeType": "entered",
        "endOffset": 0,
        "endOffsetType": "none",
        "endOffsetMultiplier": 60000,
        "timeRestrictions": 0,
        "timeRestrictionsType": "none",
        "timeDays": "*",
        "timeOnlyOddDays": false,
        "timeOnlyEvenDays": false,
        "timeMonths": "*",
        "timedatestart": "",
        "timedateend": "",
        "propertyStart": "",
        "propertyStartType": "none",
        "propertyStartCompare": "true",
        "propertyStartThreshold": "",
        "propertyStartThresholdType": "num",
        "startTimeAlt": "",
        "startTimeAltType": "entered",
        "startOffsetAlt": 0,
        "startOffsetAltType": "none",
        "startOffsetAltMultiplier": 60000,
        "propertyEnd": "",
        "propertyEndType": "none",
        "propertyEndCompare": "true",
        "propertyEndThreshold": "",
        "propertyEndThresholdType": "num",
        "endTimeAlt": "",
        "endTimeAltType": "entered",
        "endOffsetAlt": 0,
        "endOffsetAltType": "none",
        "endOffsetAltMultiplier": 60000,
        "tsCompare": "0",
        "x": 200,
        "y": 360,
        "wires": [
            [
                "373a4cac.be08d4"
            ],
            [
                "8d571151.84274"
            ]
        ]
    },
    {
        "id": "373a4cac.be08d4",
        "type": "switch",
        "z": "68bdf802.773ca8",
        "name": "Sleeping?",
        "property": "SleepingStatus",
        "propertyType": "global",
        "rules": [
            {
                "t": "eq",
                "v": "false",
                "vt": "jsonata"
            },
            {
                "t": "eq",
                "v": "true",
                "vt": "jsonata"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 480,
        "y": 340,
        "wires": [
            [
                "546c5c57.6247b4"
            ],
            [
                "bce524a2.b39bd8"
            ]
        ]
    },
    {
        "id": "8d571151.84274",
        "type": "switch",
        "z": "68bdf802.773ca8",
        "name": "Sleeping?",
        "property": "SleepingStatus",
        "propertyType": "global",
        "rules": [
            {
                "t": "eq",
                "v": "true",
                "vt": "jsonata"
            },
            {
                "t": "eq",
                "v": "false",
                "vt": "jsonata"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 480,
        "y": 380,
        "wires": [
            [
                "bce524a2.b39bd8"
            ],
            [
                "475c9560.63d6ec"
            ]
        ]
    },
    {
        "id": "67f3051b.0b73ec",
        "type": "zigbee2mqtt-out",
        "z": "68bdf802.773ca8",
        "name": "Bedroom Nightstands",
        "server": "a9e92c14.0a08e",
        "friendly_name": "Bedroom Nightstands",
        "device_id": "4",
        "command": "payload",
        "commandType": "msg",
        "payload": "payload",
        "payloadType": "msg",
        "transition": 0,
        "x": 920,
        "y": 360,
        "wires": []
    },
    {
        "id": "a51d9fc7.3a16a",
        "type": "zigbee2mqtt-out",
        "z": "68bdf802.773ca8",
        "name": "Bedroom Off",
        "server": "a9e92c14.0a08e",
        "friendly_name": "Bedroom Nightstands",
        "device_id": "4",
        "command": "payload",
        "commandType": "msg",
        "payload": "{\"state\":\"OFF\",\"transition\":2}",
        "payloadType": "json",
        "transition": 0,
        "x": 710,
        "y": 280,
        "wires": []
    },
    {
        "id": "546c5c57.6247b4",
        "type": "function",
        "z": "68bdf802.773ca8",
        "name": "Bright",
        "func": "msg = {\n  payload: {\n    \"state\": \"ON\",\n    \"brightness\": 254,\n    \"color_temp\": global.get('colorTemp'),\n    \"transition\": 2\n  }\n};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 320,
        "wires": [
            [
                "67f3051b.0b73ec"
            ]
        ]
    },
    {
        "id": "bce524a2.b39bd8",
        "type": "function",
        "z": "68bdf802.773ca8",
        "name": "Low",
        "func": "msg = {\n  payload: {\n    \"state\": \"ON\",\n    \"brightness\": 82,\n    \"color_temp\": global.get('colorTemp'),\n    \"transition\": 2\n  }\n};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 690,
        "y": 360,
        "wires": [
            [
                "67f3051b.0b73ec"
            ]
        ]
    },
    {
        "id": "475c9560.63d6ec",
        "type": "function",
        "z": "68bdf802.773ca8",
        "name": "Dimmed",
        "func": "msg = {\n  payload: {\n    \"state\": \"ON\",\n    \"brightness\": 167,\n    \"color_temp\": global.get('colorTemp'),\n    \"transition\": 2\n  }\n};\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 700,
        "y": 400,
        "wires": [
            [
                "67f3051b.0b73ec"
            ]
        ]
    },
    {
        "id": "3fe982f51697fe6f",
        "type": "link in",
        "z": "68bdf802.773ca8",
        "name": "Trigger",
        "links": [
            "8db2499b8a59f007"
        ],
        "x": 855,
        "y": 180,
        "wires": [
            [
                "d8aa7de5.7c546"
            ]
        ]
    },
    {
        "id": "88fcfb8345a7c430",
        "type": "trigger",
        "z": "68bdf802.773ca8",
        "name": "",
        "op1": "",
        "op2": "{ \"On\":false }",
        "op1type": "pay",
        "op2type": "json",
        "duration": "15",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 170,
        "y": 120,
        "wires": [
            [
                "7ac14fb9.11fb7"
            ]
        ]
    },
    {
        "id": "480b5cc0.4ea614",
        "type": "homekit-bridge",
        "bridgeName": "node-red",
        "pinCode": "979-91-688",
        "port": "",
        "advertiser": "ciao",
        "allowInsecureRequest": false,
        "manufacturer": "NRCHKB",
        "model": "1.3.6",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.3.6",
        "hardwareRev": "1.3.6",
        "softwareRev": "1.3.6",
        "customMdnsConfig": false,
        "mdnsMulticast": true,
        "mdnsInterface": "",
        "mdnsPort": "",
        "mdnsIp": "",
        "mdnsTtl": "",
        "mdnsLoopback": true,
        "mdnsReuseAddr": true,
        "allowMessagePassthrough": true
    },
    {
        "id": "9b3a306f.b1c6e",
        "type": "position-config",
        "name": "",
        "isValide": "true",
        "longitude": "0",
        "latitude": "0",
        "angleType": "deg",
        "timeZoneOffset": 99,
        "timeZoneDST": 0,
        "stateTimeFormat": "3",
        "stateDateFormat": "12"
    },
    {
        "id": "a9e92c14.0a08e",
        "type": "zigbee2mqtt-server",
        "name": "zigbee2mqtt",
        "host": "localhost",
        "mqtt_port": "1883",
        "mqtt_username": "",
        "mqtt_password": "",
        "tls": "",
        "usetls": false,
        "base_topic": "zigbee2mqtt"
    }
]

wait for your new device. It will probably work just feeding all sensors to your ignore off switch node.

You are also using JSONata in your switch nodes, this is not needed and will create overheadss that can be avoided. Set to is true or is false as below

[{"id":"87882341.f7e72","type":"switch","z":"68bdf802.773ca8","name":"Motion Bypass Off","property":"BedroomMotionBypass","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":390,"y":180,"wires":[[],["56d28fa8.491c1"]]}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.