I have a payload i need to reset to 0, if it is not updated under 5 seconds. Im sure this is something basic im missing but if someone could help, that would be great
A trigger node will do that.
e.g
[{"id":"7b8359d23ec847b5","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":130,"y":4860,"wires":[["973070bd5e95bb88","59abab797a3df654"]]},{"id":"973070bd5e95bb88","type":"trigger","z":"b9860b4b9de8c8da","name":"","op1":"","op2":"0","op1type":"nul","op2type":"num","duration":"5000","extend":true,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":300,"y":4900,"wires":[["59abab797a3df654"]]},{"id":"59abab797a3df654","type":"debug","z":"b9860b4b9de8c8da","name":"debug 316","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":4840,"wires":[]}]
Or
[{"id":"7b8359d23ec847b5","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":130,"y":4860,"wires":[["973070bd5e95bb88"]]},{"id":"973070bd5e95bb88","type":"trigger","z":"b9860b4b9de8c8da","name":"","op1":"","op2":"0","op1type":"pay","op2type":"num","duration":"5000","extend":true,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":300,"y":4900,"wires":[["59abab797a3df654"]]},{"id":"59abab797a3df654","type":"debug","z":"b9860b4b9de8c8da","name":"debug 316","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":4840,"wires":[]}]
thanks again, and im watching the videos...
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.