"Time > Sunrise AND Time < Sunset" doesn't work

Post Reply
Feddan
Posts: 7
Joined: Wednesday 18 October 2017 16:04
Target OS: -
Domoticz version:
Contact:

"Time > Sunrise AND Time < Sunset" doesn't work

Post by Feddan » Wednesday 18 October 2017 16:10

I have two saved events, where I want to turn Off an outside lamp on Sunrise, and turn it On on Sunset.

Sunrise:
DomoBlockySunrise.PNG
DomoBlockySunrise.PNG (39.68 KiB) Viewed 1549 times

Sunset:
DomoBlockySunset.PNG
DomoBlockySunset.PNG (39.26 KiB) Viewed 1549 times

But it doesn't work! What am I missing?

CaesarPL
Posts: 119
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: "Time > Sunrise AND Time < Sunset" doesn't work

Post by CaesarPL » Wednesday 18 October 2017 16:25

Why blockly :) ? You can do it directly on the switch.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge

Feddan
Posts: 7
Joined: Wednesday 18 October 2017 16:04
Target OS: -
Domoticz version:
Contact:

Re: "Time > Sunrise AND Time < Sunset" doesn't work

Post by Feddan » Wednesday 18 October 2017 19:08

CaesarPL wrote:
Wednesday 18 October 2017 16:25
Why blockly :) ? You can do it directly on the switch.
Oh, I did not know that. I will try that instead, thanks!

User avatar
jvdz
Posts: 1313
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: "Time > Sunrise AND Time < Sunset" doesn't work

Post by jvdz » Wednesday 18 October 2017 20:22

For the record: The SunSet blockly is never true as that is pretty impossible when you think about it! Maybe an OR relation would be better for that one. ;)

Jos

CaesarPL
Posts: 119
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: "Time > Sunrise AND Time < Sunset" doesn't work

Post by CaesarPL » Thursday 19 October 2017 9:21

Please check my example. When you press Timers, you can set time when you want to switch On or Off

Image
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge

User avatar
Derik
Posts: 2100
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: "Time > Sunrise AND Time < Sunset" doesn't work

Post by Derik » Thursday 19 October 2017 9:46

you need to make a blockley more in this setup. because you use the extra if blockley...

Or you can use the base blockley.
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

olleman
Posts: 39
Joined: Thursday 01 January 2015 19:56
Target OS: Linux
Domoticz version:
Contact:

Re: "Time > Sunrise AND Time < Sunset" doesn't work

Post by olleman » Tuesday 12 December 2017 17:07

I'm having a similliar problem but my blockly is a bit more advanced so I can't solve it directly on the switch.

My first condition (this one triggers as expected)
is "If PIR on AND Time: >Sunset AND Time: <22.00
Set whatever Switch on for 2 minutes

Second condition (this one doesn't trigger)

"If PIR on AND Time: >Sunset AND Time: <Sunrise
Set whatever Switch on for 2 minutes

Any suggestions to what I'm doing wrong?

kuifje
Posts: 13
Joined: Wednesday 25 October 2017 16:38
Target OS: Windows
Domoticz version:
Contact:

Re: "Time > Sunrise AND Time < Sunset" doesn't work

Post by kuifje » Thursday 14 December 2017 7:58

When its >sunset it is <sunrise, and the other way around. You dont need the <sunrise of the >sunrise. And you dont need the if/else blocky but the one without the blue thing.
Good luck.
Kuifje

Xztraz
Posts: 126
Joined: Tuesday 31 January 2017 22:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: "Time > Sunrise AND Time < Sunset" doesn't work

Post by Xztraz » Monday 12 February 2018 12:56

Set trigger on time and this works. (you'r script would trigger every minute between times)
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests