Sunrise \ Sunset updating 2 helpers

Hi there,

I have set up some motion activated lights which link in with my cctv software to turn lights on and off.
I have created a helper called sunrise and one called sunset and these are the conditions used to turn the lights on.

Now I want to go to the next stage and automatically update the helpers to be accurate all year round but to give me the option to turn whatever automation controls them to give me manual control when needed.

image

sun.sun provides these, I think you are reinventing the wheel.

I used the sun.sun in the end because I couldn’t work out how to do what I wanted
I just had to rewrite the conditions element of the automation