The just need to look at the rotation of the directional light. When it’s below the horizon, turn on
Better to do it on a timer, than tick
You might need to fiddle with the parameters a bit…