SgtBatten / HA_blueprints

Somewhere to store automation blueprints
198 stars 78 forks source link

[Feature Request]: Delayed trigger? #89

Open mavermc opened 1 year ago

mavermc commented 1 year ago

I live in an apt complex, so I get people walking by the doorbell camera all day, not every delivery guy knocks, so it be really cool if it could only trigger if frigate has seen a person for 3 secs or some adjustable period of time.

I've thought about setting up a trigger so your automation only triggers after occupancy was detected for 3 seconds, but that seems unlikely to work since the "trigger" will have already passed. I've also tried to just simplify and make my own automation via the /api/camera/person/snapshot.jpg since that's really all I need in my notifications. But I couldn't figure out how to extract this though the frigate proxy in HA (since my NVR is on a separate machine), the way your automation and all the other code snips I found rely on a notification ID, and I couldn't find a syntax that got me what I wanted.

Anycase great stuff! Thanks so much for providing this blueprint to the community!

SgtBatten commented 1 year ago

Thanks.

In #78 there is a new custom filter in the beta blueprint.

I'd say you could template your 3 second requirement there and probably get close to what you want.