Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register
Comfort Automation/ Security System Forums > Support > Questions on Programming Comfort > External lights with multiple detectors AND function

External lights with multiple detectors AND function
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Thursday May 22nd, 2014 02:08 pm
   PM  Quote  Reply 
1st Post
Pharris14
Member
 

Joined: Sunday Apr 27th, 2014
Location:  
Posts: 15
Status: 
Offline

  back to top

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?



 Posted: Thursday May 22nd, 2014 04:12 pm
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

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

Last edited on Thursday May 22nd, 2014 04:13 pm by slychiu



 Posted: Sunday May 25th, 2014 10:19 am
   PM  Quote  Reply 
3rd Post
Pharris14
Member
 

Joined: Sunday Apr 27th, 2014
Location:  
Posts: 15
Status: 
Offline

  back to top

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



 Posted: Sunday May 25th, 2014 11:06 am
   PM  Quote  Reply 
4th Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

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



 Current time is 09:42 pm
Comfort Automation/ Security System Forums > Support > Questions on Programming Comfort > External lights with multiple detectors AND function
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems