Switch - UpdateTime

Hi! The widget “Switch” in the settings - UpdateTime. Convenient thing!
I would like for each state of the switch to have its own UpdateTime. For example, I have a switch that starts the timer, when the timer is started, I wonder about the update time, and when the timer is off, I do not need to show any time at all. When I turn on the heater, I wonder how long it works, and when I turn it off, I’m not interested how long it does not work, etc.