Hello everyone,
I am really new with this system (5 days), and have been following this thread with great interest.
I would like to suggest a strategy to handle this particular problem. If there are any errors, or if the approach will not work, please let me know. At this point in time, my understanding of how the system and all of its components is limited, and I am in learning mode big time.
First step - set the time outs on both MS's to 5 minutes. As I understand the devices, once triggered and an on is sent, the timer is reset with every motion detected. An off signal will only be sent if there has been no motion for the timeout period (five minutes in this case).
Second step - write a program to turn the light on and off as desired:
If Status 'MS1-Sensor' Is On
Or Status 'MS2-Sensor' is On
Then
Set 'Backyard Light' On
Else
Set 'Backyard Light' Off
If I am reading the event processing comments correctly, when either of these sensors comes on, an event will be produced that runs the then portion of the statement. Once either or both of them is on, and event will be produced when the last of the two turns off (5 minutes after the last motion in this case), which will turn off the light. At present, I only have one motion sensor, so couldn't test with two sensors. I substituted the status of one of my few lights, and it worled as planned.
Third step - Write a program to handle the Sunset/Sunrise aspect.
If From Sunset
To Sunrise
Then
Enable Program BackyardMotion
Else
Disable Program BackyardMotion
Assuming that the above program is named BackyardMotion. I would suggest that the SunsetSunrise program be used as the standard program for setting up standard day and night scenarios, with the backyard setup being just one entry.
Hope this helps.
Jack Rainey
PS - Can someone please tell me how I can put the code into those nice looking inserts that everyone else is using - I put the indents in, but they disappear in the preview and the post.