I have a ventilation unit in my bathroom. When I turn off the bathroom light, it activates and runs for 15 minutes before turning off. However, I don’t want it to activate every time. For example, is it possible to write a command like “if the light stays on for more than 5 minutes, activate the ventilation and stop it after 15 minutes”?

