Directional Motion or vehicle sensor

I have a business and would like a way to be notified when objects/people, or even just vehicles, enter. I would like this to be distinct from leaving, meaning directional so that it only notifies when entering. Is there a way to do this?

yes… Proximity - Home Assistant

1 Like

That will only work if they can add the person or vehicle to HA so it can be tracked.

If those are customers that won’t work.

If that’s the case you can put in two motion sensors and send a notification only when one triggers after the other but not the other way around. then you could use a timeout to reset the wait_for_trigger.

But that will get totally confused if you have one person enter and another person leave at the same time.

1 Like

Great idea and I tried this but the challenge here has been finding outdoor rated motion sensors. The only one I could find is a YoLink one. It worked decently well except they require 1 full minute to clear their motion, which makes it almost useless. It worked well besides that.

How about an outdoor camera and some image processing? Not the cheapest option.

Otherwise, instead of two motion sensors you could install two induction loops. (Mind you, a single loop can be used too, but it’s harder.)

If you are open to DIY something then they sell beam sensors (like laser, etc) that you can hook up the digital output signal to an ESP to get the signal into HA via ESPHome.

I have an IFM one that I use for detecting if the beam gets broken by someone climbing thru a series of windows across a sunroom wall. It’s not the most cost effective since the laser device is kind of expensive (I had it for a different project that I didn’t need so I repurposed it) but the laser output turns on and off a relay that the ESP detects the state of and sends it to HA. And the response both on and off is instantaneous. You could likely find something similar but way cheaper on Aliexpress or Amazon.

You could use one ESP to detect two lasers using two DIO on the ESP.

1 Like