i successfully added my thread network to HASS but i cannot add the lights (already paired with the nanoleaf app and homekit) when i trigger the pairing mode in homekit and copy the provided code to HASS.
Instantly it shows the error: cannot add. There is no delay it is really instantly right when i click the “add” button …
I am using the latest HASS in a docker environment that’s running in a proxmox container.
I can ping6 google.com from inside the docker container and because the thread boarder routers where detected i don’t think there’s too much wrong with my ipv6 setup …
Make sure your python-matter-server container is using host networking, as specified in the docs, and that everything is on the same vlan: the matter server and the device (and the mobile phone if provisioning factory fresh). Since the device is already commissioned to Apple Home, you can also try adding it to HA using the Matter web dashboard, http://servername:5580 by entering the sharing code there.
Hello and thanks for your help!
Unfortunately trying to configure it via the dashboard does not help either.
Here’s the logs - maybe they help to help me
2025-07-14 06:39:13.868 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-14 06:39:23.848 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:28189i with Node: <0000000000000000, 0> S:0 M:82929272] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-14 06:39:31.363 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-14 06:39:41.941 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:28190i with Node: <0000000000000000, 0> S:0 M:82929273] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-14 06:39:48.857 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-14 06:39:59.542 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:28191i with Node: <0000000000000000, 0> S:0 M:82929274] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-14 06:40:06.353 (Dummy-2) CHIP_ERROR [chip.native.SC]
5-07-18 19:00:32.570 (Dummy-2) WARNING [chip.ChipDeviceCtrl] Failed to establish secure session to device: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:96: CHIP Error 0x00000003: Incorrect state
2025-07-18 19:00:32.570 (MainThread) ERROR [matter_server.server.client_handler] [140258643003056] Error while handling: commission_with_code: Commission with code failed for node 1.
i installed avahi on the docker vm → i can see lots of ipv6 traffic with _matter._tcp → cannot pair. i tried 2 different matter devices (that are already paired and connected via either my homepod mini or nanoleaf shapes as a thread boarder router which are both listed in HASS … i disabled the firewall for the docker vm → same problem.
then i tried changing the config of my deiban machine (see screenshot -currently commneted out) but it did not help as well …
i cannot see the problem here tbh …
I still can’t get it working.
The Matter Device is paired with homekit and openhab.
I tried generating a code from both applications and pairing it with hass - no use.
Again the logs from the hass-matter-server:
2025-07-30 07:07:04.674 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 5.
2025-07-30 07:07:04.859 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:27121i with Node: <0000000000000000, 0> S:0 M:189867839] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-30 07:07:12.079 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-30 07:07:22.389 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:27122i with Node: <0000000000000000, 0> S:0 M:189867840] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-30 07:07:29.575 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-30 07:07:39.627 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:27123i with Node: <0000000000000000, 0> S:0 M:189867841] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-30 07:07:47.069 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-30 07:07:57.426 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:27124i with Node: <0000000000000000, 0> S:0 M:189867842] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-30 07:08:04.564 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-30 07:08:14.631 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:27125i with Node: <0000000000000000, 0> S:0 M:189867843] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-30 07:08:22.058 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-30 07:08:31.974 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:27126i with Node: <0000000000000000, 0> S:0 M:189867844] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-30 07:08:39.553 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
2025-07-30 07:08:49.761 (Dummy-2) CHIP_ERROR [chip.native.EM] <<5 [E:27127i with Node: <0000000000000000, 0> S:0 M:189867845] (U) Msg Retransmission to 0:0000000000000000 failure (max retries:4)
2025-07-30 07:08:57.047 (Dummy-2) CHIP_ERROR [chip.native.SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
Is there any other command i can try to run that gives a clue on what’s going wrong?
Not sure if you ever resolved. I had similar issues running the matter server in a container on my QNAP with avahi network.I enabled ipV6 and it looked good but could not get it to work. I reached the conclusion that even though I saw ipV6 traffic, there were some route advertisements not being forwarded and the fact that I could not set the following parameters in QNAP OS kernel :
net.ipv6.conf.all.accept_ra_rt_info_max_plen = 64
I ended up installing a straight VM using Alpine Linux, installing docker and running matter in a docker container inside a VM. in a VM using its generic network drivers and setting up ipV6 with the appropriate parameters below in sysctl.conf
I didn’t abandon docker though. I’m still running everything in docker. Even have python matter running in docker. I had to run docker in a VM to get it to work. Although I dod agree with HA that HA OS is much easier to deal with. Containerizing makes the add ons a bit more tricky to implement.