Errors while connecting matter devices to HA

Hi forum, im trying to connect matter devices to my HA. I pair them first with apple home, then get a key from apple home for HA. It fails most of the times and i see the following in the logs. Any one else encounter this?

2025-11-12 22:16:07.021 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 60.
2025-11-12 22:16:10.881 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:28739i with Node: <0000000000000000, 0> S:0 M:212770447] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-11-12 22:16:17.498 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-11-12 22:16:17.499 (Dummy-2) CHIP_ERROR [chip.native.CTL] Found unconnected device, removing
2025-11-12 22:16:17.499 (Dummy-2) CHIP_ERROR [chip.native.CTL] Failed to extend fail-safe for CASE retry: src/app/CommandSender.cpp:354: CHIP Error 0x00000032: Timeout
2025-11-12 22:16:18.289 (Dummy-2) INFO [chip.ChipDeviceCtrl] Established secure session with Device
2025-11-12 22:17:25.590 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:28751i with Node: <0000000000000000, 0> S:0 M:212770452] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-11-12 22:17:38.179 (Dummy-2) CHIP_ERROR [chip.native.SC] CASESession timed out while waiting for a response from peer <000000000000003C, 1>. Current state was 1
2025-11-12 22:17:38.184 (Dummy-2) CHIP_ERROR [chip.native.CTL] Session establishment failed for <000000000000003C, 1>, error: src/app/OperationalSessionSetup.cpp:265: CHIP Error 0x00000032: Timeout.  Next retry expected to get a response to Sigma1 or fail within 77 seconds
2025-11-12 22:17:38.200 (Dummy-2) CHIP_ERROR [chip.native.SC] Received error (protocol code 1) during pairing process: src/protocols/secure_channel/CASESession.cpp:2379: CHIP Error 0x000000C9: No shared trusted root
2025-11-12 22:17:38.201 (Dummy-2) CHIP_ERROR [chip.native.CTL] Error on commissioning step 'kFindOperationalForStayActive': 'src/protocols/secure_channel/CASESession.cpp:2379: CHIP Error 0x000000C9: No shared trusted root'
2025-11-12 22:17:38.201 (Dummy-2) WARNING [chip.ChipDeviceCtrl] Failed to commission: src/protocols/secure_channel/CASESession.cpp:2379: CHIP Error 0x000000C9: No shared trusted root
2025-11-12 22:17:38.202 (MainThread) ERROR [matter_server.server.client_handler] [281473369808704] Error while handling: commission_with_code: Commission with code failed for node 60.

Not sure, but my guess is that the device doesn’t have any/correct certificates/chain from the point of view of the HA Matter Server. The CSA organization facilitates these certificates for Matter, but it could be that Apple Ecosystem has a private copy of these certificates/chain while other ecosystems do not.

Is it one particular device type, or is it all of the different types?

These re Leviton matter enabled switches

Or the internet connection is not available to the Matter server, so it can not check the certificates.

the weird thing is, it works if you just keep trying…

If it is a Thread network, then I would look into moving it to another channel then.

this is matter ovrer wifi

Then it sounds like your IPv6 configuration in your network is faulty or bugged somehow.

Then its not a certificate problem… could be weak WiFi signal (say Leviton is inside a metal switch/outlet box), … there have been issues in the past timing-wise when pairing a device with an iOS App, but I think those have mostly been resolved.

I mean they are all added now

Signal on my unifi console for all of them are -50dbm or lower

Nice!, That’s an very good signal level