Pleg Question/Offer

Hi All,

I’ve had Vera for a few years now and have programmed scenes and written Luup code. But I’ve never used PLEG and am lost. I really want to get PLEG Example - Detect Door Left Open with Repeated Notifications up and running on my system, but I’m not understanding what it means, at all. Can anyone help me? Heck, I’ll Venmo ($10?) to anyone who can get me on the right track.


UPDATE: Looks like Reactor can do it all. Pretty amazing stuff. Will donate to the dev.


use reactor its less of a curve and really great. if you want to see an example Notification and TTS on first alert, then repeat TTS only every x interval
and the developer rigpapa is on the ball

Give the $10 to the developer


I don’t see how it could be explained any simpler that the original RTS Post.
It’s all there in the screen shots, albeit they are in UI5, the same applies for UI7.
If you’re still stuck then if you can explain where you’re stuck then others can chime in.

I don’t think the screenshots made through the forum transfer vortex. I did offer him transport to a forum a long way away…

On the original thread link in OP

using your link they materialised on my LT OK.

This manual is a start:
PLEG Basics.pdf (468.3 KB)

The key to selecting some sort of logic input (a trigger, schedule, property ,etc.):


For instance a trigger when a light is turned on (let’s say t1) and one when it turned off (t2). Or if the humidity is > 30% pHumidity, or motion is detected tmotion.

Then you create a condition:

So when t1 is true, c1 becomes true (and t2, c2).

So imagine properties like phumidity is greater than 30%, and tmotion is detected, then the condition chumid_motion is true when thumidity is true and tmotion is true. Or it can be an or. It depends on what you are doing.

So now you set the action, based on that condition being true:

Where you select that newly created condition and within that, you pick the device(s) action(s) you want to execute. So if chumid_motion is true, turn on the bathroom fan.

Then you create the opposite action to turn off the fan when the opposite condition is true, like not humid !phumid or you create other properties or triggers.

You start by having the logic working on something simple, like turn on a light with motion, you then create more complicated conditions like if motion, and between certain hours, and not daytime, and not away mode, then the condition is true and when true, turn on a light.

Once your condition is defined, then you create a

Best Home Automation shopping experience. Shop at getvera!

© 2021 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules