Comfort Home Automation/ Security System Forums Home
 Search       Members   Calendar   Help   Home 
Search by username
Not logged in - Login | Register 
Comfort Home Automation/ Security System Forums > Comfort > Comfigurator > Comfigurator response not functioning as expected.

Comfigurator response not functioning as expected.
 Moderated by: admin  
 New Topic   Reply   Print 
AuthorPost
gazza
Member


Joined: Thursday Jun 1st, 2006
Location: United Kingdom
Posts: 17
Status:  Offline
 Posted: Tuesday Jul 31st, 2007 03:36 pm
 Quote  Reply 
Would be grateful for any help with this, I am trying to set up a sensor to switch a system from nightmode to security off when a person is detected on the staircase.
 
This mode needs to be switchable, so I have flag 17 used to indicate whether there are guests in the house (in which case, de-activate from night mode). If there are no guests in the house, the desired response is for the zone name to be announced, to remind the occupants that the system is in night mode as they decend the stairs.

What I'm getting is one thing or the other. As it stands with this code, it will disarm as desired if flag 17 is set, but if it is not set but the announcement does not happen. If it turn the code around, I get the announcment, but not the disarm.

Here is the code

If SecurityMode=NightMode THen
   If Flag Flag17 <> 0 Then
      If AlarmState = Idle Then
        AutoArm SecurityOff
      End If
   End If
End If
If SecurityMode=NightMode Then
   If Flag Flag17 = 0 Then
      Say ZoneName
   End If
End If


I'm guessing I've exceeded the langagues capabilities

palmlodge
Member
 

Joined: Thursday Dec 14th, 2006
Location: United Kingdom
Posts: 225
Status:  Offline
 Posted: Tuesday Jul 31st, 2007 03:52 pm
 Quote  Reply 
How about

 

If SecurityMode=NightMode Then
   If Flag Flag17 <> 0 Then
      If AlarmState = Idle Then
        AutoArm SecurityOff
 End If
Else
 Say ZoneName
End If
End If

Last edited on Tuesday Jul 31st, 2007 03:57 pm by palmlodge

gazza
Member


Joined: Thursday Jun 1st, 2006
Location: United Kingdom
Posts: 17
Status:  Offline
 Posted: Thursday Aug 9th, 2007 03:53 pm
 Quote  Reply 
Thanks for the suggestion, however that annouces the zone when security is off.
Obviously its not working as expected!

leonchue
Administrator


Joined: Monday Aug 7th, 2006
Location: Singapore
Posts: 16
Status:  Offline
 Posted: Monday Aug 13th, 2007 03:39 am
 Quote  Reply 
How about trying this if it is working? 


If SecurityMode <> NightMode Then
    Exit Response
End If
If Flag Flag17 = 0 Then
    Say ZoneName
    Exit Response
End If
If AlarmState = Idle Then
    AutoArm SecurityOff
End If


I have not tested it out.  I just rephrased your logic.  So please test it out throughly...  :)  Also, please state your current firmware version the next time.  ;)

gazza
Member


Joined: Thursday Jun 1st, 2006
Location: United Kingdom
Posts: 17
Status:  Offline
 Posted: Wednesday Aug 15th, 2007 12:41 pm
 Quote  Reply 
looks an interesting idea, thanks for the sugestion I will try it out.


 Current time is 01:54 pm




Powered by WowBB 1.7 - Copyright © 2003-2006 Aycan Gulez
We insist that you abide by the rules and policies stated below. Although the moderators of the Comfort Forums will attempt to keep all objectionable messages off this forum, it is not possible for us to filter all messages. All messages express the views of the author. Cytech Technology is not responsible for the content, views or advice of any message posted by members, including staff of Cytech. By registering for the forums, you warrant that you will not post any messages that are obscene, vulgar, of a sexual nature, abusive, hateful, threatening, of racist nature or otherwise in breach of any laws. Cytech reserves the right to remove, edit or move message or topic for any reason