Fix sia custom bypass arming in night mode #119168
Merged
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.
Breaking change
Proposed change
This is an update to #95736 where we remove the custom bypass arming when arming in night mode for the SIA alarm system (Ajax). The reason for this change is because otherwise HA can't distinguish between normal arming and night arming if custom bypass is used.
For example, I have an internal door to the garage which has a door sensor. Sometimes I forget to close it, and the Ajax alarm system warns about it. If I don't feel like getting up and close it before going to bed, Ajax will still arm but with a custom bypass.
The problem is that HA only has "Armed", "Night", and "Custom bypass" alarm states, i.e. there is no way to tell when we are "Custom bypass" armed in "Night" vs in regular "Armed".
I have automations that run only when the system is armed to simulate occupancy. If I forget to close that non-critical internal door I still want that automation to run. Therefore, the automation turns on and off lights randomly in the "Armed" and "Custom bypass" states.
Finally, this means that if I forget to close the door and arm for the night, lights will turn on and off randomly which is annoying.
This change re-maps the custom bypass arming in night mode to say "armed night" instead of "custom bypass".
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: