Jump to content

Why doesn't this simple program work?


starmanj

Recommended Posts

Posted

 

 

Any ideas why the attached picture of my ultra simple program doesn't work? I can activate the porch light via scene but then it just stays on forever. I want the porch to turn off after 10 minutes. Just can't get it to work!

post-2563-140474154237_thumb.jpg

Posted

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.

Guest
This topic is now closed to further replies.

×
×
  • Create New...