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

Moderator: leecollings

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

Why isn't this sunrise/sunset script working?

Post 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"?
User avatar
madpatrick
Posts: 667
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by madpatrick »

You must add "Time"

If time = sunrise
then ....

then don't have to use "after 0 seconds" in the set command
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

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

Post by freijn »

Capture.JPG
Capture.JPG (44.58 KiB) Viewed 1611 times
So you have to use the part before the "or" and later on after the "or" :-)
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Xztraz »

From wiki (turn on dummy dusk sensor)
Image
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest