I wanted to create a Blockly to switch of all ZiBee lights after a power failure or a brown-out. As it happens all my ZigBee devices turn on after a power failure which is a nuisance when I am not at home.
I created the following Blockly:

EDIT: Changing the "or" to "and" made the blockly work

It works (or I think it does) when the sun has not set. Unfortunately the script switches of the lights even if the sun is set

Any help greatly appreciated

Greetz,
Sjonnie