App question to close when no motion

I am using the app darken behind me to shut a light off when there is no motion, am using the aeotec 4 in 1 motion sensor. The issue I dee is that even within a minute when motion ends the light goes off and there is no timer to say X amount of time after motion, is there an app that would close the light after X amount of time of no motion.
thanks.