Stop actors at night

This is my flow at the moment.
Every 5min the flow check the Lux value.
If it is greater than x then i set the payload to 0.
Else i set the payload to1.
And if the Big Timer is off.
It should be always off.


The light turns on after a short time, when it should be off.