I would like to set up scenario: when i switch on the light in bathroom the ventilation should be delayed 5 minutes from that moment than it should start working
now 1. If i switch off the light within the first 5 min I dont want to switch on the ventilation at all.
2. if the light is switched on for 5 minutes the ventilation should start working.
3. If the lights is switched off anytime after the 5 minutes I want to vents to continue for next 10 minutes then switch off
Shall I use variables ?