Jump to content

Why doesn't this simple program work?


starmanj

Recommended Posts

Make sure you save the changes. The little green arrow on the program name suggests that there are some unsaved changes out there somewhere.

 

Of what scene is your porch light a member, and what devices are controllers?

 

In addition to the LeeG suggestion:

 

Depending on how you have your motion sensor set up, you may need to change "status" to "control" (in fact, I recommend this step regardless). If you motion sensor is set to return itself to "off" after some period within the 10 minute period, it will cause this program to halt wait execution and execute the blank "else" statement. The effect would be that the light would not turn off after ten minutes.

 

Finally, you will probably want to add a step in the "else" branch to turn the light off. If you happen to sense motion less than ten minutes prior to 530am, the program will halt execution of the wait statement and run the "else" statement. Without an OFF command, the light would remain on until motion is detected next evening.

Link to comment

Archived

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


×
×
  • Create New...