Skip to content

Add Exit/Entry Delay Support for IAS ACE Alarm Panels#664

Open
malywut wants to merge 7 commits intozigpy:devfrom
malywut:add_support_alarm_exit_entry_delay
Open

Add Exit/Entry Delay Support for IAS ACE Alarm Panels#664
malywut wants to merge 7 commits intozigpy:devfrom
malywut:add_support_alarm_exit_entry_delay

Conversation

@malywut
Copy link

@malywut malywut commented Feb 20, 2026

This PR adds exit and entry delay functionality to ZHA's IAS ACE alarm control panel implementation. Users can now configure countdown timers that:

  • Give time to exit before the alarm arms (exit delay)
  • Provide a grace period to disarm without triggering (entry delay)
  • Display countdown status on physical Zigbee keypads

Why is this needed? Standard alarm systems use exit/entry delays for practical security:

  • Exit delays let you leave after arming without triggering
  • Entry delays let you disarm when entering before the alarm sounds
  • Physical keypads need to show countdown timers and status

Without this, ZHA alarm panels had to arm/trigger instantly, which isn't practical for real-world use.

No breaking changes: All delays default to 0, preserving existing behavior.

@malywut
Copy link
Author

malywut commented Feb 21, 2026

@malywut
Copy link
Author

malywut commented Feb 21, 2026

This PR is required for home-assistant/core#163709

@codecov
Copy link

codecov bot commented Feb 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.49%. Comparing base (558bc6f) to head (1f44313).
⚠️ Report is 6 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #664      +/-   ##
==========================================
+ Coverage   97.41%   97.49%   +0.07%     
==========================================
  Files          62       62              
  Lines       10724    10811      +87     
==========================================
+ Hits        10447    10540      +93     
+ Misses        277      271       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@puddly
Copy link
Contributor

puddly commented Feb 21, 2026

Thank you for the PR!

@TheJulianJES @dmulcahey do you have any thoughts on making this config global? A possible alternative would be to make these configuration options tied to individual IAS ACE alarm panel devices?

@malywut
Copy link
Author

malywut commented Feb 21, 2026

@puddly
My thoughts: master_code, failed_tries, arm_requires_code are already global, so it made sense to add the exit delays there. Having multiple independent alarm systems on a single ZHA network with different delay requirements seems a very niche use case?

For the entry delay its different: you can expect different delays for different devices (windows trigger alarm immediately, doors leave a delay so that the user can input their code or swipe their key).
I just realized though that my implementation for entry delays was inconsistent: I started working on it as a global config, then didn't go through because it didn't make sense. I think I'll remove it entirely from the global config.

…ound task, remove entry delay as global config
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.

2 participants