#Motion detection entering or leaving a room?

15 messages · Page 1 of 1 (latest)

rotund kite
#

Is there any way to build a motion detection system for the door for Home Assistant? So that you can then detect whether a person entered or left a room through the door?

short junco
#

If you have two motion detectors you can define the based on the order they were triggered

#

Or combine it with an mmwave presence sensor

rotund kite
short junco
#

That's an option yes, but there are cheaper options

rotund kite
short junco
#

Note I don't have experience with any of these devices

ripe blade
versed sparrow
rotund kite
rustic trail
#

Are you wanting to know how many people are in the room, or just whether there is "one or more" people there?

rotund kite
#

But I'm not sure😬

rustic trail
#

Detecting a person entering is easy. Any cheap PIR sensor will do that. Detecting a person leaving is much harder. The cheaper ones will just trigger a timeout and assume that if nobody is detected for xx seconds, the room is empty. No good if you're using it to trigger kitchen lighting and stand still at a sink to be plunged into darkness.

For my kitchen I found a presence sensor https://www.amazon.co.uk/gp/product/B0C555YZQ3 (sadly not currently available from Amazon: pinfresa TS0202 looks as if it's the same product but I can't guarantee that). This almost does what I needed, by giving different events for presence and absence. I say almost, because I usually leave the kitchen door open and it would trigger when I walk past the door rather than through it.

I tried placing the sensor so that it faces away from the door. That prevented it being triggered walking past the door, but then I had to be a couple of feet into the room before it triggered and there didn't seem to be an optimum place which detected me soon enough but didn't give false triggers each time I walked past the door.

The solution was to add a second sensor https://www.amazon.co.uk/gp/product/B0C23F733B/ just behind the doorframe, so that it picks me up immediately I enter. That turns the lighting on quickly and then the presence sensor takes over, keeping it on until I leave. OK, so it also detects me again when I leave the room, but because the main sensor turns the lights off a short while after I leave, it doesn't matter.

This has worked fine for about 6 months.