Sun Elevation rule to control outside wall lights

I would highly recommend implementing Rick’s Time of day design patern:

It doesn’t take much time to implement it (just follow the steps and copy the config files).
After you have this running you can take any action you want based on the time of day and whether the sun is going down / coming up etc.

Out of the box you can use it to turn on your outside lights 30 minutes before sundown and turn them off on the moring. Once implemented you can do so much more with it!