Just like that, it looks ok. Have you tried monitoring the variables and timers to see if they get set to the values you expect when the light gets turned off after an increased light level?
_________________________
"If you don't know what you're doing, do it neatly..."