It would be great if I could use instead of numbers for “Loop Every, Max Loops and Max Timeout” _ input_number.seconds, input_number.minutes …
It would help me a lot to automate the pool, to set the number of cycles, the running time of the pump and the break time of the pump.
I did the automation in YAML but I want to move everything to NR.
I haven’t used others but there are variations of loop timers. This one seems to have more options:
I looked … I don’t know how to use it.
I can’t find any examples.
Ideas ???
you can adjust the loop duration by sending msg.loop.units
and msg.loop.duration
to the node. like this:
[{"id":"8d5572b0.403ce","type":"looptimer-advanced","z":"50536f14.1f108","duration":"5","units":"Second","maxloops":"100","maxtimeout":"1","maxtimeoutunits":"Hour","name":"","x":460,"y":160,"wires":[["730dee14.55ea4"],[]]},{"id":"f1ef8def.87ce3","type":"inject","z":"50536f14.1f108","name":"","props":[{"p":"payload"},{"p":"loop.duration","v":"10","vt":"num"},{"p":"loop.units","v":"Second","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":270,"y":160,"wires":[["8d5572b0.403ce"]]},{"id":"730dee14.55ea4","type":"debug","z":"50536f14.1f108","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":680,"y":160,"wires":[]}]
I have added an example flow, check it in the repository.