nutechsoftware / alarmdecoder

Python interface for the Alarm Decoder (AD2) family of alarm devices. (AD2USB, AD2SERIAL and AD2PI)
MIT License
63 stars 41 forks source link

Zones alternate on and off #72

Open egite opened 1 year ago

egite commented 1 year ago

Zone status alternates between on and off when more than 8 zones are faulted.

The issue seems to be with EXPIRE being set to 30 in zonetracking.py. When more than 8 zones are faulted, the timeout expires before the faulted zone statuses can be refreshed. Increasing this value to 300 solved the issue in my setup with 42 zones.

Ideally, this variable could be available to adjust in the webapp.