Repository navigation
Matter lock: Update embedded cluster definitions and drop alias uses - #3388
Open
hcarter-775 wants to merge 3 commits into
Open
hcarter-775 wants to merge 3 commits into
hcarter-775 wants to merge 3 commits into
Conversation
- Swap in the embedded `DoorLock` cluster for api < 11, matching driver - Use canonical type names instead of Matter 1.2 aliases - Select `BatChargeLevel` vs `BatChargeLevelEnum` by api version Co-Authored-By: Claude <claude@anthropic.com>
- Regenerate from current codegen without `lazy_require` - Keep only attributes, commands, events and types the driver uses - Add missing Aliro attribute and `UnboltDoor` definitions - Strip comments and alias support Co-Authored-By: Claude <claude@anthropic.com>
- Hub libs before api 11 lack Aliro attributes, crashing on `AliroReaderVerificationKey` lookups; use embedded cluster instead - Replace alias type names with canonical names available everywhere - Handle `BatChargeLevel` naming on api 9 hubs Co-Authored-By: Claude <claude@anthropic.com>
hcarter-775
requested review from
HunsupJung,
NoahCornell,
cbaumler,
cjswedes,
ctowns and
tpmanley
December 1, 2026 20:02
|
Invitation URL: |
|
matter-lock_coverage.xml
Minimum allowed coverage is Generated by 🐒 cobertura-action against 7f13855 |
Test Results 73 files 575 suites 0s ⏱️ For more details on these failures, see this check. Results for commit 7f13855. ♻️ This comment has been updated with latest results. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of Change
Older hubs are crashing in matter-lock with:
Hub Lua libraries didn't get the Aliro DoorLock attributes until api 11 (
v11_hc0.54.x); the api-10 libraries (v10_hc0.53.x) don't have them. The driver only used its embedded DoorLock cluster whenversion.api < 10, so api-10 hubs fell back to their own DoorLock definition and errored on the first Aliro attribute lookup during subscribe.Changes:
DoorLockcluster whenversion.api < 11(was< 10), ininit.luaandlock_sync.lua.DoorLockfrom the current scripting-engine codegen:AliroSupportedBLEUWBProtocolVersions(which the driver subscribes to) andUnboltDoorelements,SetCredential.credential_dataasOctetString2)DlAlarmCode,DlCredentialType,DoorLockFeature.PIN_CREDENTIALS, ...), which only resolve through the hub's alias tables. Without aliases in the embedded cluster, those would fail on api < 11, so they are replaced with the canonical names (AlarmCodeEnum,CredentialTypeEnum,Feature.PIN_CREDENTIAL, ...). Values are unchanged.handle_battery_charge_levelusesPowerSource.types.BatChargeLevelon api < 10, whereBatChargeLevelEnumdoesn't exist.DoorLockswap for api < 11 and use the canonical type names.Summary of Completed Tests
version.api = 10, so they exercise the embeddedDoorLockpath end to end, including the Aliro tests.added/doConfigurerather thaninit), not on driver errors.