Read the very first part of the PDF it explains it quite well and watch the youtube videos again.
I take it as you are new that you use UI7, so i go from that when i try to explain.
First you need to create a "device with the app “Program Logic Event Generator”, or you might already have one dont quite remember if one were automagically created. To check Click “my apps”, and Program Logic Event Generator, details.
If you dont see anything under “This plugin has created the following devices:” then u need to press, create another.
You should now or already have a “PLEG” under devices named “Program Logic Event Generator”
Open this device, you can choose to name it under options if you wish. I have named two of mine to Alarm System and General House Tasks.
Now you have to make a trigger a condition and a action.
For example:
Trigger1 = SceneController1 = true (a button, remote, motionsensor or whatever)
Condition = Cond1ON - “SceneController1” (state of the trigger SceneController1 is true which makes the condition true)
Condition = Cond1OFF - “NOT SceneController1”(state of the trigger SceneController1 is false which makes the condition true, you can make a ! infront of the triggername that would be the same as NOT for example !SceneController1)
Action - Cond1ON= Action for condition1 is turn on light.
Action - Cond1OFF= Action for condition1 is turn off light.
The condition can be quite advanced and use many different expressions. I just mention the easiest example i can imagine.
So what happens in the above example?
you press button, the condition becomes true becuase the trigger becomes true. Now an action tied to the condition is executed. When button no longer is ON the second condition become true, and the action to turn off light is executed.
Read rexbeckets guide very much also check examples subforum. They will help you alot, in the beginning it is hard to think “the right way” and the conditions when trying to make something simple can be very frustrating.
i the beginning i used alot of “virtual switches” (another app) to help me get my conditions right.
Good luck, dont give up on it. It will come to you and reward your efforts with a powerfull tool.
The plegs dont become a scene in the UI. You can say that each “PLEG” you create is its own sandbox, with its won triggers and conditions. Hence i have several PLEGS.
Garden
General House Tasks
Alarm System
And for experimenting i have a pleg called “Area 51”