Building a smart driveway sensor - what's the best way?

I have a variety of sensors and events that trigger when folks turn up in my driveway. Unifi Protect integration provides car spotted, person spotted, line crossed, etc. I also have a motion sensor.

I’d like to have a single sensor derived from these that only fires once, does not fire for another few minutes once fired and can reliably trigger automations that would do stuff like play some TTS over my smart speakers, apply logic about when to do this and which groups to do it to (like only the main bedroom at night, and never when we’re away).

I’ve googled combining sensors and there are so many answers, but most of them seem to be about combining a sensor and a switch, or adding two values into a template.

What is the best way to do this, and that is reliable as a trigger for automations?

Bayesian would be overkill if they are just binary sensors.

A template binary sensor would be your best bet. It has delay on and off and you can combine the boolean states however you wish (e.g. 2 of 3 sensors on = someone in the drive).

It will trigger as reliably as your logic use to combine them.

1 Like

Good to know template binary sensors will trigger reliably, and yes, simple on off is all I need. Is there someone or not, reliable, and don’t keep telling me when the Amazon guy is unloading or someone gets out of the car to press the buzzer. (There’s a car! There’s a person! The line got crossed! Motion detected! etc.)

Thank you