Comfort Automation/ Security System Forums > Support > Questions on Programming Comfort > Sunrise/sunset Programming for garage. |
Moderated by: slychiu |
Author | Post | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
sinky100 Member
|
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 Administrator ![]()
|
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 Member
|
Slychiu, That would be fantastic many, many thanks! Iain |
|||||||||
yuanchang Member
|
Hi Iain, 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 Attachment: Programming for garage.zip (Downloaded 37 times) Last edited on Thursday Sep 17th, 2015 06:28 am by yuanchang |
|||||||||
sinky100 Member
|
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 Administrator ![]()
|
Thats good Anyone who requires this kind of programming assistance is welcome |