Question on PLEG

Hi,
this is probably a noob question but i can’t figure this out.
this is my first use of it and it seems like the thing that i want to use a lot but just need to get the basics working.

So, i have a front door switch and a power socket switch. i want the power socket (lamp) to turn on when the front door opens. but i only want this to happen when i come home. So leaving in the morning i don’t want the lamp to turn on when i go out.

At the moment it turns the lamp on every time the door switch triggers…
the front door sensor is my trigger input. i have a schedule set to weekdays, at a certain time of day and set for 14:00.(anything after that i will be coming home and not going out). i also have stop type, day of week, certain time of day 22:00.
i have condition door sensor triggered, action turn switch on.

so, i thought that the input trigger and the schedule both had to be true for the condition to be met. Or do i need to make my condition statement door sensor triggered AND schedule. I tried doing that but i can’t get it add the schedule after i do the Logical operator.

BTW i haven’t purchased a license yet so not sure if there is limited functionality until you do.

cheers

Simplest way is to add the Day/Night App.

Then you can add the trigger ( Night) tNight to your door open condition as txxxxxx And tNight.

Not sure if you have read PLEG Basics? If not then it’s a great read for a newbie with plenty of basic ideas for you to experiment with.

thanks for the pleg basics. i will read it.