Something like this?
Rule Machine, no matter what turns on the light, if there's no motion for 8 minutes, it turns off.