npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Issue with stoptimer. Bug or feature?

Bear with me if I’m posting in the wrong place - if so please point me in the right direction.
I’m a new user of Node Red and I’m having an issue with stoptimer and I’m not sure if it’s a bug or a feature.
The flow below demonstrates the issue I’m having.
If I inject a timestamp using the first inject node, all works as expected.
If I inject a timestamp and then stop the timers using the second inject node before timer2 starts and then restart timer1, timer2 never starts.
From my reading of the documentation, timer2 should start as soon as it receives a new payload that isn’t ‘stop’.
Am I doing something wrong or is this behaving as expected?

[{“id”:“d8ad8b8f.76e598”,“type”:“tab”,“label”:“test stoptimer”,“disabled”:false,“info”:""},{“id”:“55200d28.b35dd4”,“type”:“stoptimer”,“z”:“d8ad8b8f.76e598”,“duration”:“5”,“units”:“Second”,“payloadtype”:“num”,“payloadval”:“0”,“name”:“Timer1 - 5 secs”,“x”:520,“y”:180,“wires”:[[“926a79fb.5e63c8”,“5ee2c5ba.5c3e7c”],]},{“id”:“926a79fb.5e63c8”,“type”:“stoptimer”,“z”:“d8ad8b8f.76e598”,“duration”:“5”,“units”:“Second”,“payloadtype”:“num”,“payloadval”:“0”,“name”:“Timer2 - 5 secs”,“x”:520,“y”:280,“wires”:[[“5203e4c3.67dcdc”],]},{“id”:“6417ccd.5ad2e34”,“type”:“change”,“z”:“d8ad8b8f.76e598”,“name”:“Stop timers”,“rules”:[{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“stop”,“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:250,“y”:280,“wires”:[[“55200d28.b35dd4”,“926a79fb.5e63c8”]]},{“id”:“6c768130.ebfb2”,“type”:“inject”,“z”:“d8ad8b8f.76e598”,“name”:"",“topic”:"",“payload”:"",“payloadType”:“date”,“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“x”:100,“y”:280,“wires”:[[“6417ccd.5ad2e34”]]},{“id”:“ee499509.0e7248”,“type”:“inject”,“z”:“d8ad8b8f.76e598”,“name”:"",“topic”:"",“payload”:"",“payloadType”:“date”,“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“x”:100,“y”:180,“wires”:[[“55200d28.b35dd4”]]},{“id”:“5ee2c5ba.5c3e7c”,“type”:“debug”,“z”:“d8ad8b8f.76e598”,“name”:“timer1 finished”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:820,“y”:180,“wires”:},{“id”:“5203e4c3.67dcdc”,“type”:“debug”,“z”:“d8ad8b8f.76e598”,“name”:“timer2 finished”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:820,“y”:280,“wires”:}]