Comfort Automation/ Security System Forums
Using Sunset time to switch lights 30 minutes BEFORE sunset - Printable Version

+- Comfort Automation/ Security System Forums (https://www.comfortforums.com)
+-- Forum: Support (https://www.comfortforums.com/forum-2.html)
+--- Forum: Questions on Programming Comfort (https://www.comfortforums.com/forum-83.html)
+--- Thread: Using Sunset time to switch lights 30 minutes BEFORE sunset (/thread-4133.html)



- Ujjwal - 02-23-2015

By sunset, its already too dark, so I wish to switch on my garden (and some inside the house lights) N minutes before sunset time. Any suggestions?
Is it possible to read sunset time? (I have already set city, DST, etc).



- slychiu - 02-23-2015

There is an action under the Schedule category called Sunrise/Sunset offset where you can specify an offset to add or subtract from the sunrise or sunset time to trigger the Sunrise or sunset response

See details at http://www.comfortforums.com/forum92/1004.html





- Ujjwal - 02-24-2015

Thanks Chiu.Big Grin



- DMStewart - 09-27-2015

CY, I\'ve tried to use an off-set as suggested, but instead of triggering a Response early, it is still triggered at Sunset.
This is the Test I used :
Offset Sunset -5Do LightON-MealsDo CLOSE GarageDoor After 300 Seconds using Timer 02
(150,1,251,74,26,194,2,1,44,49,255)
The Light turns ON AT Sunset and the Garage Door closes 5 minutes later.
I tried with a positive off-set (150,1,251,74,26,194,2,1,44,49,255), but with the same result.  Light ON at Sunset and Garage Door closed 5 minutes later.
What have I got wrong?
David


- DMStewart - 09-27-2015

Sorry, second Response should have read (150,1,5,74,26,194,2,1,44,49,255).
David
 


- slychiu - 09-27-2015

You cannot Offset the sunset or sunrise at the Sunrise or Sunset Response itself, because when the Response happens, the Sunrise or Sunset time has already happened
The sunrise and sunset offset  should be done by Time programs say at midnight each day

see an example at http://www.comfortforums.com/view_topic.php?id=4321&forum_id=83&jump_to=19710#p19710


- DMStewart - 09-27-2015

OK, thanks, CY.