I have a problem with my Blockly script on Synology.
I try to switch on a lightswitch.
In the morning from 6:55 (if it's dark) till sunrise.

And in the afternoon/evening: from 16:30 (or after sunset) till 23:30/11:30pm.

This works all well except at the time of 23:30. Then the light switschen on and off repeatedly. Till I pull out the plug.
Sunset and sunrise are set by an "It is dark switch"/"Donker schakelaar".
Do you see why this script does not work well at 23:30?
Domoticz: Version: 3.8875
Build Hash: 3674fa5-modified
Compile Date: 2018-02-02 16:03:49 by Jadahl
dzVents Version: 2.4.1
On: Synology Nas 111
