Author Topic: PLEG Basics - An Introduction to the Program Logic Event Generator  (Read 148049 times)

Offline vikram.m

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: PLEG Basics - An Introduction to the Program Logic Event Generator
« Reply #495 on: January 04, 2018, 02:15:15 am »
Hi,

I have successfully installed PLEG plugin. I went through basics pdf. But unable to create simple basics.
I have setup 6 in 1 multisensor using vera controller, trying to get simple notification when motion is detected. I am missing something , please help me out here.
Steps that i performed:
1. Configured Device trigger
2. Conditions
3. Logic actions
4. set Notification

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: PLEG Basics - An Introduction to the Program Logic Event Generator
« Reply #496 on: January 04, 2018, 03:19:36 am »
5) Reload LUA
6) Test
7) Check Status Report

Offline vikram.m

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: PLEG Basics - An Introduction to the Program Logic Event Generator
« Reply #497 on: January 06, 2018, 01:45:29 am »
Thanks for the reply Richard.
Can you please help me for below scenarios as well.
1. I have 2 motion sensor, where both will be idle/no motion detection happens at same time i.e. 30mins in onecase and 1hr idle in another case and then need to send notifications using AND operations. I tried where device is armed and no motion detects in vera but didn't work.
2. I have 1 motion sensor , where it will be idle/no motion detection occurs for 30mins in onecase and 1hr idle in another case and then need to send notifications. I tried where device is armed and no motion detects in vera but didn't work.
3. How get notification when no motion detection occurs between the time range for example: 5 AM to 9 AM
4. Is there way to get notification so that  i can identify a person fall detection using motion sensors.
5.  Can you please share link or documents which provides details and example of using expression like when use sequence expression, multi trigger expression and general expression .
This details will really help for my project.

With regards,
Vikram

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: PLEG Basics - An Introduction to the Program Logic Event Generator
« Reply #498 on: January 06, 2018, 07:49:36 am »
You really should start a new thread for your question.

Strategy:
Input Timer:  Named Morning  Starts at 5AM every day ... ends at 9AM every day.
Inputs   Motion1 ... MotionN

Conditions:
AnyMotion                  Motion1 or Motion2 or ... MotionN
MorningMotion            Morning; AnyMotion; !Morning
NoMorningMotion        !MorningMotion and (!MorningMotion;!Morning)


Attach your alert to NoMorningMotion



Offline sely

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +2/-3
Re: PLEG Basics - An Introduction to the Program Logic Event Generator
« Reply #499 on: September 30, 2018, 02:08:02 pm »
I recently had my PLEG program give a 'Lua Startup Failure'.  Searching around I found people recommending reloading the PLEG and PLEG Core.  After doing this I tried importing my logic and keep getting a "Could not find:Program Logic Event [177]" error message.  I don't know what this is, I list all my devices and don't have a 177.  I think this is my old PLEG device number?  Can't restore my old programming.  Any help is appreciated.  See screen shots attached.

Offline BerrytH

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: PLEG Basics - An Introduction to the Program Logic Event Generator
« Reply #500 on: February 17, 2019, 07:27:09 pm »
Priest,

I am by no means a power PLEG user, but I do feel confident enough to help you get started understanding PLEG. For the purpose of this tutorial I suggest that you create a new instance of PLEG by going to APPS > then click the [DETAILS] button of the Program Logic Event Generator plug-in then click the [Create another] button. Once the new instance is created and on your Devices page name it whatever you want. I will be using my WEATHER PLEG instance for the demo, but any instance will be fine. Next locate the new instance that you just created and click the SETTINGS icon (its the > sign in the grey circle) then select Edit from the Vera menu. This opens the PLEG editor and is where we will do all the 'magic'.

I?m sorry to border you but your explanation is very clear, but I can?t get PLEG working...I?ve VERA UI7.
On the devices page below the new instance that I?ve created are two buttons: ARM and Bypass and the settings button.
If I push the settings icon, I can select the edit button but after doing that I always get an Error: ?Error executing function plegInit(): Expect Function.
What am I doing wrong, I?ve uninstalled and installed the PLEG app several times without success.
Any help would be appreciated,
Thanks