PLEG Conditions - for a PLEG NEWB

I saw this post : http://forum.micasaverde.com/index.php?topic=17222.0

talking of how to avoid creating an explicit schedule in PLEG, but telling PLEG right from the condition to trigger an event. I have looked for documentation on this specific topic, but cannot seem to locate any complete, clear examples.

Can please someone post a reply with the syntax of how my condition box needs to appear to trigger an event between 3:00PM and 3:30 PM.

If I have misunderstood the ability to enter time triggers right inside of a condition without creating a schedule entry, please let me know.

Thanks

That’s a sequence expression.

So the following will do

TriggerInIterval Trigger and (15:00:00; Trigger; 15:30:00)

@MrAutomate, have you seen PLEG Basics? Page 16 explains the use of absolute times in Sequence Expressions.

@RexBeckett: It appears I had an old copy, printed, and I just printed the newest version. It appears the documentation difference between V6.2 and V7.35 might be somewhat substantial. I have just printed a copy and will try to understand it.

@ Richard: I am confused why a trigger is referenced two times. Would you please break this down in english:

TriggerInIterval Trigger and (15:00:00; Trigger; 15:30:00)

@ forum experts:
As I am a visual, and hands on learner, please tell me, in a condition, what exactly, do I type in to the condition box, to trigger at a time of day, without creating a schedule, that is not dependant on any trigger.

I want a condition to fire , say at 7:30 am., no matter what else. Once I can understand this, I can attempt to add on to the conditions using the trigger example Richard provided.

Thanks all!

[quote=“MrAutomate, post:4, topic:185804”]@ Richard: I am confused why a trigger is referenced two times. Would you please break this down in english:
TriggerInIterval Trigger and (15:00:00; Trigger; 15:30:00)[/quote]

You are referencing the same Trigger two ways - once as a true/false boolean to see if it is still true, and again as a timestamp to see when it last became true.

So this reads in English as Trigger is true, and the last time the Trigger became true was between 15:00:00 and 15:30:00.

Because even when Trigger becomes false, the last time the Trigger became true won’t change until Trigger becomes true again…

I am confused why a trigger is referenced two times. Would you please break this down in english:

Trigger and (15:00:00; Trigger; 15:30:00)

In this context it would work with just the second part … but it opens up the better understanding.
The second part does NOT care if the the Trigger is ON … it only cares if the Trigger was turned ON during the interval.

Say you wanted to add to the above when the door was open:

DoorOpen and Trigger and (15:00:00; Trigger; 15:30) 

The above will be true when the Door is Open and the Trigger Happens and it Happened between the interval.
If you take out the and trigger from the above Expression

DoorOpen and (15:00:00; Trigger; 15:30:00) 

Than it would still fire (Evaluate to true) with the following sequence:

15:01:00 Trigger
15:05:00 NOT Trigger
16:00:00 Door Open

Why ??? Because the second part of the expression is only concerned with the TIME that the Trigger last became true. It does not care if it’s still true!