Jump to content

Writie a rule to do one thing immediately then another later


GBrenkman

Recommended Posts

Posted

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

Posted

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

Posted

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!

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.5k
×
×
  • Create New...