Yard Light PLTS problem

I’m sure I am missing something silly here. I want to turn the back light on at nghttime when a motion detector is tripped (and the light hasn’t been turned on by something else already)
The report is below, but he only thing that is working is Bypass (at sunrise). It doesn’t Arm or Trigger (when Armed in the control GUI)

Any help gratefully accepted

Settings
Parameter Value
Interval 3:30
Interval2 0
ResetState Off
SwitchMode Immediate Toggle/Delayed Reset
Triggers
Name Description
StairMotion Internal Stairs (Motion) is tripped
Schedules
Name Type Time Days
Device Properties
Name Device Name Device Variable
LightIsOn Backyard Light Status
IsDay Day or Night Status
Conditions
Name Expression
Arm NOT (IsDay)
Bypass IsDay
Trigger StairMotion AND (NOT LightIsOn)
Restart On AND StairMotion
Actions
Actions for Condition: On
Device Action Arguments
Backyard Light SetTarget newTargetValue=1
Actions for Condition: Off
Device Action Arguments
Backyard Light SetTarget newTargetValue=0

Yep - Silly!
Status of Switches (an Day/Night Plugin) doesn’t represent the switches state.
This works:

Settings
Parameter Value
Interval 3:30
Interval2 0
ResetState Off
SwitchMode Immediate Toggle/Delayed Reset
Triggers
Name Description
StairMotion Internal Stairs (Motion) is tripped
Sunset Day or Night indicates Night time.
Sunrise Day or Night indicates Day time.
LightLastOff Backyard Light is turned off
LightLastOn Backyard Light is turned on
Schedules
Name Type Time Days
Conditions
Name Expression
Arm Sunrise;Sunset
Bypass SunSet;Sunrise
Trigger StairMotion AND (LightLastOn;LightLastOff)
Restart On;StairMotion
Actions
Actions for Condition: On
Device Action Arguments
Backyard Light SetTarget newTargetValue=1
Actions for Condition: Off
Device Action Arguments
Backyard Light SetTarget newTargetValue=0

That was on my list of things to look at today … Glad you got it working …