Sunrise-sunset blocky not working

Post Reply
niclasc
Posts: 63
Joined: Wednesday 09 December 2015 18:04
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Sweden
Contact:

Sunrise-sunset blocky not working

Post by niclasc » Monday 04 September 2017 19:55

I have 2 blocky scripts for setting a dummy switch on or off depending on if sun is up or down.

But it never switches on or off

Can anyone tell me why its not working?


Screenshot from 2017-09-04 19-50-59.png
Screenshot from 2017-09-04 19-50-59.png (23 KiB) Viewed 1549 times
Screenshot from 2017-09-04 19-50-34.png
Screenshot from 2017-09-04 19-50-34.png (24.28 KiB) Viewed 1549 times

Andree
Posts: 80
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

Sunrise-sunset blocky not working

Post by Andree » Monday 04 September 2017 21:53

Becouse you have to set "OR" instead of "AND".
Time > Sunset OR time < Sunrise

bldewit
Posts: 15
Joined: Tuesday 09 May 2017 23:31
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sunrise-sunset blocky not working

Post by bldewit » Saturday 25 August 2018 9:55

I think these scripts are cancelling each other. All items in the IF-section are triggers, so if the first script turns it on, the second script is triggerred and switches it off...

Maybe switching the blockly category from ALL to TIME will solve it, but I have found LUA to be much more accurate in controlling which switches are used for triggering and which for reference. Also you have the benefit of nested IF's in LUA, which also gives more control.

Looking at the date of this post I sincerely hope you have already solved this problem though 😁

Prutsium
Posts: 57
Joined: Monday 18 June 2018 11:31
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany / Netherlands
Contact:

Re: Sunrise-sunset blocky not working

Post by Prutsium » Saturday 25 August 2018 11:02

Had a similar issue check here: http://www.domoticz.com/forum/viewtopic ... 42#p188942

In my case it was If/Or issue.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest