# Delay without and cancel input during that time?

**URL:** <https://discourse.nodered.org/t/delay-without-and-cancel-input-during-that-time/22814>\
**Category:** General\
**Created:** [8 March 2020 20:51 UTC](https://discourse.nodered.org/t/delay-without-and-cancel-input-during-that-time/22814 "2020-03-08T20:51:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![another\_dave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/another_dave/32/42242_2.png) [@another\_dave](https://discourse.nodered.org/u/another_dave)\
**Post date:** [8 March 2020 20:51 UTC](https://discourse.nodered.org/t/delay-without-and-cancel-input-during-that-time/22814/1 "2020-03-08T20:51:00Z")

</div>

Hi All,

I've created a flow which is listening to certain alerts and then broadcasts to my Alexa when they come through but I only want the first one to be processed with a 20 minute pause before the next one can come through. I've tried the delay function but this still processes all the alarms but just at a delayed rate.

The source will be inputting a alarm every 1 minute but I only need to know once and then 20 minutes later if the alert is still active. If I set 20 minute delay and during this time I can 19 alarms, all what happens is the will go on every 20 mins 19 times which is no good.

I only want to here the first alarm, wait 20 minutes to see if alarm is still happening, tell me again and wait 20 minutes before reminding me if still active.

I hope I'm making sense.

Please can someone help.

---

<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:** [8 March 2020 21:13 UTC](https://discourse.nodered.org/t/delay-without-and-cancel-input-during-that-time/22814/2 "2020-03-08T21:13:51Z")

</div>

look at the `trigger` node. Set to send original message on 1st message then wait 20 mins then send nothing... Don't extend the timer.

---

<div class="post-metadata">

**Author:** ![another\_dave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/another_dave/32/42242_2.png) [@another\_dave](https://discourse.nodered.org/u/another_dave)\
**Post date:** [8 March 2020 22:11 UTC](https://discourse.nodered.org/t/delay-without-and-cancel-input-during-that-time/22814/3 "2020-03-08T22:11:59Z")

</div>

Thank you

---

<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:** [7 May 2020 22:12 UTC](https://discourse.nodered.org/t/delay-without-and-cancel-input-during-that-time/22814/4 "2020-05-07T22:12:02Z")

</div>

Closed on 7 May 2020 22:12 UTC

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