iPhone Presence during certain times

There’s a few ways this could be done.

Using base routines: Create 2 different modes (Daylight/SunsetEvening)
Then create one routine to change the mode to SunsetEvening when the time is sunset. Then have another routine that turns the lights on when you come home but only run if mode is SunsetEvening.

Now thats using the built in systems, but there is something called Rule Machine, search the forums for that and on how to install it and use it.
It will do 95% of all your home automation needs. (I use it massively).