Matter Server issues

Hi,

I’m hoping someone here can assist me as google has not proven successful. I just installed the matter addon and integration and I’m trying to add my first device. It doesn’t matter what the device is, I seem to always get the same results. I do have ipv6 enabled and can access my server using that address. Beyond that, I really don’t know what I’m doing. This is the error I keep seeing in the matter addin logs.

2025-05-29 13:53:27.491 (MainThread) INFO [matter_server.server.device_controller] Starting Matter commissioning with code using Node ID 1.
2025-05-29 13:53:27.687 (Dummy-2) INFO [chip.ChipDeviceCtrl] Established secure session with Device
2025-05-29 13:53:28.651 (Dummy-2) INFO [chip.ChipDeviceCtrl] Commissioning complete
2025-05-29 13:53:28.652 (MainThread) INFO [matter_server.server.device_controller] Commissioned Node ID: 1 vs 1
2025-05-29 13:53:28.652 (MainThread) INFO [matter_server.server.device_controller] Matter commissioning of Node ID 1 successful.
2025-05-29 13:53:28.653 (MainThread) INFO [matter_server.server.device_controller] Interviewing node: 1
2025-05-29 13:53:31.586 (MainThread) ERROR [matter_server.server] Error doing task: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/matter_server/server/client_handler.py", line 214, in _run_handler
    raise err
  File "/usr/local/lib/python3.12/site-packages/matter_server/server/client_handler.py", line 197, in _run_handler
    result = await result
             ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/matter_server/server/device_controller.py", line 351, in commission_with_code
    await self._interview_node(node_id)
  File "/usr/local/lib/python3.12/site-packages/matter_server/server/device_controller.py", line 613, in _interview_node
    await self._chip_device_controller.send_command(
  File "/usr/local/lib/python3.12/site-packages/matter_server/server/sdk.py", line 308, in send_command
    return await self._chip_controller.SendCommand(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/chip/ChipDeviceCtrl.py", line 1215, in SendCommand
    return await future
           ^^^^^^^^^^^^
chip.interaction_model.InteractionModelError: InteractionModelError: InvalidCommand (0x85)

I have the same error as well when I try to add Matter devices to Home Assistant. Did you ever figure this out?

Unfortunately no. I can’t find any resources online that explain this issue.

Alright - you got the Matter server add-on installed and started, BUT, did you setup the Matter integration afterward? The Matter Server add-on is only the first half of the puzzle, the Matter integration will complete the puzzle, so-to-speak. According to AI, which I shared your error with, this is the most viable cause of your error. The error shows that the device is communicable with the Matter server, but it fails because Home Assistant doesn’t know what to do with it (hence, you may be missing the integration layer).

If you have setup the integration as well, let me know and I’ll investigate it further.

Yes I have it setup as well. All looks good until I try to add a device.

1 Like

What is the device you’re trying to use? Have you tried factory resetting the device and recommissioning it?

Also, when you go into the Web UI for the Matter server, does the device show in there as a node despite it not communicating with HA?

I’ve tried many devices from light bulbs to my Aqara M3 hub. Every attempt fails. I’ve also got ipv6 enabled as I’ve seen that matter only uses that.

ipv6 enabled - are you saying it’s enabled on your router? Have you attempted to connect the devices using a different Matter controller, like Apple Homekit or Android Google Home? Are the devices wifi or thread or both?

It’s enabled on my router and home assistant. Yes I can connect devices to HomeKit as well as my aqara m3 hub.

Not using thread at this time.

Are you using HAOS in a VM or a Supervised installation? Or is it a bare-metal installation?

ipv6 needs enabled on 3 layers - the router, the LAN network (or whichever network you’re hosting matter server, HA, and the devices on) on the router, and HA.

Make sure mDNS is enabled on your network too.

Since you’ve tried multiple types of devices, we can rule out device quirks.

There could be a bug in the firmware, but again, considering you’ve tried several types of devices, this is unlikely the issue.

This leads me to believe it’s a simple configuration issue that’s going over our heads. Did you make sure the block was checked to use the Supervised Matter Server add-on when setting up the Matter integration?

Since Commissioning was successful, I would think this is not a networking issue. I once encountered a similar problem trying to commission a Nanoleaf device using Nanoleaf Adroid App where the commissioning succeeded but the interview failed (don’t recall the failure reason, so may be different). BTW this was probably a couple of years ago. The only way I could get it to work was to use the Matter Server AddOn to do the commissioning.