HA + Switchbot Hub 2 + Sonoff Zigbee(+matter) + Matter...Can't Connect, please help

So I’m trying to connect my Switchbot Hub 2 to Matter (this is the 1st time doing matter). I’ve followed many videos and just can’t get this thing to connect. Here’s what I’m doing, please let me know if something doesn’t look right…

  1. Hardware and software is set up as follows…
    • All of the following are latest versions…
    • Sonoff Zigbee dongle(E). Matter firmware installed per numerous instructional videos. I assume is functioning.
    • Switchbot Hub 2 with Matter enabled
    • Homeassistant with Matter Server Add-on and Matter (BETA) Integration
    • The following are also installed but I’m pretty sure are not required for Matter setup…
      Zigbee2MQTT Add-on, MQTT Integration, Thread Integration, Switchbot Integration
  2. On Switchbot I hold the on/off buttons for 15 seconds, display blinks then pairing light blinks. Note that the WiFi network resets so it breaks the WiFi connection while setting up Matter.
  3. Using phone…On Switchbot App copy the Matter pairing code
  4. Using phone…On Homeassistant…
    • Add integration
    • Add Matter Device
    • App search for a device for a about 30 sec then asks for QR or pairing code
    • I entered the pairing code then pressed Next and get the following sequence…
      Connecting to device
      Generating Matter Credentials
      Checking Network Connectivity
      Connecting device to Home Assistant
      Switchbot Hub 2 pairing light goes solid
      2 minutes later I get “Something went wrong”
      FAIL!!!

Any insight would be appreciated

1 Like

I SOLVED MY OWN PROBLEM!

So I just read in the MAtter notes for Homeassistant the you need to have IPv6 ON or Automatic. Mine was OFF. Turned it on and it worked like a charm!

Thank you so much. You solved my problem too.

Hello,

I am having the same issue with the Switchbot Hub 2 when adding it through the HA Android App. It goes through all the steps and fails with “Something went wrong”.

My setup is slightly different as I am running HA Core and the python-matter-server in containers. Now I am not sure where I have to enable IPv6. It’s enabled on the host machine (Synology NAS) but the Docker bridge network is IPv4 and getting IPv6 running seems like a hassle (IPv6 with Docker - Docker).
I would really appreciate any pointers on what I could try?

1 Like

Which did you set ipv6 to, on or automatic? In case it matters, I have ipv6 turned off on my home network.

Also, I have my H A server and Switchbot hub on an iot VLAN. Does the phone need to be on the same vlan as the hub?

Nm. Ipv6 is already enabled on my HA server. Still cannot add the Switchbot hub.

I also was struggling with this for some time. Firstly I had to turn on ipv6 and also be on my 2.4GHz wifi on my iPhone to add the hub to the Matter server add-on.

I was also experimenting a lot with the ipv6 settings to be able to Ping the matter device via ipv6. In my Asus routers ipv6 settings i chose:

Connection type: Native
DHCP-PD: Disable
Release prefix on exit: Enable

Lan ipv6 address: example fd81::1
Lan prefix length: 64
Auto configuration setting: stateless

Connect to dns server automatically: Enable

Enable Router Advertisement: Enable

I am no expert at all in ipv6, but it now seems I have no problem pinging the matter devices via the fd81 adresses.

Also if you are running the Home Assistant via a VM make sure that your network adapter has enabled ipv6 (I use stateless auto configuration)

Hope this helps