Scene programming question

I have an outside light programmed to turn on/off before and after sunrise, then on/off again before and after sunset. During the day, in between these two scenes, when I intend for this light to remain off, how do I create a 3rd scene that will turn the light off shortly after one of my kids turns on the light by accident during the day? I know I can setup a trigger in a UI5 scene “when switch turned on”… “turn off after a X second delay”. But how do I contrain and limit this scene to only be active in day, between my sunrise and sunset scenes? Thanks

In the Luup tab for the scene paste this:

return luup.is_night() == false

If it’s daytime, the function will run the scene. At night, the function call will preempt running the scene.
In the scene, delay by x seconds and then turn off the lights.