I have a program that turns off the bathroom light after its been on for a while. I did not want it to just turn off while someone could be in the shower or bath so I have it wait 30 minutes then run another program that proceeds to beep the keypad for a while to give the person a chance to cancel it.
I cant for the life of me wrap my head around how to cancel the action. I imagine i would want it where someone can double tap the button and it would stop the program. I have though about a variable that I enable when the program runs and I could have another program look for double tap and but not sure how to have the ISY stop the program and leave the light on.
Any ideas would be appreciated.
Program: Hallway Bathroom Light Auto Off 1
Hallway Bathroom Light Auto Off - [ID 001F][Parent 0030]
If
'Inside / Hallway / Hallway Bathroom Light' is switched On
Or 'Inside / Hallway / Hallway Bathroom Light' is switched Fast On
Or 'Inside / Hallway / Hallway Bathroom Light' is switched Fade Up
Or 'Inside / Hallway / Hallway Bathroom Light' is switched Off
Then
Wait 30 minutes
Run Program 'Hallway Bathroom Light Auto Off 2' (If)
Else
- No Actions - (To add one, press 'Action')
Program: Hallway Bathroom Light Auto Off 2
Hallway Bathroom Light Auto Off 2 - [ID 0031][Parent 0030][Not Enabled]
If
'Inside / Hallway / Hallway Bathroom Light' Status is On
Then
Repeat 60 times
Wait 1 second
Set 'Inside / Hallway / Hallway Bathroom Light' Beep
Repeat 1 times
Set 'Inside / Hallway / Hallway Bathroom Light' Off
Repeat 1 times
Set 'Inside / Hallway / Hallway Bathroom Light' On
Repeat 1 times
Set 'Inside / Hallway / Hallway Bathroom Light' Off
Repeat 1 times
Set 'Inside / Hallway / Hallway Bathroom Light' On
Repeat 1 times
Wait 3 minutes
Repeat 60 times
Set 'Inside / Hallway / Hallway Bathroom Light' Beep
Repeat 1 times
Set 'Inside / Hallway / Hallway Bathroom Light' Off
Else
- No Actions - (To add one, press 'Action')