Tuinlight wont work.

Moderator: leecollings

Post Reply
Ronnyboy
Posts: 10
Joined: Monday 25 January 2016 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Tuinlight wont work.

Post 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 1060 times
User avatar
Domosapiens
Posts: 232
Joined: Wednesday 20 August 2014 12:08
Target OS: Windows
Domoticz version: V3.5981
Location: NL
Contact:

Re: Tuinlight wont work.

Post 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)
Win Vista&7; 1#Aeon Z-Stick S2; 1#Aeotec Z-Sick Gen5, 6#Fib.FGBS001; 24#DS18B20; 8#Everspr.AN158-2; 3#Philio PAN04; 1#Philio PAN06, 1#YouLess El; 1#Fib.FGWPE; 1#ZME_RC2; 2#FAK_ZWS230, 2#Quib.ZMNHCDx, 1#Quib.ZMNHDD1, 7#EM6555
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Tuinlight wont work.

Post by freijn »

Please see a working blocky with sun checking.

Hope this helps you
Attachments
Capture.JPG
Capture.JPG (44.95 KiB) Viewed 1012 times
Ronnyboy
Posts: 10
Joined: Monday 25 January 2016 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tuinlight wont work.

Post 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!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest