I've added two boolean logic variables,
As simple as if is dark outside or not. Turn on at sunset, and turn off when sun rise.
I want a boolean variable to flag when there is bright light outside. Typically I use this to for some of the rooms with a lot of windows, turn off the lights in the middle of the day in the summer.