Comfort Automation/ Security System Forums
Sunrise/sunset Programming for garage. - 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: Sunrise/sunset Programming for garage. (/thread-4321.html)



- sinky100 - 09-10-2015

Hi,
Having only imported scenarios before, I wonder if someone can assist in a small project, where the hardware is not the issue, but I\'m not sure about the programming side.
I have in the garage 2 door contacts and a PIR. I have a couple of spare cores coming from my comfort panel, one of which is connected to Output 1 on the comfort PCB; and to a 12V 240V relay across the light switch will hopefully be operating the lights.
I wish to set comfort up, that 30 mins before sunset & 30 mins after sunrise - if one of the doors 2 of is opened, the lights will come on. At the end of 15mins, if no PIR movement is detected and the doors are closed, then lights should go off.
Assistance is much appreciated.



- slychiu - 09-11-2015

We can  get our support team to work on this and give you a program next weekThis will illustrate the use of sunset and sunrise time offsets and zone responses 


- sinky100 - 09-11-2015

Slychiu,

That would be fantastic many, many thanks!

Iain


- yuanchang - 09-16-2015

[font=\"times new roman\"][size=\"4\"]Hi Iain[/size][/font][font=\"times new roman\"][size=\"4\"],


Based on your requirements, we have do a small programming project for you.
First of all, we assume that the zone 2 is connected to PIR sensor and zone 3/4 are connected to door contacts. After that you have to set times by latitude by yourself under \"Schedule--Sunrise/Sunset Times\" which is at left pane in Comfigurator. Then there is a \"sunrisesunset\" response under \"Schedule--Time Programms\" which will offset the sunrise time 30 mins delay and sunset time 30 mins early at midnight everyday. Next, take a look at \"Security--Zone/Inputs\", any door\'s opening action will turn on the light and door\'s closing action will start a 15 mins count down timer. And any movement detected by PIR sensor will stop the timer. The light will turn off only when both doors are closed, no movement under PIR sensor and 15 mins timer count to zero.
We have build the exact function to what you need. Hence, you can just finish the termination first and download the code to your Comfort. The functions of each response have been wrote clearly in responses comments, I hope that is helpful for you.
Please contact us if you have any inquires.


Kindly find the cclx file in attached files.


Yuanchang[/size][/font]




- sinky100 - 09-28-2015

Yuanchang,

Finally got the system tested and the programming is working perfect! I am delighted with the setup, and learnt quite a bit doing the programming. Thanks for taking the time to provide the solution.

Thanks,
Iain


- slychiu - 09-29-2015

Thats good
Anyone who requires this kind of programming assistance is welcome