NUKI comissioning failed

Hi,

For the past few weeks I’ve been trying to integrate my NUKI smart lock 4 Pro to HA through Thread & Matter. (NUKI with MQTT is working out of the box).

My hardware is a Raspberry Pi 4 with a SkyConnect Thread USB (used only for Thread no multiprotocol).

IPv6 is activated and I tried USB2 and USB3 ports on my RPi to connect the dongle, also tried USB extension cable.

I had a hard time to understand that my first issue was because of Bluetooth adapter not available, so I disabled it on HA and also forced to put ID 0 in Add-ons → Matter Server → Configuration → Bluetooth Adapter ID.

I am using NUKI app to put the smart lock in Matter mode and I see the ring in solid light, starting the process of commissioning through the websocket (same issue using iOS or Play Store HA Companion, I am using websocket as I am on F-Droid HA version), I see the ring lighting but the process doesn’t go to the end and got a " Commission with code failed for node xx" error message and " Error on commissioning step ‘ThreadNetworkEnable’: 'src/app/CommandSender.cpp:328: CHIP Error 0x00000032: Timeout’"

Matter debug logs :

2024-08-06 16:54:23.766 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 21.
2024-08-06 16:54:23.774 (ThreadPoolExecutor-0_0) DEBUG [matter_server.server.storage] Saved data to persistent storage
2024-08-06 16:54:24.325 (Dummy-2) CHIP_ERROR [chip.native.CTL] Found unconnected device, removing
2024-08-06 16:54:25.671 (Dummy-2) INFO [root] Established secure session with Device
2024-08-06 16:55:08.348 (Dummy-2) CHIP_ERROR [chip.native.CTL] Error on commissioning step 'ThreadNetworkEnable': 'src/app/CommandSender.cpp:328: CHIP Error 0x00000032: Timeout'
2024-08-06 16:55:08.350 (Dummy-2) WARNING [root] Failed to commission: src/app/CommandSender.cpp:328: CHIP Error 0x00000032: Timeout
2024-08-06 16:55:08.352 (MainThread) ERROR [matter_server.server.client_handler] [547810993936] Error while handling: commission_with_code: Commission with code failed for node 21.
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/matter_server/server/device_controller.py", line 304, in commission_with_code
    await self._chip_device_controller.commission_with_code(
  File "/usr/local/lib/python3.11/site-packages/matter_server/server/sdk.py", line 133, in commission_with_code
    await self._chip_controller.CommissionWithCode(
  File "/usr/local/lib/python3.11/site-packages/chip/ChipDeviceCtrl.py", line 1897, in CommissionWithCode
    return await asyncio.futures.wrap_future(ctx.future)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chip.exceptions.ChipStackError: src/app/CommandSender.cpp:328: CHIP Error 0x00000032: Timeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/matter_server/server/client_handler.py", line 197, in _run_handler
    result = await result
             ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/matter_server/server/device_controller.py", line 318, in commission_with_code
    raise NodeCommissionFailed(
matter_server.common.errors.NodeCommissionFailed: Commission with code failed for node 21.

If I activate the detail Matter SDK Log Level, I can follow multiple successful steps but the last one is obviously failing…

2024-08-06 17:04:33.019 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Discovered device to be commissioned over BLE
2024-08-06 17:04:42.100 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Received NetworkConfig response, networkingStatus=0
2024-08-06 17:04:42.100 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Successfully finished commissioning step 'ThreadNetworkSetup'
2024-08-06 17:04:42.100 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Commissioning stage next step: 'ThreadNetworkSetup' -> 'FailsafeBeforeThreadEnable'
2024-08-06 17:04:42.100 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Performing next commissioning step 'FailsafeBeforeThreadEnable'
2024-08-06 17:04:42.101 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Arming failsafe (94 seconds)
2024-08-06 17:02:43.239 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Successfully finished commissioning step 'FailsafeBeforeThreadEnable'
2024-08-06 17:02:43.240 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Commissioning stage next step: 'FailsafeBeforeThreadEnable' -> 'ThreadNetworkEnable'2024-08-06 17:02:43.240 (Dummy-2) CHIP_PROGRESS [chip.native.CTL] Commissioning stage next step: 'FailsafeBeforeThreadEnable' -> 'ThreadNetworkEnable'
2024-08-06 17:03:18.244 (Dummy-2) CHIP_PROGRESS [chip.native.DMG] Time out! failed to receive invoke command response from Exchange: 49378i with Node: <FFFFFFFB00000000, 0>

Any tips on which step I can take to understand the issue ? I am out of idea…

Many thanks

Do you have any progress? Did you try pair another Thread device?