Issue with Constant Trigger

Via the CADDX Plugin, I am trying to use a PLEG to turn my EntryLightsOn in my entry area when the front door is open. However, there are times when I want to keep my front door open for an extended period, but I don’t want the entry lights to stay on for more than 5 minutes even if the front door remains open for 2 hours.

I have tried writting the PLEG a few different ways, but since the Input “FrontDoorOpen” remains in a triggered state as long as the door is open, it always keeps the entry lights on.

Can someone suggest the logic/functions I should use to make this work?

A normal Condition statement will only fire its Action when it becomes true. The fact that the trigger remains true should not usually be a problem - but that depends on how you have written the logic.

I would use a Self-Trigger Schedule for the five minute timer. When the door is opened, turn on the light and start the timer. When the door closes or the timer finishes, turn off the light.

Ye this shouldn’t be a problem unless you have the “repeats” checked.