# Help with delay

**URL:** https://discourse.nodered.org/t/help-with-delay/14767
**Category:** General
**Created:** [25 August 2019 15:43 UTC](https://discourse.nodered.org/t/help-with-delay/14767 "2019-08-25T15:43:19Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [25 August 2019 21:34 UTC](https://discourse.nodered.org/t/help-with-delay/14767/3 "2019-08-25T21:34:28Z")

</div>

Hi.

I don't know if this will be of any help.

It isn't I want to "one up" on you, but this is a quick little flow I made.

Ok, it doesn't have the smarts yours has with date/time stamping message, but I am sure you get the idea.

By the way:  
That `change` node - just after the two inject nodes - why?  
Just have the `up` and `down` buttons inject `1` and `0`.

Anyway, that doesn't matter.

Here is my small flow.

```auto
[{"id":"22709bd6.adca5c","type":"inject","z":"45831579.1d4494","name":"Up","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":490,"wires":[["fe1fdf6.4b3bea"]]},{"id":"eb09bd5f.0a2928","type":"inject","z":"45831579.1d4494","name":"Down","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":540,"wires":[["fe1fdf6.4b3bea"]]},{"id":"fe1fdf6.4b3bea","type":"trigger","z":"45831579.1d4494","op1":"","op2":"Down","op1type":"nul","op2type":"str","duration":"5","extend":false,"units":"s","reset":"1","bytopic":"all","name":"","x":250,"y":520,"wires":[["4c150237.b0cebc"]]},{"id":"4c150237.b0cebc","type":"debug","z":"45831579.1d4494","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":500,"y":520,"wires":[]}]

```

(edit)

I'm not (now) sure that is going to work/do what you want.

I was posting to another thread and found I posted what I wanted to go in there here.  
So, I maybe posted that code here rather than there.

But, as I know: I may be wrong, and it was meant for here.

---

_[View the full topic](https://discourse.nodered.org/t/help-with-delay/14767)._
