There is a typo in concord_commands.py:
I recommend the following change.
ZONE_STATES = {
0: NORMAL,
1: TRIPPED,
2: FAULTED,
4: ALARM,
8: TROUBLE,
Furthermore these are bit fields. How to repro: 1) Open Door. 2) Arm panel, 3) Press "#" on panel to arm despite protest. 4) Status comes back as 17 (TRIPPED+BYPASSED).
If you close the door, the status comes back as 16 (Just bypassed)
There is a typo in concord_commands.py:
I recommend the following change.
ZONE_STATES = {
0: NORMAL,
1: TRIPPED,
2: FAULTED,
4: ALARM,
8: TROUBLE,
}
Furthermore these are bit fields. How to repro: 1) Open Door. 2) Arm panel, 3) Press "#" on panel to arm despite protest. 4) Status comes back as 17 (TRIPPED+BYPASSED).
If you close the door, the status comes back as 16 (Just bypassed)