sfhutchi Posted November 4, 2007 Share Posted November 4, 2007 I am trying to create a simple 'turn light' off if forgotten program. I have had this working on other lights, but this is one that is controlled from other locations also, and has a default 'on' state of 80%. So... I am trying to capture any scenario that has the light either being controlled locally or remotely. This doesn't seem to work though. The program ends the same second that it starts. If Status 'Room Light' is 80% Or Control 'Room Light' is switched On Or Control 'Room Light' is switched Brighten Or Control 'Room Light' is switched Fast On Or Status 'Room Light' is On Then Wait 1 hour Set 'Room Light' Off Else - No Actions - (To add one, press 'Action') Link to comment
sfhutchi Posted November 4, 2007 Author Share Posted November 4, 2007 I guess that I should have paid closer attention to the 'status' options. I used '> Off' and it works very well. I am curious why all the 'Or' commands caused this program to immediately end though. Link to comment
Mark Sanctuary Posted November 4, 2007 Share Posted November 4, 2007 Don't forget about the 'not' option, it handles all the code you have in one line. If Status 'Room Light' is not Off Then Wait 1 hour Set 'Room Light' Off Else - No Actions - (To add one, press 'Action') Link to comment
sfhutchi Posted November 5, 2007 Author Share Posted November 5, 2007 Thanks for the tip. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.