SUMMARY
I want to run five Matter fabrics on this lock:
- Apple Keychain
- Apple Home
- Home Assistant
- Aqara
- UniFi
It accepts four. Adding the fifth always fails at the last step of commissioning. PASE, attestation, NOC installation and CASE all complete, and then the lock answers GeneralCommissioning.CommissioningComplete with a plain IM FAILURE (0x01) instead of a CommissioningCompleteResponse. No CommissioningErrorEnum comes back, so the controller has nothing to report beyond the fact that it failed.
Removing one of the four existing fabrics first makes the new one commission immediately. Re-adding the fabric I removed then fails the same way. Both units I tried behave identically.
ENVIRONMENT
| PRODUCT | Nuki Smart Lock Pro |
|---|---|
| FIRMWARE | 4.11.1 (4th gen), 5.10.1 (5th gen Nuki Pro) |
| MATTER VERSION | 1.4.1 |
| SERIAL NUMBERS | 46800CDF (hardware 10.12, the unit in the log below), 3A646074 |
| FABRICS WANTED | 5 (listed above) |
| FABRICS ACCEPTED | 4 |
STEPS TO REPRODUCE
- Commission the lock into four fabrics.
- Add a fifth one using its setup code.
- Commissioning gets through PASE, attestation, NOC installation and CASE as normal.
CommissioningCompleteis rejected and the pending fabric is rolled back.- Remove one of the four fabrics and repeat step 2. It now succeeds. Re-adding the removed fabric as the fifth fails again.
EXPECTED
CommissioningCompleteResponse with ErrorCode = kOk, and the fabric is added. If it cannot be added, a specific CommissioningErrorEnum and DebugText so the controller can say why.
ACTUAL
A bare IM FAILURE (0x01) on cluster 0x0030, command 0x0004, with no response payload.
IMPACT
The lock advertises SupportedFabrics = 5, so nothing warns you that the fifth fabric is going to fail. The controller can only report a generic error. In UniFi’s case the message blames the setup code, which sends you looking at the passcode, mDNS, IPv6 and Thread rather than the lock.
Workaround: remove an existing fabric before adding a new one. That may be worth giving to support, since the trigger is easy to describe and the error message is not.
LOG
From the UniFi controller during the failed attempt. Everything up to the last two lines succeeds.
15:52:53.169 [CTL] PASE session established with commissionee. Stopping discovery.
15:52:57.817 [CTL] Received ArmFailSafe response errorCode=0
15:53:12.782 [DMG] Received Command Response Status ... Cluster=0x0000_003E Command=0x0000_000B Status=0x0
15:53:13.742 [CTL] Device returned status 0 on receiving the NOC
15:53:17.122 [SC] Success status report received. Session was established
15:53:17.595 [DMG] Received Command Response Status for Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0004 Status=0x1
15:53:17.595 [CTL] Received failure response: IM Error 0x00000501: General error: 0x01 (FAILURE)
15:53:17.595 [CTL] Error on commissioning step 'SendComplete': 'IM Error 0x00000501: General error: 0x01 (FAILURE)'
Cluster 0x0030 command 0x0004 is GeneralCommissioning.CommissioningComplete, so that is the one coming back as FAILURE. The command went out 19.6 s after the fail-safe was armed, well inside the 60 s window, and the lock answered after 470 ms. It is a rejection rather than a timeout.
WHY THE CONTROLLER, THE FAIL-SAFE AND THE NETWORK ARE NOT AT FAULT
The lock replies with a status rather than a CommissioningCompleteResponse, so none of the causes the spec carries in ErrorCode apply here. The fail-safe was armed and ArmFailSafe had returned errorCode=0 19.6 s before the command. A valid CASE session on the new fabric was up. No other administrator was commissioning. The controller skipped the TC stage for this lock, and for the devices that commissioned successfully on it in the same session.
In the CSA reference implementation this reply shape comes from a CheckSuccess(..., Failure) inside the CommissioningComplete handler, so an internal operation on the lock is failing. That is read off the reference SDK rather than your firmware, so treat it as a hypothesis rather than a conclusion.
WHAT THE LOCK REPORTED AFTERWARDS
Read from one of the existing fabrics after the failed attempt: SupportedFabrics 5, CommissionedFabrics 4, four trusted root certificates, no orphaned fabric and no pending data left behind. The attempt rolls back cleanly and the lock is otherwise a healthy four-fabric device. It only fails when the fifth slot is used.
The 5 it reports is the minimum the spec allows for SupportedFabrics rather than a measured capability, and it is the same on both generations and both firmware branches. That looks more like a fixed value in firmware than a limit enforced by the fabric storage. It would help to know whether the fifth slot has storage behind it.
REQUESTS
- Return
CommissioningErrorEnumandDebugTextinstead of a bareFAILURE, so a controller can report the actual cause. - Confirm whether four is the intended maximum, and whether the fifth slot has backing storage.
- If four is intended, please correct or document
SupportedFabricsso the limit is predictable from the controller side.