Why isn't this sunrise/sunset script working? Topic is solved

Post Reply
RedElephant
Posts: 2
Joined: Friday 16 March 2018 3:45
Target OS: Windows
Domoticz version:
Contact:

Why isn't this sunrise/sunset script working?

Post by RedElephant » Saturday 17 March 2018 16:46

I expect this script to turn light on at sunset and off at sunrise, but it isn't doing either. What did I do wrong?

Image

EDIT: Is it becuase it should be "if time = sunrise" rather than just "if = sunrise"?

User avatar
madpatrick
Posts: 49
Joined: Monday 26 December 2016 13:17
Target OS: Linux
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Why isn't this sunrise/sunset script working?

Post by madpatrick » Saturday 17 March 2018 18:01

You must add "Time"

If time = sunrise
then ....

then don't have to use "after 0 seconds" in the set command
ClearOS 7.5.0 - Toon 4.15.16 (rooted) - Domoticz 4.9700

freijn
Posts: 379
Joined: Friday 23 December 2016 17:40
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands Purmerend
Contact:

Re: Why isn't this sunrise/sunset script working?

Post by freijn » Saturday 17 March 2018 18:31

Capture.JPG
Capture.JPG (44.58 KiB) Viewed 884 times
So you have to use the part before the "or" and later on after the "or" :-)

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

Re: Why isn't this sunrise/sunset script working?

Post by Xztraz » Friday 06 April 2018 21:43

From wiki (turn on dummy dusk sensor)
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests