Page 1 of 1

Tuinlight wont work.

Posted: Tuesday 20 February 2018 15:45
by Ronnyboy
Hello
Can someone tell me why this isn't works?
Thanks if you can help me.
Schermafbeelding 2018-02-20 om 15.36.45.png
Schermafbeelding 2018-02-20 om 15.36.45.png (205.92 KiB) Viewed 1063 times

Re: Tuinlight wont work.

Posted: Thursday 22 February 2018 12:29
by Domosapiens
I think Sunset and Sunrise is a time moment and not a time period.
Start with a simple dummy switch: IS_DARK.

IF (Time >= Sunset OR Time <= Sunrise) AND IS_DARK=Off
Do IS_DARK=On
IF (Time < Sunset OR Time > Sunrise) AND IS_DARK=On
Do IS_DARK=Off

If this works ..
You can use IS_DARK in other Blokly's.

And ... don't forget to select the type of Blockly to set on Device (on the right side)

Re: Tuinlight wont work.

Posted: Thursday 22 February 2018 13:21
by freijn
Please see a working blocky with sun checking.

Hope this helps you

Re: Tuinlight wont work.

Posted: Sunday 25 February 2018 1:30
by Ronnyboy
freijn wrote: Thursday 22 February 2018 13:21 Please see a working blocky with sun checking.

Hope this helps you
Ok, i've used your blocky, and it works!
Thanks!!