# Minimum time between motion notifications in Home Assistant

**URL:** <https://discourse.nodered.org/t/minimum-time-between-motion-notifications-in-home-assistant/34153>\
**Category:** General\
**Created:** [13 October 2020 00:06 UTC](https://discourse.nodered.org/t/minimum-time-between-motion-notifications-in-home-assistant/34153 "2020-10-13T00:06:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cburkins](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cburkins/32/30054_2.png) [@cburkins](https://discourse.nodered.org/u/cburkins)\
**Post date:** [13 October 2020 00:06 UTC](https://discourse.nodered.org/t/minimum-time-between-motion-notifications-in-home-assistant/34153/1 "2020-10-13T00:06:06Z")

</div>

Somewhat new to Node-Red, using in partnership with Home Assistant. Slick, really like it.

I've got a motion sensor hooked to a notification. It's sending notifications too often. I'd like there to be a minimum of two minutes between notifications. So something like this:

- time 0: motion causes notify
- time 30s: motion causes notify, but gets supressed
- time 2m 30s: motion causes notify, and notification gets sent

Any ideas ? I'm sure there are probably at least six ways to do this, right ?

---

<div class="post-metadata">

**Author:** ![cburkins](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cburkins/32/30054_2.png) [@cburkins](https://discourse.nodered.org/u/cburkins)\
**Post date:** [13 October 2020 00:20 UTC](https://discourse.nodered.org/t/minimum-time-between-motion-notifications-in-home-assistant/34153/2 "2020-10-13T00:20:41Z")

</div>

Thanks to this: [Preventing multiple inputs/triggers](https://discourse.nodered.org/t/preventing-multiple-inputs-triggers/26221)

I think I figured it out.

Here's my config to suppress for two minutes:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d79a99c3c6ccfb795927cbde2026e6569bd21d62.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 October 2020 08:45 UTC](https://discourse.nodered.org/t/minimum-time-between-motion-notifications-in-home-assistant/34153/3 "2020-10-13T08:45:07Z")

</div>

Thanks for posting that, it had not occurred to me that you could use a Trigger node in this case. The other method is to use a Delay node in Rate Limit mode. There is a difference if you want individual rate control based on the topic (which you don't). When that is selected with the Delay node then the outputs are sent on a regular timed tick whereas with the Trigger node they occur independently for each topic, which may be significant in some use cases.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 October 2020 08:45 UTC](https://discourse.nodered.org/t/minimum-time-between-motion-notifications-in-home-assistant/34153/4 "2020-10-27T08:45:07Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
