Trigger when device is in define state during a time

Hello,

Is there an app can do this?

For example:

IF the door is open for 10 sec
THEN Turn on light
ELSE Nothing (or another thing)

I use the Timer and Countdown Timer apps but for other uses a simpler app would be handy.

Unfortunately, no I think not.
Without an app you can do this:

The app developer of the door contact has to include it as an option.
While this is possible: