Hello, I have a more advanced event that I can't seem to figure out. I'm stuck how to copy a timer value to a wait value.
Essentially, I'm looking to.
1. Start/Reset Timer When Bathroom Door Closed
2a. When Bathroom Door Opens, Copy Timer Value as Variable
2b. Set Min/Max Variables X Time: If under 2 mins, set to 2 mins. If over 30 mins, set to 30 minutes.
2c. Countdown timer to turn off fan (in a wait condition).
I can increment/start a timer, but can't seem to countdown.
My feeling is the only way is a recurring trigger every minute to control a counter (not a timer).
Any other posts on bathroom exhaust fan logic? The search on google or HS board didn't show anything.
PS - Bathroom uses motion on and off and currently turns fan off after 3 mins no motion. Looking to extend the fan a little longer if there was a long shower after no motion.
Essentially, I'm looking to.
1. Start/Reset Timer When Bathroom Door Closed
2a. When Bathroom Door Opens, Copy Timer Value as Variable
2b. Set Min/Max Variables X Time: If under 2 mins, set to 2 mins. If over 30 mins, set to 30 minutes.
2c. Countdown timer to turn off fan (in a wait condition).
I can increment/start a timer, but can't seem to countdown.
My feeling is the only way is a recurring trigger every minute to control a counter (not a timer).
Any other posts on bathroom exhaust fan logic? The search on google or HS board didn't show anything.
PS - Bathroom uses motion on and off and currently turns fan off after 3 mins no motion. Looking to extend the fan a little longer if there was a long shower after no motion.
Comment