Turning my lights off

how about setting a timer for the time the photosensor detects light
run until it fails from the loss of light.

add 11 hours to the center point of that timing.

average days and delete any days that are cloudy by ignoring values that are more than 20% off of the expected norm.

granted that it will not be dead accurate, but you could hit a target window of time to turn off without adding more pieces.

Dave