Alexa and routine

I am a newbie to SmartThings. I want to tell Alexa I am leaving and she turns on one light, turns on patio light if is between sunset and sunrise, and waits 1 minute and locks door. I have successfully done everything but the patio lights to only come on after dark when I tell Alexa I am leaving. Can anyone help me with this?

I would Use virtual switch creator to create a virtual switch in ST that the Alexa routine can turn on. Then use a smart lighting rule in ST to apply the logic.

You can search the forum here for “Alexa routines” to find this and other ideas for integrating ST and Alexa routines.

Thank you. This worked. Appreciate the help.