Page 1 of 1

Why isn't this sunrise/sunset script working?

Posted: Saturday 17 March 2018 15:46
by RedElephant
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"?

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

Posted: Saturday 17 March 2018 17:01
by madpatrick
You must add "Time"

If time = sunrise
then ....

then don't have to use "after 0 seconds" in the set command

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

Posted: Saturday 17 March 2018 17:31
by freijn
Capture.JPG
Capture.JPG (44.58 KiB) Viewed 1613 times
So you have to use the part before the "or" and later on after the "or" :-)

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

Posted: Friday 06 April 2018 21:43
by Xztraz
From wiki (turn on dummy dusk sensor)
Image