I am sure this has been asked I've the forum in past, but wanted to ask my question so that people might suggest answers using latest rule machine features of needed.
I need to automate bathroom fan with below logic. Please suggest how to write the rule:
- If bathroom motion is triggered
- After 5 minutes, if motion is still there
- Then turn on fan
- Turn off fan after 10 minutes of the motion becoming inactive