Yeah, I'm just aiming for the "troubleshooting by process of elim" method.
The fewer conditions the better. As you prove one condition, replace it with another. Once that has one
been proven, add 'em together to test the logic. Further, you'll also be testing for potential noise on the
line, i.e., if you know the condition cannot possibly be true and the light still comes on, you've got
something else goin' on.
Once you're comfortable and you've got 100% reliability, then replace the times with dusk/dawn and retest.
I know, it's a PITA, but...