A while back I set up an automation for when an outdoor motion sensor goes off at night. It works great, but there's a small problem. The automation is set to trigger when there is motion for more than 1s and often times the sensor views continuous motion as multiple instances. I'm looking for some guidance on what options I have to reduce the rapid and subsequent notifications.
My main goal is to prevent instances where HA sends a dozen notifications because the sensor detects multiple separate instances of motion, but without losing the context of multiple instances of motion being detected in a short window.
While I could add a short delay and keep it in single mode to prevent multiple runs, this removes some context to how much motion is happening. Similarly, I could also increase the threshold to 2-5s, but I'm not sure this would truly reduce the number of notifications significantly.
More complex solutions I'd be looking for examples or links to documentation for:
- Update notification with quantity of motion detection instances in a short duration.
- Send an initial notification, hold subsequent notifications, then follow up w/ total duration and number of instances after motion hasn't been detected for a short amount of time.