I'm programming challenged and am trying to set up a simple program to control a light with a motion sensor. I want the program to only execute at night and only if the light switch has not been manually turned on. In other words I want it to behave like a typical nighttime motion sensor operating only when motion is sensed after dark, otherwise the light can be manually turned on and off using the switch and unaffected by the motion sensor.
I tried coping the program that was on the forum but for some reason it's not working for me. Here is the list of programs I've been using...
'DrivewayMotion'
If
Control 'Driveway Motion Sensor-Sensor' is switched On
And Status 'Driveway Motion Sensor-Dusk/D' is On
And Status 'Driveway Spot' is not On
And Program 'DrivewayMotionTimerEnable' is True
Then
Set 'Driveway Spot' 2 (Beep Duration)
Set 'Driveway Spot' On
Else
- No Actions - (To add one, press 'Action')
'DrivewayMotionNotDetected'
If
Status 'Driveway Motion Sensor-Sensor' is Off
And Status 'Driveway Spot' is On
And Program 'DrivewayMotionTimerEnable' is True
Then
Wait 10 seconds
Set 'Driveway Spot' Off
Else
- No Actions - (To add one, press 'Action')
'DrivewayMotionTimerEnable'
If
- No Conditions - (To add one, press 'Schedule' or 'Condition')
Then
Set Program 'DrivewayMotionTimerEnable' To Run At Startup
Else
Set Program 'DrivewayMotionTimerEnable' To Not Run At Startup
'DrivewayMotionTru/False'
If
Control 'Driveway Spot' is switched On
And Control 'Driveway Spot' is not switched Off
Then
Run Program 'DrivewayMotionTimerEnable' (Else Path)
Else
Run Program 'DrivewayMotionTimerEnable' (Then Path)
Can someone tell me what I'm doing wrong? I have the sensor set up with the jumper on pin 5 so it will only be controlled from the ISY and I don't have it in a scene with the switch or manually linked to the motion sensor through the set button.