![]() |
|
External lights with multiple detectors AND function - 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: External lights with multiple detectors AND function (/thread-3816.html) |
- Pharris14 - 05-22-2014 Hi I am trying to configure the following which seems to be how the perimeter function works but I need it to control lights. 1. It is dark 2. A motion detector starts a timer 3. If a second motion detector is triggered this will turn on the floodlights for a period 4. If no second detector is seen then the timer expires 5. If the first detector is re-triggered within the time period then this will not activate the floodlights Can anyone help please? - slychiu - 05-22-2014 This is a prime example of logic that can be achieved by Comfort, which most other systems are not able to do, at least in this price range Rather than just giving the solution, we will offer a free UCM of any type to the first person who can give a solution to this problem which works for Pharris14 - Pharris14 - 05-25-2014 Hi Ident, I have found a way but it may be a bit messy, as follows: 1. Create a response for each detector which sets a flag and calls the \"floodlights on\" response.2. Floodlights on response does a non zero AND test on the flags then turns the floodlight output on3. Turn the floodlight timer off after 35 seconds4. Resets the flags (I have only used two detectors to start with). \"floodlights on\"Flag ExtPir1 <> 0 And Flag ExtPir2 <> 0 Then Do Lounge2WaySwOn Do Lounge2WaySwOff After 35 Seconds Using Timer02 Do ExtPir2FlagReset After 30 Seconds Using Timer16 Do ExtPir1FlagReset After 30 Seconds Using Timer15End If What do you think? Thanks... - ident - 05-25-2014 You can do it more simply that that This is the 1st Motion Detector Zone Response: If NightTime <> 0 Then Do NullResponse After 30 Seconds Using Timer01 End If This starts a timer if the Night Time Flag is on (set by sunset). You can use other logic or sensors to determine when it is dark Do Null Response means it does nothing if the timer expires If the motion detector is triggered again the timer is restarted This is the 2nd Motion detector Response If Timer Timer01 <> 0 Then Do Floodlights On Do Floodlights Off After 50 Seconds Using Timer02 End If That means if Timer 1 is running ie it is still within the delay caused by the 1st motion detector triggered, then turn on the lights for 50 seconds in the example |