Help with delay

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.

[{"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.