Skip to content
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

AD2: Add Better Support for Monitoring Bypassed Zones #423

Merged
merged 4 commits into from
Jun 27, 2014

Conversation

krkeegan
Copy link
Collaborator

No description provided.

Prior to this, we would accidentally send commands directly to the alarm by accident.
Certain zone states, such as Bypass, can only be determined when they are set.  As a result, we need to cache and save the zone states through a reboot, otherwise we will change a zone from bypass->ready whenever we reboot.

This does leave open the possibility of incorrectly setting a zone state if the zone changed state while MisterHouse was down.
Add a separate function for checking the bypassed state of a zone.
Change status_zone function.  It will only report a zone as bypassed if the zone is hardwired.  All other zone types we can continue to track even when bypassed.
Cleanup ChangeZoneState, it now only affects a single zone, the complicated looping for setting multiple zones is moved into the respective places in the code.
krkeegan added a commit that referenced this pull request Jun 27, 2014
AD2: Add Better Support for Monitoring Bypassed Zones
@krkeegan krkeegan merged commit 98209b3 into hollie:master Jun 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant