# Delay loop and reset

**URL:** <https://discourse.nodered.org/t/delay-loop-and-reset/14752>\
**Category:** General\
**Created:** [24 August 2019 21:26 UTC](https://discourse.nodered.org/t/delay-loop-and-reset/14752 "2019-08-24T21:26:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [27 August 2019 20:55 UTC](https://discourse.nodered.org/t/delay-loop-and-reset/14752/6 "2019-08-27T20:55:36Z")

</div>

> [@dceejay](#):
>
> ```auto
> [{"id":"e8f2916b.a3d","type":"inject","z":"de9a4bc7.709688","name":"","topic":"","payload":"DoorOpen","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":380,"wires":[["228a0bb8.349124"]]},{"id":"fda5147.011bce8","type":"inject","z":"de9a4bc7.709688","name":"","topic":"","payload":"DoorClosed","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":430,"wires":[["228a0bb8.349124"]]},{"id":"228a0bb8.349124","type":"trigger","z":"de9a4bc7.709688","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"2","extend":false,"units":"min","reset":"DoorClosed","bytopic":"all","name":"","x":470,"y":400,"wires":[["3d958daf.852712"]]},{"id":"3d958daf.852712","type":"debug","z":"de9a4bc7.709688","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":650,"y":400,"wires":[]}]
> 
> ```

That's interesting.

I just checked what is listed as what I posted in that flow.  
I am sure that when I posted it the `switch` node was a `trigger` one.  
I don't have the flow any more so can't really say.

After a bit of looking, I found that exact flow but in another thread:  
[reply #3](https://discourse.nodered.org/t/help-with-delay/14767/3)

_How weird._

(Redacted)  
(How do you get the "strike through" style letters?)  
Errr, isn't that 99% what I posted?

Fair is fair.

---

_[View the full topic](https://discourse.nodered.org/t/delay-loop-and-reset/14752)._
