-
Notifications
You must be signed in to change notification settings - Fork 7.7k
feat(zibgee): Add IASZone enroll request and restore + error check fixes #11990
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
Conversation
👋 Hello P-R-O-C-H-Y, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances Zigbee IAS (Intruder Alarm System) Zone sensor classes by adding enrollment management capabilities and improving return value handling. The changes enable devices to explicitly request IAS Zone enrollment after rebooting and track enrollment status.
Key changes:
- Added
requestIASZoneEnroll()method andenrolled()status checker to IAS Zone sensor classes - Changed
report()methods to return boolean values indicating success - Updated transaction handling to capture and log transaction sequence numbers
- Fixed endpoint configuration in example sketches and added enrollment request logic
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| ZigbeeVibrationSensor.h | Added enrollment methods and _enrolled state tracking |
| ZigbeeVibrationSensor.cpp | Implemented enrollment request functionality and updated report method to return boolean |
| ZigbeeDoorWindowHandle.h | Added enrollment methods and _enrolled state tracking |
| ZigbeeDoorWindowHandle.cpp | Implemented enrollment request functionality and updated report method |
| ZigbeeContactSwitch.h | Added enrollment methods and _enrolled state tracking |
| ZigbeeContactSwitch.cpp | Implemented enrollment request functionality, fixed error handling to use ZCL status types |
| Zigbee_Vibration_Sensor.ino | Changed endpoint number and added enrollment request with status polling |
| Zigbee_Contact_Switch.ino | Changed endpoint number and added enrollment request with status polling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Test Results 76 files 76 suites 15m 43s ⏱️ Results for commit d2c4c73. ♻️ This comment has been updated with latest results. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description of Change
This pull request introduces improved IAS Zone enrollment management for Zigbee contact switches, vibration sensors, and door/window handles. It adds new methods for requesting, restoring, and checking enrollment, and updates example code to persist enrollment status across device reboots using flash storage. Documentation is updated to reflect these changes, and some minor code improvements and keyword additions are included.
This ensures, that the device will be fully functional after reboot.
Test Scenarios
Tested using HA (ZHA) and ESP32-C6 uploaded with updated
Zigbee_Contact_Switch.ino/Zigbee_Vibration_Sensor.inoRelated links