No auto off if door left open?

I have 2 lights setup to come on when doors are opened and to go off when doors are shut. What i would like to do is, because the family sometimes leaves the door open, to shut the light off after the door has been opened for a certain amount of time. I dont see this anywhere?