H2 Trigger sleep function for light (like a countdown)?

I am creating a “Good Night” scene which will basically turn off everything.

However, there is one light which will need to stay on for like 5 minutes and should then turn off automatically. What would be the best way to achieve such a sleep functionality?

Well, I don’t use scenes, but from the little I read about them, I would think you would not include this one light in the scene. Then you could write a script that activates the scene (turning everything off but the one light), delays 5 minutes, then turns off the last light. You can execute the script manually via the frontend, or you could use an automation to start it running.

Yeah, I guess that would indeed be the easiest way. Thanks!