Then a program to zero the variable if the off button is pressed:
11.2.2.2Program: MBA Fan - Off
If
Control 'MBA Exhaust Fan' is switched Off
Then
$sMasterBathFan = 0
Else
- No Actions - (To add one, press 'Action')
And a control program that will decrement the variable by 1 every 10 minutes and turn the
fan off when the variable is 0:
11.2.2.3Program: MBA Fan - Control
If
$sMasterBathFan > 0
Then
Wait 10 minutes
$sMasterBathFan -= 1
Else
Set 'MBA Exhaust Fan' Off
Page | 257