It seemed to be working fine, though there are some flickers that do get longer when I keep switching from day to night.
Here's the event used for turning the lights on:
And here's the event used for turning it off:
Here's the event used for turning the lights on:
And here's the event used for turning it off: