Page 1 of 1

[SOLVED] The use of daytime switch (sunset / sunrise)

Posted: Monday 30 November 2015 11:09
by packetloss
Please help me understand the sunset/sunrise mechanism in Domoticz.

For later (serious) use, I wanted to play first with a 'day / night time switch'. I created the switch with the name DayNighttime (picture 1) and created two notifications with it via pushover (picture 2). This morning with sunrise, I got two messages, instead of the expected one message (picture 3). Please help me understand why Domoticz thinks sun is set and sun is risen. Thank you.

Re: The use of daytime switch (sunset / sunrise)

Posted: Monday 30 November 2015 13:44
by bbqkees
You have omitted how you set the timers.

Re: The use of daytime switch (sunset / sunrise)

Posted: Monday 30 November 2015 14:14
by packetloss
bbqkees wrote:You have omitted how you set the timers.
You're right! Here's a screenshot.

Re: The use of daytime switch (sunset / sunrise)

Posted: Monday 30 November 2015 14:19
by bbqkees
So zero minutes before sunRISE you set it to on, and zero minutes after sunRISE you turn it to off.
This is the same moment, you want to turn it off at sunSET.

Re: The use of daytime switch (sunset / sunrise)

Posted: Monday 30 November 2015 15:34
by packetloss
bbqkees wrote:So zero minutes before sunRISE you set it to on, and zero minutes after sunRISE you turn it to off.
This is the same moment, you want to turn it off at sunSET.
Ah... thanx a lot! Now I understand. cheers!

Re: [SOLVED] The use of daytime switch (sunset / sunrise)

Posted: Monday 14 December 2015 18:18
by smokinjoev
Nice work. The virtual switch is a great idea. I was having issues trying to use the blocks to create an event. This makes it quite easy.

Can you offset your sunrise/sunset timer by adding or subtracting minutes?

Would be nice to have my lights cut on/off a little earlier.

Re: [SOLVED] The use of daytime switch (sunset / sunrise)

Posted: Tuesday 15 December 2015 11:23
by bbqkees
smokinjoev wrote:Nice work. The virtual switch is a great idea. I was having issues trying to use the blocks to create an event. This makes it quite easy.

Can you offset your sunrise/sunset timer by adding or subtracting minutes?

Would be nice to have my lights cut on/off a little earlier.
That is a standard function. You can set a time offset in the On/Off timers.

Re: [SOLVED] The use of daytime switch (sunset / sunrise)

Posted: Thursday 05 January 2017 13:05
by ronnyandre
Just found this thread.

If I want the the lights to turn on 30 minutes before sunset, I can set the time to 00:30?