What gateway for OH+Thread (Matter)

Hey,

I want to buy new smart devices from IKEA that supports Matter (with Thread). From what I investigated Thread protocol requires some additional gateway that will connect Thread devices with HTTP.

I’m stuck at finding proper gateway device, because there are so many of them with different functions. What I’m looking for is a device that will support this scenarios:

  1. All rules will be done by OH (Matter, Zigbee, Supla etc. devices)
  2. Gateway will only pass the commands from/to Thread devices
  3. OH will have Matter binding installed

I found some advanced (expensive) gateways, like Aquara, but from what I read they are doing similar job as OH (execute rules, register devices, etc.) and this is not what I want.

I found some simpler gateway GL-S20 Thread Border Router. Will it work as a proper Matter gateway for OH? How should I then configure Matter plugin in OH? As a bridge or client?

You can read this thread.

I think this is the least expensive way to get a thread border router

I have started to read about thread but I have not actually used it yet, so I cannot help with my actual experience

1 Like

Hmm, creating own router with ESP looks promising. Thanks!

Hmmm, I thought all that is required for a Matter device to function is:

  1. a Matter device
  2. a WiFi AP, with IPv6 enabled
  3. the OH Matter binding

… that’s it?!

That is what you need for matter over wifi usually used for mains powered devices, for matter over thread, usually used for battery powered devices you need a thread radio or in technical terms a thread border router.

Paired Ikea Matter over Thread Bilrea using just a Conbee dongle and the OTBR SW.

For thread border router, I shared my first experience with the Aqara M200 hub. I will add more Thread devices in the next weeks and share how it works.

Not a very cheap solution but not an expensive solution also.

The ConBee stick is definitely one of the interesting alternatives for anyone who wants to avoid an additional TBR-device (and hasn’t got the skills or time for the esp32-path).

I’d like to second the kind request for a detailed description of your next pairing process :folded_hands:. Any hints regarding the firmware? ot-rcp-cb2_0x01010700.GCF seems to be the latest?

And: Has anyone tried the ZBT-1 or ZBT-2? They’re from the HA-world but should work with openhab too (as it’s just matter).

I’ve been looking at the Sonoff MG21 dongle, it offers a multi-PAN firmware to have both ZigBee and Thread simultaneously on a single USB device.
But it appears that at least for HA, a special add-on is needed to communicate with the stick, but it’s a bit unclear to me from reading what the add-on actually does and how that would translate to OH. It’s not that expensive, so I might just buy one and experiment a bit.

Good luck with the MG21, it took me forever to get the plus version to work with just Thread, the documentation how to setup this outside of HA is very scattered.

For multiplan I followed Building Otbr Locally | Multiprotocol Solution on Linux | OpenThread | v2.7.2 | Silicon Labs

For multipan you need the cpc daemon to connect to the dongle GitHub - SiliconLabs/cpc-daemon: Co-Processor Communication - Daemon for Linux

For multipan I was trying with the following settings OTBR_AGENT_OPTS=“-I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyUSB0?uart-baudrate=115200 trel://eth0”

It did connect with the dongle but I couldn’t get matter to pair, I read somewhere that was an issue with the multipan, so I tried with only the open Thread implementation, which worked after many tries (so it might have something else that was misconfigured)

Thread only works for me with these settings OTBR_AGENT_OPTS=“-I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyUSB0?uart-baudrate=460800 trel://eth0”

I still couldn’t get the openHAB matter binding to get pair my Tado X radiator valves, so I did that manually with chip-tool Working with the CHIP Tool — Matter documentation

1 Like

Writeup finfished:

:slight_smile:

Yes, I noticed that’s what the HA add-on provided.

Thanks for the hints, I expect it will be a hassle to set up, as with all things that’s not really mature, your experience will certainly be of use!

@Max_G Matter can be over WiFi, but it can also be over Thread. Thread is a slight variation on Zigbee, and requires its own hub/router if you don’t have one.

1 Like

A very important paragraph to consider from Matter binding documentation:

Thread devices require a Thread Border Router and a bluetooth enabled device to facilitate the thread joining process (typically a mobile device). Until there is a supported thread border router integration in openHAB and the openHAB mobile apps, it’s strongly recommended to pair the device to a commercial router with thread support first (Apple TV 4k, Google Nest Hub 2, Amazon Gen 4 Echo, etc… ), then generate a matter pairing code using that ecosystem and add the device normally. This will still allow openHAB to have direct access to the device using only the embedded thread border router and does not interact with the underlying providers home automation stack.

I would say that recommendation is mostly there to indicate that you should pair with an external border router first. The manual pairing with OpenThread Border router would do exactly the same as the commercial devices (quite some of those commercial devices even run OpenThread)

While I would not recommend compiling it yourself as I did, using the docker setup of the OpenThread border router and following the write up of @OMR it should work fine if you already know how to use docker and have some experience with other dongles