GBrenkman Posted November 13, 2010 Posted November 13, 2010 I've got the following rule working just fine: If Control 'Guest Bath Vanity' is Switched OFF Then Set 'Guest Bath Tub & Toilet' 1% Set 'Guest Bath Toe Kick' 80% Set 'Guest Bath Vanity' 20% When someone leaves the bathroom and turns off the vanity light, the program resets lighting to a "mood" setting so the room is not totally dark when the next quest arrives. However, what I'd also like to do is if the 'Guest Bath Vanity' has remained switched off for two hours, then I'd like to "kill" the mood lighting and set all three controls to off (or maybe the 'Guest Bath Vanity' needs to be set to 1% so that the If Control 'Guest Bath Vanity' is Switched OFF doesn't trigger again turning the mood lighting on again. How do I accomplish this other action after the 'Guest Bath Vanity' is switched off and the mood lighting has been running for two hours? Thanks! Gary
Goose66 Posted November 13, 2010 Posted November 13, 2010 Try this: If Control 'Guest Bath Vanity' is Switched OFF And Control 'Guest Bath Vanity' is not Switched ON Then Set 'Guest Bath Tub & Toilet' 1% Set 'Guest Bath Toe Kick' 80% Set 'Guest Bath Vanity' 20% Wait 2 hours Set 'Guest Bath Tub & Toilet' Off Set 'Guest Bath Toe Kick' Off Set 'Guest Bath Vanity' Off This should do exactly what you want
GBrenkman Posted November 13, 2010 Author Posted November 13, 2010 I hadn't noticed the WAIT command, and still a little confused about when to use the ELSE part of a rule versus adding a new rule that responds to the new condition. However, your assistance did the trick. Thanks!
Recommended Posts