#Matter over thread with custom border router

1 messages · Page 1 of 1 (latest)

sinful stratus
#

I am trying to setup a matter network over thread, with a custom RCP device. My device is based on CC2652.

I am running the the OTBR and matter-server docker images.

All the services are running, the OTBR is up and is detected by HA.
I have send the network credentials from the HA companion app.

When I want to add a Thread device to the network, I see from OTBR logs that the device is detected and informations are sent with mdns

On matter-server side I see the following log
Discovered commissionable Matter node: AsyncServiceInfo(type='_matterc._udp.local.', name='93E2A4FAFCF1DC44._matterc._udp.local.', addresses=[], port=5540, weight=0, priority=0, server='22C8BAFB0E5D0772.local.', properties={b'VP': b'5181+4097', b'DT': b'0', b'SII': b'800', b'SAI': b'800', b'T': b'1', b'D': b'855', b'CM': b'0', b'RI': b'010025CC9C165EA349AB3964E40D71095F67', b'PH': b'36', b'PI': None}, interface_index=None)

But nothing happens after that. Is it normal that addresses field is empty ?

I can ping the device with its IPv6 address from inside the matter-server container.

Any advice of the next thing to test ?

Thanks !

minor latch
#

Please explain a bit more descriptive in what you mean with "add a thread device to the network". Normally you commission a Matter device from the HA companion app. The companion app then uses the OS framework to do the first stage of commissioning (PASE) and send over the credentials using bluetooth. Then the device joins the wifi or thread network and the next stage of commissioning begins involving the CASE session.The device will be commissioned onto a temp fabric on the phone and from there shared to the HA Matter controller.

sinful stratus
#

I am using a smart plug ONVIS S4.
I have set up it in paring mode. From HA companion app I have selected "add device" and choose "matter device". I have scan the QR code, the smart plug is detected, and is associated to the OTBR. The matter-server receives the message "Discovered commissionable Matter node" but nothing happens after that.
On the companion app, after a while, I have a paring failed

minor latch
#

Android or iOS ?

sinful stratus
minor latch
#

Did you sync the credentials first to your phone ? See Thread docs

minor latch
# sinful stratus iOS

OK, can you go to HA Settings --> Integrations --> Thread --> Configure and make a screenshot?

#

Important is that your phone knows about your preferred Thread credentials

sinful stratus
#

I have added some logs to the matter-server.
I see that I go to _on_mdns_operational_node_state function. But my my node_id is unknown so I just return

if not (node := self._nodes.get(node_id)):
return # this should not happen, but guard just in case

minor latch
minor latch
# sinful stratus

OK so you have one thread border router and the credentails are preferred already on the phone.

#

Now also click next to the border router and click "use for android + ios crednetials"

#

it will then show a key icon next to the bordre router

sinful stratus
minor latch
#

ah.. running in docker is without my support, sorry

#

Only Matter server as add-on is supported

#

to many variables can go wrong when running in docker, especially on the host OS

#

most host operating systems lack important patches for proper IPv6 support and neighbour discovery

#

especially NAS operating systems with ancient kernels

sinful stratus
#

Ok, I understand,
I have the control on all the OS and the kernel host configuration.
I think it would be very interesting to have an official docker support with requirements about host kernel configuration.

minor latch
# sinful stratus Ok, I understand, I have the control on all the OS and the kernel host configura...

We dont have the capacity to provide that support now.
Problem is that many/most people just follow some random youtube tutorial but have no idea what they're actually doing.

We have written down all info in the docs so if you are experienced enough, you should be able to manage this.
https://github.com/home-assistant-libs/python-matter-server/blob/main/docs/docker.md
https://github.com/home-assistant-libs/python-matter-server/blob/main/docs/os_requirements.md