Chime without corresponding faults
Posted: Thu Nov 30, 2017 11:27 am
Hi. I have a doorbell plugged into my Vista 20P zone 5. I have the zone configured as a customizable zone (90) and my customization (182) is: 12,15,12,7,12,3,0,0,0,4
The zone details from *56 are: Zn ZT P RC HW:RT05 90 1 10 NO:0
I'm having two issues:
1. Sometimes I'm getting "beep" events without the corresponding fault/restore
2. the restore events seem to be getting delayed by 3-4 seconds
Here's my code:
And here's some sample output. As you can see, the first two "got beeps" events were surrounded by fault/restore and so was the last 1. But the middle 5 "got beeps" events were not.
For issue #1: This seems to be related to how long I push the doorbell button for. If I push it for a short period of time, then the system registeres the "got beeps" event but doesn't get the fault/restore.
For issue #2: I don't have any theories as to why my zone restore events are delayed by 3-4 seconds. My other zones don't seem to be doing that.
The zone details from *56 are: Zn ZT P RC HW:RT05 90 1 10 NO:0
I'm having two issues:
1. Sometimes I'm getting "beep" events without the corresponding fault/restore
2. the restore events seem to be getting delayed by 3-4 seconds
Here's my code:
- Code: Select all
def main():
try:
device = AlarmDecoder(SerialDevice(interface='/dev/ttyUSB0'))
device.on_message += handle_message
device.on_zone_fault += handle_zone_fault
device.on_zone_restore += handle_zone_restore
with device.open(baudrate=115200):
while True:
time.sleep(1)
except Exception as ex:
print ('Exception:', ex)
def handle_message(sender, message):
if message.beeps > 0:
print(datetime.datetime.now(), message.beeps)
def handle_zone_fault(sender, zone):
print(datetime.datetime.now(), 'zone fault', zone)
def handle_zone_restore(sender, zone):
print(datetime.datetime.now(), 'zone restore', zone)
if __name__ == '__main__':
main()
And here's some sample output. As you can see, the first two "got beeps" events were surrounded by fault/restore and so was the last 1. But the middle 5 "got beeps" events were not.
For issue #1: This seems to be related to how long I push the doorbell button for. If I push it for a short period of time, then the system registeres the "got beeps" event but doesn't get the fault/restore.
For issue #2: I don't have any theories as to why my zone restore events are delayed by 3-4 seconds. My other zones don't seem to be doing that.
- Code: Select all
(datetime.datetime(2017, 11, 30, 19, 3, 47, 56283), 'zone fault', 5)
(datetime.datetime(2017, 11, 30, 19, 3, 47, 56361), 'got beeps: ', 3)
(datetime.datetime(2017, 11, 30, 19, 3, 51, 836848), 'zone restore', 5)
(datetime.datetime(2017, 11, 30, 19, 3, 52, 922422), 'zone fault', 5)
(datetime.datetime(2017, 11, 30, 19, 3, 52, 922720), 'got beeps: ', 3)
(datetime.datetime(2017, 11, 30, 19, 3, 58, 102909), 'zone restore', 5)
(datetime.datetime(2017, 11, 30, 19, 3, 59, 400396), 'got beeps: ', 3)
(datetime.datetime(2017, 11, 30, 19, 4, 1, 540648), 'got beeps: ', 3)
(datetime.datetime(2017, 11, 30, 19, 4, 3, 829353), 'got beeps: ', 3)
(datetime.datetime(2017, 11, 30, 19, 4, 5, 630067), 'got beeps: ', 3)
(datetime.datetime(2017, 11, 30, 19, 4, 7, 454500), 'got beeps: ', 3)
(datetime.datetime(2017, 11, 30, 19, 4, 9, 335122), 'zone fault', 5)
(datetime.datetime(2017, 11, 30, 19, 4, 9, 335442), 'got beeps: ', 3)
(datetime.datetime(2017, 11, 30, 19, 4, 14, 478639), 'zone restore', 5)