Hey Collin and jbudd,
thank you very much for your help.
first I have tried to modify the solution from jbudd but had problems with the delay input and a weird behavior.
Now I've modified the Idea from Colin....but somehow the the delay is not really changing.
Can anyone see/find the mistake ?
[{"id":"5a25675a96444b82","type":"tab","label":"Fog-control ","disabled":false,"info":""},{"id":"22c71edbf6b6d6f8","type":"inject","z":"5a25675a96444b82","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":290,"y":200,"wires":[["4d29f3423e490f63"]]},{"id":"04eb8d8991a65f7f","type":"trigger","z":"5a25675a96444b82","name":"Off Loop","op1":"","op2":"0","op1type":"pay","op2type":"str","duration":"10","extend":false,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":200,"wires":[["076c3fccc0a2a353"]]},{"id":"076c3fccc0a2a353","type":"debug","z":"5a25675a96444b82","name":"debug 64","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1080,"y":200,"wires":[]},{"id":"cc6be63065ccbb8e","type":"ui_text_input","z":"5a25675a96444b82","name":"","label":"On Time [s]","tooltip":"","group":"5b1b349e.248d7c","order":2,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"delay1","sendOnBlur":false,"className":"","topicType":"msg","x":170,"y":60,"wires":[["39a7d06d88ef9093"]]},{"id":"c6f65e99bc950b9a","type":"debug","z":"5a25675a96444b82","name":"debug 65","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":60,"wires":[]},{"id":"39a7d06d88ef9093","type":"change","z":"5a25675a96444b82","name":"","rules":[{"t":"set","p":"delay1","pt":"flow","to":"payload*1000","tot":"jsonata"},{"t":"set","p":"delay1","pt":"msg","to":"delay ","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":60,"wires":[["c6f65e99bc950b9a","4d29f3423e490f63"]]},{"id":"4d29f3423e490f63","type":"trigger","z":"5a25675a96444b82","name":"ON Loop","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-5","extend":false,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":600,"y":200,"wires":[["04eb8d8991a65f7f"]]},{"id":"eb62d275f0ef5870","type":"ui_text_input","z":"5a25675a96444b82","name":"","label":"Off Time [s]","tooltip":"","group":"5b1b349e.248d7c","order":2,"width":0,"height":0,"passthru":true,"mode":"number","delay":300,"topic":"delay2","sendOnBlur":false,"className":"","topicType":"msg","x":170,"y":320,"wires":[["0385d318d1537aa9"]]},{"id":"0385d318d1537aa9","type":"change","z":"5a25675a96444b82","name":"","rules":[{"t":"set","p":"delay2","pt":"flow","to":"payload*1000","tot":"jsonata"},{"t":"set","p":"delay2","pt":"msg","to":"delay ","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":320,"wires":[["04eb8d8991a65f7f"]]},{"id":"5b1b349e.248d7c","type":"ui_group","name":"Interval Fogger","tab":"5398f064f922494a","order":3,"disp":true,"width":"6","collapse":false,"className":""},{"id":"5398f064f922494a","type":"ui_tab","name":"Control","icon":"dashboard","disabled":false,"hidden":false}]