Setting A Timed Light

Hello,
I would like to know how to set something up… I have a single light that come on at different times every night and also goes off at different times every night. I also have a kwikset deadbolt that will turn on the lights in the home when a pin is entered. What happens is when the pin is entered all the lights come on in the home and then after 1 min all the lights go off. The light that comes on at different times each night also goes off and I do not what it to do that. I want it to stay on if it was originally on and if it was originally off I want it to follow the original properties to go off at 1 minute. What code do I need to enter as I am completely lost.
Thank You
Skills

In the scene select “go back to previous settings” after the command to turn the light on for xx minutes.

I got it… I am on ui5 and it was the red arrow… Thank You