# Pausing the flow

**URL:** <https://discourse.nodered.org/t/pausing-the-flow/45281>\
**Category:** General\
**Created:** [6 May 2021 16:43 UTC](https://discourse.nodered.org/t/pausing-the-flow/45281 "2021-05-06T16:43:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajocius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ajocius/32/19024_2.png) [@ajocius](https://discourse.nodered.org/u/ajocius)\
**Post date:** [6 May 2021 16:43 UTC](https://discourse.nodered.org/t/pausing-the-flow/45281/1 "2021-05-06T16:43:55Z")

</div>

I am executing flow to open/close door and need to control timing. So for example if I want to open door about 25% of total, that requires about 12 seconds. I can initiate opening of the door, then I need node to wait for 12 sec and then execute another command that is to stop door opener. Is there a node for that?

---

<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:** [6 May 2021 16:55 UTC](https://discourse.nodered.org/t/pausing-the-flow/45281/2 "2021-05-06T16:55:16Z")

</div>

Have a look at the trigger node.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [6 May 2021 16:55 UTC](https://discourse.nodered.org/t/pausing-the-flow/45281/3 "2021-05-06T16:55:45Z")

</div>

The Delay node can be used to add delays into a flow and be used to create timed sequence of messages.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/b/cbf13d4fa40fa95f33b4b29ef01c2bf295d0019e.png)

---

<div class="post-metadata">

**Author:** ![ajocius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ajocius/32/19024_2.png) [@ajocius](https://discourse.nodered.org/u/ajocius)\
**Post date:** [6 May 2021 17:30 UTC](https://discourse.nodered.org/t/pausing-the-flow/45281/4 "2021-05-06T17:30:19Z")

</div>

thanks! I tried trigger, but could not get it to work. Most probably used it wrong. Delay did exactly what I wanted. Is it possible to pass number of seconds in msg.payload or some other way?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 May 2021 18:01 UTC](https://discourse.nodered.org/t/pausing-the-flow/45281/5 "2021-05-06T18:01:55Z")

</div>

> [@ajocius](#):
>
> Is it possible to pass number of seconds in msg.payload or some other way?

hmmmm, I wonder what the `Help` tab says when you click on the node...

---

<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:** [20 May 2021 18:02 UTC](https://discourse.nodered.org/t/pausing-the-flow/45281/6 "2021-05-20T18:02:39Z")

</div>

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