Trying to get PLEG to run

Hi,

I have just installed and tried to setup my first Program Logic Event but I can’t get it run.

Here is the status. Also I have purchased a licence but it reports not licenced. I have activated it and in the licence part of the deivce I have this ‘Your are registered. You have 14 license units. You are allowed a total of 56 PLEG and/or PLTS plugins’.

Thanks in advanced.

Automate Living Room Lights
Device ID: 442014-05-28 11:55:55.142 PLC Version: 6.9
Registration
You are not licensed!
Triggers
Name Description State Last True Last False
Motion Sensor02 (motion) is tripped false 2014-05-27 18:46:20.159 2014-05-28 07:41:35.512
Night_Time Day or Night indicates Day time. false 0 0
Conditions
Name Repeat Expression State Last True Last False
LightOn No null 0 2014-05-28 11:53:16.007
LightOff No null 0 2014-05-28 11:53:16.007
Actions
Actions for Condition: LightOff
Device Actions:
Immediate
Device Action Arguments
Lamp (Plug01) SetTarget newTargetValue=0
Actions for Condition: LightOn
Device Actions:
Immediate
Device Action Arguments
Lamp (Plug01) SetTarget newTargetValue=1

I don’t know why you are getting problems with the licence. Try re-entering it and then doing a Save and browser refresh. Even without the licence, your simple PLEG should run, though.

There are a few problems with your configuration:

You have set the Trigger Night_Time to be true during the day. This will be confusing. Either change its name to Day_Time or change the Trigger to Day or Night indicates Night time.

You need to enter expressions for your two Conditions to determine when they become true and fire their respective Actions. You might want something like this:

LightOn Motion and Night_Time
LightOff !Motion and Night_Time

Once you get it working you will probably want to add a timer and/or other logic.

Have you seen PLEG Basics?

Thanks. I will try. I have also downloaded the PLEG basics.