Motion sensor trip time schedule

I need a little help about my PLEG condition. I have a motion sensors that trip time is 3 minutes so when there is no motion in 3 minutes there is a light off. How can I extend the trip time 15 minutes instead of 3 minutes between morning 07:30 to 11:00.

What I have done for my master bathroom fan (motion resets after 1 minute) is:

  1. Create a timer (I use Countdown Timer) that is started when motion is detected and restarted when motion no longer detected. My timer is for 30 minutes. In this way, when you enter the bathroom, it starts the fan on motion and runs the fan for 30 minutes after motion is no longer detected. It also looks at humidity but that is beyond the scope of your question.
  2. Create a schedule for 7:30 to 11:00
  3. Create a condition that starts/restarts/cancels the timer based upon motions.
  4. For your On condition, it can be triggered anytime there is motion. For the Off condition, it can be based on both no motion, and the schedule being true, and the timer being 0.

You can play around with all this until you get it to work as you need.

Thank you very much, before I never use countdown timer, I will try out your suggestion.

There is a build in timer in PLEG but I have not been able to get it to work.