Jump to content

Writie a rule to do one thing immediately then another later


GBrenkman

Recommended Posts

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

Link to comment

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

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...