-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AlarmDecoder reports non-existent restore/fault events #54
Comments
I had this happen while out. Police came to the house for false alarm. |
I've seen spurious restore/fault events on my Vista 20SE, and so far have identified two separate cases that trigger it. Here a message not starting with FAULT or ALARM trips up the sequence based zone tracking, resulting in a spurious restore on zone 6 (note that the zone events are logged before the corresponding message that triggered them):
This could be solved by adding But the other case is similar to the one described by the OP - a motion detector triggered repeatedly can result in a stream of messages that will also trip the sequence based zonetracking. This set of messages is using a zonetracking.py with the _clear_zone() call commented out to disable the sequence based check:
With the _clear_zones() call in place the repeated zone 3 faults result in zone 5 being restored incorrectly. So in my setup I've disabled the sequence checking provided by _clear_zones(), and rely on zones being restored by either message.ready or aging them out if they don't appear in the messages for EXPIRE - though I have increased that from 30. On a related point, the restoration based on message.ready is buggy as it iterates over a list it is deleting from: if message.ready and not message.text.startswith("SYSTEM"):
for zone in self._zones_faulted:
self._update_zone(zone, Zone.CLEAR) which results in only half the faulted zones being cleared. if message.ready and not message.text.startswith("SYSTEM"):
for zone in self._zones_faulted[:]:
self._update_zone(zone, Zone.CLEAR) |
This issue and the fix are discussed at https://www.alarmdecoder.com/forums/viewtopic.php?f=3&t=1173
I think it's also related to issue #46
The text was updated successfully, but these errors were encountered: