fastbird1 Posted November 10, 2009 Posted November 10, 2009 I am using Icon On/Off switches for outside basement lights and have this question: How can I program to shut off in 5 minutes after pressing button, unless i double tap it - then I want light to stay on until i shut it off, or 11:00pm(at which point it could shut off automatically) Any suggestions on how to program that? Thanks
fitzpatri8 Posted November 10, 2009 Posted November 10, 2009 How about: If Control 'Icon Switch' is switched On And Control 'Icon Switch' is not switched Fast On And Control 'Icon Switch' is not switched Off Then Wait 5 minutes Set 'Icon Switch' Off Else - No Actions - (To add one, press 'Action') and If Time is 11:00:00PM And Status 'Icon Switch' is On Then Set 'Icon Switch' Off Else - No Actions - (To add one, press 'Action')
fastbird1 Posted November 11, 2009 Author Posted November 11, 2009 ok, very nice. And if I wanted to have a warning blink, is that possible. I tried this, but all it does is shut lights off: If Time is 11:00pm And status is On Then Set scene basement lights off wait 1 seconds set scene basement lights on Wait 1 minute Set scene basement lights off
fitzpatri8 Posted November 11, 2009 Posted November 11, 2009 Every change in trigger events causes a re-evaluation of the IF statement, so by turning the light off you are aborting the program. To accomplish that, you'd want to use another program: If Time is 11:00:00PM And Status 'Icon Switch' is On Then Run Program 'Blink' (Then Path) Else - No Actions - (To add one, press 'Action') and 'Blink' program: If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then Set 'Icon Switch' Off Wait 1 second Set 'Icon Switch' On Wait 1 minute Set 'Icon Switch' Off Else - No Actions - (To add one, press 'Action')
Recommended Posts