I have a 2842-222 motion sensor controlling my backyard floodlights through a 2476S switch.
Its options are:
Timeout - 3.0 minutes
LED Brightness - 100
Darkness Sensitivity - 128
Sensing mode - As motion is sensed (checked)
LED On - checked
On commands only - unchecked
Night only mode - checked
The desire is to -
1) Turn on the lights for 3 minutes if there is motion
2) If the user turns on the light with the switch (instead of the motion sensor), let them leave it on as long as possible (don't timeout)
3) They can always turn off the light with the switch
1) and 2) work fine, but 3) does not. If motion turns on the light and you try to turn it off with the switch before the 3 minutes is up, the light turns back on.
Here are the 2 programs:
"Turn on backyard floodlights when there is motion"
If
Status 'Back porch motion-Sensor' is On
And Status 'Backyard flood lights' is Off
And From Sunset
To Sunrise (next day)
Then
Set 'Backyard flood lights' On
$backyard_motion = 1
"Turn off backyard floodlights when motion stops"
If
Status 'Back porch motion-Sensor' is Off
And $backyard_motion is 1
And From Sunset
To Sunrise (next day)
Then
Set 'Backyard flood lights' Off
$backyard_motion = 0
Any ideas why the light turns itself back on?