Another PLEG-for-beginner cry

For some reason PLEG does not fully do want I want it to do:

→ Trigger = even from the Visonic alarm panel, aka X10 switch “X01”
->I want it to work all days of the week, just only AFTER sunset.
→ So IF Trigger received AND it’s after sunset => Lamp on … and after 1 minuted lamp out again.

Extremely simple scenario, but not fully working :

→ Trigger is coming in from the alert panel
→ Lamp is going on (yeaaahhh)
→ Lamp is not going out anymore, despite my “delay” of 1minute that I have set

Program Logic Event Generator
Device ID: 112013-10-21 22:04:27.610 PLC Version: 5.1
Triggers
Name Description Last Trigger State
t1 Yard (X01) is turned on 2013-10-21 21:50:07.638 false
Schedules
Name Type Time Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last Schedule
t2 Weekly +01:00:00t 1,2,3,4,5,6,7 None None None false 0
Conditions
Name Expression Last True State
c2 t1 AND t2 2013-10-21 21:25:59.749 false
Actions
Actions for Condition: c2
Immediate
Device Action Arguments
X-Lamp SetTarget newTargetValue=1
Delay 01:00
Device Action Arguments
X-Lamp SetTarget newTargetValue=0

Any ideas how to troubleshoot something like this?

If you do not schedule an OFF time for a schedule input … it is only valid for a single moment. In this case at 1 hour after sunset. With your specification t2 will be false the next time your arm the security system.

If you want this to run from sunset to sunrise … you need to set the OFF time for t2 to be -1:00:00r for M-S. (Or what ever time you desire).

Also t2 is currently false … because it has never been scheduled yet … PLEG sets condition values and input variables when the values change/are triggered.

OK, that is under control now :wink: Thanks!
Pretty powerfull … why the hell is this not even standard in UI integrated ? You should license it :wink:

Same with certain timers. With my previous X-10 software I could with a few clicks make a timer that was active after sunset, between date X and Y