Pairing matter over wifi with matter-binding

Hi all,

I have a questions about pairing a matter over wifi device with the matter-binding without the use of Google Home or someting else. As far as I know the process of matter pairing starts with bluetooth. When I try to pair the device with “Actions” → “Pair Matter Device” and take a look to the trace log of the binding I can’t see that bluetooth is used. Also when I start btmon (Bluetooth monitor) on the openHAB Server I can’t see something happens.

Is something wrong in my configuration of the matter binding or is there another way to pair the device?

What is the best practise to pair a matter over wifi device with the matter binding? As I said I don’t want to use another hub.

  • Check your Wi-Fi is correctly configured for ipv6
  • Check your OH server is correctly configured for ipv6
  • Find the device code of the device you want to pair
  • you may need to put the device into pairing mode, My Leviton dimmer did
  • Use the OH server matter add-on to pair, not BT, over ipv6
    I have done this with nearly all of my matter over wi-fi devices

ipv6 and mDNS should be ok, at least that’s how it looks with avahi-browse. The device code is printed on the device and, of course, the device is in pairing mode.

What do you mean with “OH server matter add-on”? Do you mean the matter binding? I used the binding action “pair matter device” and got the response “No device discovered using identifier …..“

My approach to troubleshooting was to check if the fault was with the bluetooth part of the pairing or the ipv6 part. Because I had read that the first step in matter pairing is bluetooth and then wlan or thread. Furthermore, the device is announced via Bluetooth during pairing mode.

So I thought the matter binding talk at first via bluetooth with the device.

The first step with Bluetooth is to exchange the Wi-Fi access data. When the matter binding don’t talk via bluetooth to the device I probably have to use another tool to bring the device into the wlan. And then the binding might be able to find the device.

AFAIK, the openHAB Matter Binding does not support a Bluetooth connection to the device right now. But this is planned for the future.

I added my devices first to apple home and then added them to openhab.

I almost suspected as much because I didn’t see anything about Bluetooth in the trace log.

Thank you for the info

Yes, but I have neither Apple Home nor Google Home.

Maybe I’ll try the manufacturer’s app if I can’t think of anything else.

Could it work with the chip tool, or is that only for Thread devices?

I have a Nous A8M-Poweroutlet and used the Nous-App to get the Pairing-key for the matter-node with Discover.

I have a Brennenstuhl WA3600 XS03. I think it will work just as well with the app from Brennenstuhl.
But it is just another acount you have to sign in.
My goal was to do it only with openHAB.

That was my first thought too. But I think that only works if you have a “virgin” device and have the originally matter-number from the device and to scan at the first use (plug in) of the poweroutlet.

In my nous app there is a function to share the device with “third-party-users”(OH). If you use this function, you get a matter-number which is valid for a while (mine gives you 5 minutes) to link to your system by pairing. I only need it for (re-)generating this number. (perhaps you have a “dummy-e-mail-address” for such purposes)

I didn’t find another way, although I tried a lot of possibilities.

My setUp:

.things:

Thing matter:controller:01 "Matter Controller" @ "Arbeitszimmer" [nodeId="0"]        //controller

Thing matter:node:01:nousa8m01 "Nous_A8M" (matter:controller:01) [nodeId="generated by OH", pollInterval=1800] {
	Channels:
		Type wifinetworkdiagnostics-rssi : 0#wifinetworkdiagnostics-rssi
		Type onoffcontrol-onoff : 1#onoffcontrol-onoff
		
		Type electricalpowermeasurement-activepower : 1#electricalpowermeasurement-activepower              // manually added - do not work
		Type electricalpowermeasurement-activecurrent : 1#electricalpowermeasurement-activecurrent          // manually added - do not work
		Type electricalpowermeasurement-voltage : 1#electricalpowermeasurement-voltage                      // manually added - do not work


}



.items

Group                     gnousa8m "nous_A8M 01 - matter"                    <a1t_1>            (gEG_Buero)      ["PowerOutlet"]
Number:Power              nousa8m_01_RSSI         "Signal"                   <qos>              (gnousa8m)       ["Status", "RSSI"]   { channel="matter:node:01:nousa8m01:0#wifinetworkdiagnostics-rssi", matter="OnOffPlugInUnit"  } 
Switch                    nousa8m_01_Switch       "Steckdose A8M"            <a1t_1>            (gnousa8m)       ["Switch", "Power"]  { channel="matter:node:01:nousa8m01:1#onoffcontrol-onoff", matter="OnOffPlugInUnit" }

Number:Power              nousa8m_01_Leistung     "Leistung"                 <a1t_1>            (gnousa8m)       ["Energy"]           { channel="matter:node:01:nousa8m01:1#electricalpowermeasurement-activepower", matter="OnOffPlugInUnit" }
Number:ElectricCurrent    nousa8m_01_Strom        "Strom"                    <a1t_1>            (gnousa8m)       ["Energy"]           { channel="matter:node:01:nousa8m01:1#electricalpowermeasurement-activecurrent", matter="OnOffPlugInUnit"  }
Number:ElectricPotential  nousa8m_01_Spannung     "Spannung"                 <a1t_1>            (gnousa8m)       ["Energy"]           { channel="matter:node:01:nousa8m01:1#electricalpowermeasurement-voltage", matter="OnOffPlugInUnit"  }


I was a bit sad :sleepy_face: about what “matter” can do for me (or not :thinking: ).

Have a look on this thread. Same problem !

I think that pairing exclusively with openHAB will only work if the matter binding can communicate with the device via Bluetooth.

And as hmerk wrote above, this is planned for the future.

1 Like

I managed to integrate the Switchbot smartlock with the Switchbot Matter hub, but I had to use the Switchbot app to do the initial setup, connect it to the Wi-Fi, and enable the Matter protocol.

Once the device was connected to Wi-Fi, I was able to pair it from Openhab.

Openhab probably still lacks the initial setup step via Bluetooth.

1 Like

I have paired several devices with OH first.

I believe that’s the case for you, but I can’t really explain it.
Because the usual process for pairing Matter over Wi-Fi devices, as far as I know, is that the Wi-Fi access data is transmitted via Bluetooth, and only then can the device connect to the local Wi-Fi network and be discovered by the Matter controller.

Now that I think about it and recall, The device app setup wifi, but not the matter pairing.

2 Likes