Help me with PLEG logic!!!!

I have tried many combinations, but just cant make it to work.
I have several door sensors and the kwiskset z-wave locks.
All I want is that at any point in time the system will check if a door closed and not locked for more than 30 minutes or so, lock it.
If the door sensor is tripped for more than 30 minutes, notify me.

Why is it that complicated?!
Thanks for your help…

Condition name is _FrontLock
FrontClosed (Front door sensor)
FrontUnLocked (Front door kwikset lock open)

FrontClosed AND FrontUnLocked AND(FrontUnLocked;NOW > 30:00)

Are you getting an error … or just that the actions are not firing ?
Did you arm your PLEG ?
Please provide your status report.

It finally worked, thanks.
But what do I enter in order for the timer to reset every time a new event is trigger. (1: sensor tripped 2: lock opened)
My ask is simple. lock the door after x time of inactivity since last change (closed+unlocked)

Thanks,

Eyal

I am not quite sure I understand what you are asking.

If you think the door will be left open for extended periods of time you might want to change to:

Condition
ClosedAndUnLocked FrontClosed and FrontUnlocked
_AutoLock ClosedandUnlocked and (ClosedandUnlocked; NOW > 30:00)

The status report will not show the actual time of the AutoLock state. That is because of an optimization of dealing with NOW.
For testing purposes you can add any other device as an input. It does not have to participate in the conditions.
Than toggle that device and then the status report will show the correct info for that point in time.

Thanks a million.
Testing that logic. I didnt know you can contain a condition within a condition.
I control three doors locks. and what I’m trying to achieve here is for the system to start counting the 30 minutes from the last door closure or unlock event.
the scenario:
The door has been unlocked at 1:30pm, I want it to auto-lock after 30min it has been closed and unlocked.
BUT, assume the door has been opened several times (without locking) between 1:30-1:50pm, I want that the 30 minutes would be counted from the last event (door closed at 1:50).
so expecting the auto lock to occur at 2:20pm and not 2:00pm.
got it?