07-31-2007, 03:36 PM
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
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
Also, please state your current firmware version the next time. 