We have moved at community.getvera.com

Author Topic: PLEG Videos - Getting Started with PLEG and Conditions  (Read 11149 times)

Offline petewill

  • Beta Testers
  • Full Member
  • *****
  • Posts: 176
  • Karma: +20/-0
PLEG Videos - Getting Started with PLEG and Conditions
« on: June 19, 2014, 07:54:35 pm »
Hi All,

Everyone on this forum has been so helpful to me I wanted to try to help others if I could.  I made a video that will hopefully help people get started using PLEG.  I am a visual learner and I'm sure I'm not the only one so hopefully this will help some new comers get into the awesome world of PLEG.  I'm no expert but I hope this will help give a basic understanding of how to work with PLEG and be a stepping stone for more advanced conditions. 

Here is the link: http://youtu.be/5iqe3-wqOFg

I made another video on working with time and schedules in conditions: http://youtu.be/MQc1VqDxpMw

Thanks,

Pete

Edit: 8/23 - Added another video link
« Last Edit: August 23, 2014, 09:09:51 am by petewill »
My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 566
  • Karma: +19/-6
Re: Video - Getting Started with PLEG
« Reply #1 on: June 20, 2014, 04:44:24 am »
Very good introduction.. Thanks..
I would really love to see a single video just on conditions..
Triggers and actions are pretty straight forward.. but visually seeing conditions being developed would be good..

in the video.. I didn't understand what you meant by the "using a condition in a condition.. that the 'used' condition must be above the condition" I didn't get if you meant they need to be side by side or the need to have an order of precedence..

thanks again for the video..

PS - If I was being overly critical...... speak faster.. :P

Offline BulldogLowell

  • Hero Member
  • *****
  • Posts: 1576
  • Karma: +191/-85
Re: Video - Getting Started with PLEG
« Reply #2 on: June 20, 2014, 08:21:06 am »
Hi All,

Everyone on this forum has been so helpful to me I wanted to try to help others if I could.  I made a video that will hopefully help people get started using PLEG.  I am a visual learner and I'm sure I'm not the only one so hopefully this will help some new comers get into the awesome world of PLEG.  I'm no expert but I hope this will help give a basic understanding of how to work with PLEG and be a stepping stone for more advanced conditions. 

Here is the link: http://youtu.be/5iqe3-wqOFg

Thanks,

Pete

well done Pete.

Offline petewill

  • Beta Testers
  • Full Member
  • *****
  • Posts: 176
  • Karma: +20/-0
Re: Video - Getting Started with PLEG
« Reply #3 on: June 20, 2014, 09:11:42 am »
Very good introduction.. Thanks..
I would really love to see a single video just on conditions..
Triggers and actions are pretty straight forward.. but visually seeing conditions being developed would be good..

in the video.. I didn't understand what you meant by the "using a condition in a condition.. that the 'used' condition must be above the condition" I didn't get if you meant they need to be side by side or the need to have an order of precedence..

thanks again for the video..

PS - If I was being overly critical...... speak faster.. :P

@konradwalsh, thank for the feedback.  I'll see what I can do about a followup video on conditions.  Anything you would like to see in particular?

In regards to the order of the conditions.  They don't need to be right next to each other it's just best practice to have a condition that will be used by another condition above the condition it will be used in.  If I have Condition1 being used in Condition2 I want to have Condition1 above Condition2.  The reason for this is they are evaluated from top to bottom so if you had Condition1 below Condition2 you would have to wait for PLEG to cycle through again.  Hopefully that makes sense. 

I don't know if I can speak any faster, but I can try :)
My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

Offline ServiceXp

  • Sr. Member
  • ****
  • Posts: 342
  • Karma: +9/-6
Re: Video - Getting Started with PLEG
« Reply #4 on: June 20, 2014, 10:14:24 am »
Well Done Pete. Looking forward to seeing many many more..  :P
U.S.A Vera 3

Offline petewill

  • Beta Testers
  • Full Member
  • *****
  • Posts: 176
  • Karma: +20/-0
Re: Video - Getting Started with PLEG
« Reply #5 on: August 23, 2014, 09:06:29 am »
I finally had some time to make another PLEG video.  I focused on working with time in conditions.  Hope it helps.

