Browse Source

Fixed issues where SYSTEM messages were causing zones to bounce. Fixed an issue where ZONES FAULTED messages were causing premature restoration on the 128.

pyserial_fix
Scott Petersen 10 years ago
parent
commit
e485872b78
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      alarmdecoder/zonetracking.py

+ 5
- 2
alarmdecoder/zonetracking.py View File

@@ -158,14 +158,17 @@ class Zonetracker(object):
# multiple partitions. In it's current state a ready on
# partition #1 will end up clearing all zones, even if they
# exist elsewhere and it shouldn't.
if message.ready:
#
# NOTE: SYSTEM messages provide inconsistent ready statuses. This
# may need to be extended later for other panels.
if message.ready and not message.text.startswith("SYSTEM"):
for zone in self._zones_faulted:
self._update_zone(zone, Zone.CLEAR)

self._last_zone_fault = 0

# Process fault
elif "FAULT" in message.text or message.check_zone:
elif message.check_zone or message.text.startswith("FAULT"):
# Apparently this representation can be both base 10
# or base 16, depending on where the message came
# from.


Loading…
Cancel
Save