This flow shows a function node that converts a floating value in the range 0.0 to 1.0 into a time proportioned on/off signal. It can be used, for example, drive a heater that only has on/off control such as to effectively get any power between 0 and 100%. Similarly it could be used to control a valve on a radiator to control the heat output.
It can be used in conjunction with a closed loop control node such as node-red-contrib-pid to control (again, for example) a heating system.
The comments at the start of the function node should be sufficient to configure it to individual circumstances.