http://youtu.be/MQc1VqDxpMw
My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: PLEG Videos - Getting Started with PLEG and Conditions
« Reply #6 on: August 24, 2014, 12:16:05 am »
Nice Job!

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 566
  • Karma: +19/-6
Re: Video - Getting Started with PLEG
« Reply #7 on: August 25, 2014, 10:22:46 am »
I finally had some time to make another PLEG video.  I focused on working with time in conditions.  Hope it helps.

http://youtu.be/MQc1VqDxpMw

Great Job again!!!!!!!!

Thanks for this

Offline MrAutomate

  • Full Member
  • ***
  • Posts: 209
  • Karma: +8/-8
Re: PLEG Videos - Getting Started with PLEG and Conditions
« Reply #8 on: February 07, 2015, 10:16:09 am »
Pete,

Thanks for those videos, they have been helpful.  Can you help me understand REPEAT in a condition? 

I noticed you had no conditions check with REPEAT.  I read the PLEG manual last night, and my understanding is if REPEAT is not checked, the condition will be marked as true, and not fire again.  Am I understanding this correctly?  If so, all of your complex, time based conditions would only fire once? 

If I created a condition:  (15:15:00; UnLockTrigger; 15:35:00)  would this only fire the 1st time ?

I created a virtual switch, put in in a condition w/o REPEAT selected, and it fired the 1st time, but not again.  Hne I changed the REPEAT to SELECTED, the condition triggered the action each time I turned on the virtual switch.

Thanks for helping clarify!




Offline RexBeckett

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3891
  • Karma: +483/-12
Re: PLEG Videos - Getting Started with PLEG and Conditions
« Reply #9 on: February 07, 2015, 10:32:21 am »
Quote
...my understanding is if REPEAT is not checked, the condition will be marked as true, and not fire again.

When Repeat is not checked, a Condition will fire when its evaluation changes from false to true. It will not fire again until it is evaluated as false and then true.

When Repeat is checked, a Condition will fire whenever it is evaluated as true regardless of whether it was previously true or false.

A Condition is evaluated when one of its terms has changed state, value or timing.

Offline petewill

  • Beta Testers
  • Full Member
  • *****
  • Posts: 176
  • Karma: +20/-0
Re: PLEG Videos - Getting Started with PLEG and Conditions
« Reply #10 on: February 07, 2015, 08:41:12 pm »
Yeah, what Rex said.
I think I have only one "repeats" condition and it's for my door lock because I want it to trigger when any code unlocks it (so the condition will always show true but will fire every time it's true again).
My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

Offline homeuser

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +2/-0
Re: PLEG Videos - Getting Started with PLEG and Conditions
« Reply #11 on: February 17, 2015, 09:08:51 am »
Thanks!  I'm just getting started with Vera and pleg. The only code I know is very limited html and css. I've got a big learning curve ahead of me. This is a good start.

I'm currently working to get my motion sensor not stay tripped for 4 minutes. I've scoured the forum but the work arounds don't seem to work for me. I'm sure it's something simple that my dense brain is missing.

Offline petewill

  • Beta Testers
  • Full Member
  • *****
  • Posts: 176
  • Karma: +20/-0
Re: PLEG Videos - Getting Started with PLEG and Conditions
« Reply #12 on: February 17, 2015, 09:16:44 am »
I'm currently working to get my motion sensor not stay tripped for 4 minutes.

I'm not exactly sure what you mean.  Can you please clarify further?  It sounds like you may need to use a timer.  Have you taken a look at my working with time video?

Pete
My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

Offline 4Crawler

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +2/-0
Re: PLEG Videos - Getting Started with PLEG and Conditions
« Reply #13 on: August 12, 2015, 01:19:35 pm »
I made a series of videos on YouTube about using PLEG to automate a bathroom fan ceiling and night light:
- https://youtu.be/EdwiFvRksAk


Offline johnmcc

  • Sr. Newbie
  • *
  • Posts: 47
  • Karma: +0/-0
Re: PLEG Videos - Getting Started with PLEG and Conditions
« Reply #14 on: April 06, 2016, 02:20:32 pm »
petewil, thanks using your videos, have begun to utilise PLEG