# Need motion sensor filter flow to output an 'on' only once while restarting a 10 minute counter. No more "on" outputs until after 10 mins of no motion

**URL:** <https://discourse.nodered.org/t/need-motion-sensor-filter-flow-to-output-an-on-only-once-while-restarting-a-10-minute-counter-no-more-on-outputs-until-after-10-mins-of-no-motion/65795>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [29 July 2022 18:38 UTC](https://discourse.nodered.org/t/need-motion-sensor-filter-flow-to-output-an-on-only-once-while-restarting-a-10-minute-counter-no-more-on-outputs-until-after-10-mins-of-no-motion/65795 "2022-07-29T18:38:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AgingTechNerd](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@AgingTechNerd](https://discourse.nodered.org/u/AgingTechNerd)\
**Post date:** [29 July 2022 18:38 UTC](https://discourse.nodered.org/t/need-motion-sensor-filter-flow-to-output-an-on-only-once-while-restarting-a-10-minute-counter-no-more-on-outputs-until-after-10-mins-of-no-motion/65795/1 "2022-07-29T18:38:28Z")

</div>

Made lots of progress with node red flows so I'm almost embarrassed to ask this question:

I have my driveway motion sensor which just sends on and then a quick off. I want to use that to trigger a "Driveway motion" text message and voice announcement.

But I need to filter it so can only be retriggered again after 10 minutes of no motion (otherwise it's flooding me with text messages). So when stuff's happening on the driveway I don't want to be notified again until there's been 10 minutes of inactivity.

I've search and watched videos and tried a bunch of timer nodes and some come close and others gloss right over what I need. I tried Neil's Mytimer suggested to someone else back in 2019 is the closest but I need it not to keep outputting an 'on' each time there's motion inside the 10 minutes.

Suggestions?  
Thanks!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [29 July 2022 18:43 UTC](https://discourse.nodered.org/t/need-motion-sensor-filter-flow-to-output-an-on-only-once-while-restarting-a-10-minute-counter-no-more-on-outputs-until-after-10-mins-of-no-motion/65795/2 "2022-07-29T18:43:03Z")

</div>

Sounds like a job for the trigger node. Can be set to send on, then wait 10 mins, extend if necessary then send nothing.

---

<div class="post-metadata">

**Author:** ![AgingTechNerd](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@AgingTechNerd](https://discourse.nodered.org/u/AgingTechNerd)\
**Post date:** [30 July 2022 01:10 UTC](https://discourse.nodered.org/t/need-motion-sensor-filter-flow-to-output-an-on-only-once-while-restarting-a-10-minute-counter-no-more-on-outputs-until-after-10-mins-of-no-motion/65795/3 "2022-07-30T01:10:53Z")

</div>

ok I'll take a go at it.

I'll be back to post my solution (if I find one .. or need more help).

Thanks

---

<div class="post-metadata">

**Author:** ![AgingTechNerd](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@AgingTechNerd](https://discourse.nodered.org/u/AgingTechNerd)\
**Post date:** [30 July 2022 02:54 UTC](https://discourse.nodered.org/t/need-motion-sensor-filter-flow-to-output-an-on-only-once-while-restarting-a-10-minute-counter-no-more-on-outputs-until-after-10-mins-of-no-motion/65795/4 "2022-07-30T02:54:17Z")

</div>

Exactly what I was looking for. Thanks!

 ![Screen Shot 2022-07-29 at 10.51.36 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1cdeab37b072a9f57077b5d73618133c2ef3936c.jpeg)

---

<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:** [13 August 2022 02:55 UTC](https://discourse.nodered.org/t/need-motion-sensor-filter-flow-to-output-an-on-only-once-while-restarting-a-10-minute-counter-no-more-on-outputs-until-after-10-mins-of-no-motion/65795/5 "2022-08-13T02:55:11Z")

</div>

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