# Ignore message for the first 5 seconds

**URL:** <https://discourse.nodered.org/t/ignore-message-for-the-first-5-seconds/20065>\
**Category:** General\
**Created:** [8 January 2020 16:25 UTC](https://discourse.nodered.org/t/ignore-message-for-the-first-5-seconds/20065 "2020-01-08T16:25:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nice\_to\_have](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nice\_to\_have](https://discourse.nodered.org/u/Nice_to_have)\
**Post date:** [8 January 2020 16:25 UTC](https://discourse.nodered.org/t/ignore-message-for-the-first-5-seconds/20065/1 "2020-01-08T16:25:34Z")

</div>

How can I block messages for a certain time?  
In the first 5 seconds of starting a machine, I can expect alarms.  
I want to ignore the alarms for a certain period to give the machine time to start up.  
How can I do this?  
Any ideas?

---

<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:** [8 January 2020 16:38 UTC](https://discourse.nodered.org/t/ignore-message-for-the-first-5-seconds/20065/2 "2020-01-08T16:38:24Z")

</div>

You could use a node-red-contrib-simple-gate with a Trigger node which sends a message to the gate to block and then after 5 seconds sends a message to allow them through.

---

<div class="post-metadata">

**Author:** ![Nice\_to\_have](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nice\_to\_have](https://discourse.nodered.org/u/Nice_to_have)\
**Post date:** [8 January 2020 18:05 UTC](https://discourse.nodered.org/t/ignore-message-for-the-first-5-seconds/20065/3 "2020-01-08T18:05:17Z")

</div>

Thanks Colin,  
Hooked it up to the start button and away it went 🥳
