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.
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.