Actually enable alarmdecoder to see open/close state of bypassed RF zones when armed#31426
Merged
MartinHjelmare merged 1 commit intohome-assistant:devfrom Feb 8, 2020
melyux:dev
Merged
Actually enable alarmdecoder to see open/close state of bypassed RF zones when armed#31426MartinHjelmare merged 1 commit intohome-assistant:devfrom melyux:dev
MartinHjelmare merged 1 commit intohome-assistant:devfrom
melyux:dev
Conversation
…"loop" specified can now "correctly show a bypassed RF zone as open or closed when the alarm is armed" as per specifications.
Contributor
MartinHjelmare
approved these changes
Feb 8, 2020
Member
MartinHjelmare
left a comment
There was a problem hiding this comment.
Sounds and looks good!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…"loop" specified can now "correctly show a bypassed RF zone as open or closed when the alarm is armed" as per specifications.
Proposed change
According to the AlarmDecoder integration documentation here, specifying the
rfidandloopvariables "allows Home Assistant to read open/closed status from the raw sensor data in addition to from the panel display" and that "it can correctly show a bypassed RF zone as open or closed when the alarm is armed". This was integrated with PR #18477.However, once the alarm panel tells the integration that the zone is closed, that's that. It doesn't override this using the raw sensor data as it's supposed to. When a zone is bypassed and the alarm is armed, the alarm panel will falsely assert that all zones (even RF) are closed. Perhaps hours or days after the system is armed, when the RF sensor may send its periodic supervisory data, at which point (I assume) HA will recognize this zone as open and overwrite the fake panel off status for it. But that's pretty useless.
My solution that fulfills the specifications of the documentation is: if the
loopvariable is set, then HA should not listen to fault restorations from the panel for that zone. It should hold the RFID messages paramount. That's the whole point of settingloop, as the documentation says. Otherwise, just settingrfidwithoutloopwould provide the loop data without instructing HA to use it as the main state. If there is noloopdata readily available like when HA restarts, my fix ensures that the system will default to the alarm panel's status for the zone. I only changed the fault restore logic since this is only relevant to zones falsely becoming restored upon bypassed arming, not the other way around.Type of change
Example entry for
configuration.yaml:Additional information
Checklist
black --fast homeassistant tests)The integration reached or maintains the following Integration Quality Scale: