How to set a simple timer reset

Then you might use the card “when zone becomes inactive” and use the delay in the card switching of the light.