my code looks like it should work. But after about 4 minutes it finally clicked the two lights on.
[table]
[tr]
[td]Program Logic Event Generator
Device ID: 812014-03-04 16:32:34.909 PLC Version: 6
Registration
You have 1 licenses, which allows for 4 PLEG and/or PLTS plugins.
Your license key is: $1$1J4tlX5J$DQdLjWk40W2MZyN4RArdAA
Triggers
Name Description State Last True Last False
Front_door_tripped FRONT DOOR is tripped false 2014-03-04 16:11:31.727 2014-03-04 16:12:56.957
Back_door_tripped BACK DOOR is tripped false 2014-03-03 23:18:23.818 2014-03-03 23:18:28.798
Night_time_arrived Day or Night indicates Night time. false 2014-03-03 23:11:59.307 2014-03-04 06:34:26.121
Day_time_has_arrived Day or Night indicates Day time. true 2014-03-04 06:34:26.123 2014-03-03 23:11:59.310
Family_room_Light_on Family Room Light is turned on false 2014-03-04 06:51:44.151 2014-03-04 10:12:01.501
MotionX House Motion Sensor armed is tripped false 2014-03-04 16:32:40.108 2014-03-04 16:32:53.496
MotionX_X Arduino Motion 1:0 armed is tripped true 2014-03-04 16:32:38.108 2014-03-04 16:31:31.068
Schedules
Name Type Time Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last On Last Off
MotionSchedule Weekly 22:00:00 1,2,3,4,5,6,7 None Weekly 05:00:00 1,2,3,4,5,6,7 None true 2014-03-04 16:20:08.744 2014-03-04 16:16:25.691
OffMotionTimer Self ReTrigger None Interval 00:10:00 None true 2014-03-04 16:32:53.549 2014-03-04 15:03:23.101
Conditions
Name Repeat Expression State Last True Last False
c1 No !Family_room_Light_on AND (Front_door_tripped OR Back_door_tripped) AND Night_time_arrived false 2014-03-03 22:41:20.413 2014-03-03 22:41:21.633
c2 No Family_room_Light_on AND (back_door_tripped OR Front_door_tripped) AND Night_time_arrived false 2014-03-03 23:19:20.786 2014-03-03 23:19:24.616
MotionXStart No MotionSchedule AND (MotionX OR MotionX_X) true 2014-03-04 16:29:34.092 2014-03-04 16:29:22.098
MotionXRestart Yes MotionXStart true 2014-03-04 16:32:53.529 2014-03-04 16:29:22.100
MotionXDelayedStop No MotionXStart;!OffMotionTimer false 2014-03-04 15:04:05.480 2014-03-04 16:22:29.104
Actions
Actions for Condition: c1
Immediate
Device Action Arguments
Family Room Light SetTarget newTargetValue=1
Hallway Light SetTarget newTargetValue=1
Family Room Plug SetTarget newTargetValue=1
Front Porch SetTarget newTargetValue=1
Delay 45
Device Action Arguments
Family Room Plug SetTarget newTargetValue=0
Family Room Light SetTarget newTargetValue=0
Hallway Light SetTarget newTargetValue=0
Front Porch SetTarget newTargetValue=0
Actions for Condition: c2
Immediate
Device Action Arguments
Hallway Light SetTarget newTargetValue=1
Family Room Plug SetTarget newTargetValue=1
Front Porch SetTarget newTargetValue=1
Delay 45
Device Action Arguments
Family Room Plug SetTarget newTargetValue=0
Hallway Light SetTarget newTargetValue=0
Front Porch SetTarget newTargetValue=0
Actions for Condition: MotionXStart
Immediate
Device Action Arguments
Family Room Light SetTarget newTargetValue=1
Family Room Plug SetTarget newTargetValue=1
Actions for Condition: MotionXRestart
Immediate
Device Action Arguments
Program Logic Event Generator StartTimer timerName=OffMotionTimer intervalTime=
Actions for Condition: MotionXDelayedStop
Immediate
Device Action Arguments
Family Room Light SetTarget newTargetValue=0[/td]
[/tr]
[/table]
Then I disarmed the two sensors toggled the schedule and this is what I got. But light not off yet.
[table]
[tr]
[td]Program Logic Event Generator
Device ID: 812014-03-04 16:40:00.490 PLC Version: 6
Registration
You have 1 licenses, which allows for 4 PLEG and/or PLTS plugins.
Your license key is: $1$1J4tlX5J$DQdLjWk40W2MZyN4RArdAA
Triggers
Name Description State Last True Last False
Front_door_tripped FRONT DOOR is tripped false 2014-03-04 16:11:31.727 2014-03-04 16:12:56.957
Back_door_tripped BACK DOOR is tripped false 2014-03-03 23:18:23.818 2014-03-03 23:18:28.798
Night_time_arrived Day or Night indicates Night time. false 2014-03-03 23:11:59.307 2014-03-04 06:34:26.121
Day_time_has_arrived Day or Night indicates Day time. true 2014-03-04 06:34:26.123 2014-03-03 23:11:59.310
Family_room_Light_on Family Room Light is turned on true 2014-03-04 16:33:42.677 2014-03-04 10:12:01.501
MotionX House Motion Sensor armed is tripped false 2014-03-04 16:38:17.897 2014-03-04 16:39:26.447
MotionX_X Arduino Motion 1:0 armed is tripped false 2014-03-04 16:38:00.532 2014-03-04 16:39:11.167
Schedules
Name Type Time Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last On Last Off
MotionSchedule Weekly 22:00:00 1,2,3,4,5,6,7 None Weekly 05:00:00 1,2,3,4,5,6,7 None false 2014-03-04 16:20:08.744 2014-03-04 16:39:00.888
OffMotionTimer Self ReTrigger None Interval 00:10:00 None true 2014-03-04 16:38:30.152 2014-03-04 15:03:23.101
Conditions
Name Repeat Expression State Last True Last False
c1 No !Family_room_Light_on AND (Front_door_tripped OR Back_door_tripped) AND Night_time_arrived false 2014-03-03 22:41:20.413 2014-03-03 22:41:21.633
c2 No Family_room_Light_on AND (back_door_tripped OR Front_door_tripped) AND Night_time_arrived false 2014-03-03 23:19:20.786 2014-03-03 23:19:24.616
MotionXStart No MotionSchedule AND (MotionX OR MotionX_X) false 2014-03-04 16:37:42.676 2014-03-04 16:39:00.908
MotionXRestart Yes MotionXStart false 2014-03-04 16:38:30.129 2014-03-04 16:39:26.481
MotionXDelayedStop No MotionXStart;!OffMotionTimer false 2014-03-04 15:04:05.480 2014-03-04 16:22:29.104
Actions
Actions for Condition: c1
Immediate
Device Action Arguments
Family Room Light SetTarget newTargetValue=1
Hallway Light SetTarget newTargetValue=1
Family Room Plug SetTarget newTargetValue=1
Front Porch SetTarget newTargetValue=1
Delay 45
Device Action Arguments
Family Room Plug SetTarget newTargetValue=0
Family Room Light SetTarget newTargetValue=0
Hallway Light SetTarget newTargetValue=0
Front Porch SetTarget newTargetValue=0
Actions for Condition: c2
Immediate
Device Action Arguments
Hallway Light SetTarget newTargetValue=1
Family Room Plug SetTarget newTargetValue=1
Front Porch SetTarget newTargetValue=1
Delay 45
Device Action Arguments
Family Room Plug SetTarget newTargetValue=0
Hallway Light SetTarget newTargetValue=0
Front Porch SetTarget newTargetValue=0
Actions for Condition: MotionXStart
Immediate
Device Action Arguments
Family Room Light SetTarget newTargetValue=1
Family Room Plug SetTarget newTargetValue=1
Actions for Condition: MotionXRestart
Immediate
Device Action Arguments
Program Logic Event Generator StartTimer timerName=OffMotionTimer intervalTime=
Actions for Condition: MotionXDelayedStop
Immediate
Device Action Arguments
Family Room Light SetTarget newTargetValue=0[/td]
[/tr]
[/table]