I'm trying to start using Thread devices in Home Assistant for the first time. I've gotten a Sonoff Dongle Plus MG24, flashed it with OpenThread firmware, added it as an OpenThread Border Router in Home Assistant, and added the Matter integration.
However, when I try to commission a Matter/Thread device using the Home Assistant companion app on my GrapheneOS phone, I scan the QR code, get to the screen that says "power on your device and make sure it's in setup mode," and "connect your phone to your main 2.4GHz network" and tap the "I'm ready" button, but then it gives me an error that I have "no Wi-Fi connection" even though it is definitely connected to the correct (2.4Ghz, not 5GHz) network.
I've also checked that the Home Assistant app has all the necessary permissions (network, nearby sensors, etc.)
Help?
Edit: I just found these bug report threads that look like they're relevant, but I'm still reading through them:
14 Comments
tiramichu@sh.itjust.works · 5 pts · 1d
Commissioning Matter devices using Graphene may not work due to the commissioning flow requiring Google Play Services.
I had that problem. If your Home Assistant instance itself has Bluetooth, you can use the manual flow to work around it:
In HA:
Settings -> Connectivity -> Matter -> Options -> Add Manually
There you can type the 11 digit code from your matter device (exactly as it appears, including hyphens) and it will add it without needing a phone.
As mentioned though, your HA instance needs Bluetooth for this. My HA is in a virtual machine so plugging a dongle was less than ideal. I solved it instead using a esp32 Bluetooth proxy over Ethernet.
https://esphome.io/components/bluetooth_proxy/
You may(?) also need to set up Matter to use that bluetooth device. There's some reading on it here which could be useful
https://smarthomescene.com/guides/add-matter-devices-home-assistant-without-phone/
Good luck! :)
I'm glad I set it up, because being 'forced' to use a google/apple phone for setting up matter on my local network feels like a really stinky pattern. I'm glad I don't need to :)
needanke@feddit.org · 1 pts · 1d
To set up matter for using bluetooth one just needs to go into the matter-server apps settings and turn on "Enable BLE proxy".
Besides what the name suggests, that also works for local bluetooth dongles.
tiramichu@sh.itjust.works · 2 pts · 1d
When I did it, this also involved switching to the beta version because the functionality to use a Bluetooth proxy was kinda new. But I guess we're past that now, hooray~
bw42@lemmy.world · 5 pts · 1d
I ran into this issue getting a couple matter devices working because I moved to e/OS ungoogled Android phone. Had to use my old iPhone with Home Assistant app to add them.
grue@lemmy.world · 2 pts · 1d
Unfortunately, I don't have any (working) phones running stock Android. Any other ideas?
ExcessShiv@lemmy.dbzer0.com · 4 pts · 1d
Unless you're sucking the google cock, you're pretty much out of luck. It's so weird that HA is relying so much on that shit. I have the same issue on GOS and I ended up giving up and tossing the matter devices.
bw42@lemmy.world · 2 pts · 1d
Only options I've ran into is either an Android device with Google Play Services, tablet or phone, or an Apple device, either tablet or phone.
Haven't tried using an Android emulator on a laptop. Not sure if that'd work.
leaf_skeleton@lemmy.world · 1 pts · 1d
You can use the border router UI to provision the devices with the ID on the device if your server has a bluetooth adapter. I did it this way can't give you more details as I'm currently not home
needanke@feddit.org · 5 pts · 1d
I litteraly had exactly the same issue last week.
It seems like the subsystem for adding matter devices on Android is part of Play services and not supported in Graphene.
I read around a bit and there are supposed to be ways of adding your phone or a laptop as bluetooth proxies and use them to pair the devices. If that works for you, great! I mearly wasted a few hours trying to get any of that to work and then gave up. What did work for me instead was going to the store, buying a 10€ bluetooth dongle and plugging that into homeassistant.
Whatever route you go, once you HA-instance has access to bluetooth (and you have anabled the bluetooth integration), go to the matter server app and in the configuration toggle "Enable BLE proxy" on.
Then restart the server and you can add your devices in the Matter Server by clicking on comission node -> new thread device and entering the key (including hyphens, found that out the hard way :|...). It does take a bit longer then adding zigbee devices but works and has been stable so far.
thr0w4w4y2@sh.itjust.works · 3 pts · 1d
is IPV6 enabled on the network? you need v6 for all that
grue@lemmy.world · 4 pts · 1d
Yes, IPv6 is enabled, but based on the bug report threads I linked I don't think it's the problem anyway.
roofuskit@lemmy.world · 1 pts · 1d
Add the device from a desktop browser. Use a bluetooth dongle on your home assistant device. Make sure the matter add-on is the only thing using that Bluetooth device.
Someome else asked a similar question a well or two ago about adding matter devices in the fdroid version of the app and this is the conclusion we game to.
https://lemmy.world/post/51058794
Edit: OP even mentions they got it working with Bluetooth proxies and that it was easy.
fonix232@fedia.io · 1 pts · 1d
At the very end of the second linked issue, you'll find a potential solution. It is IMO even better than the commissioning going through your phone, as it could enable mass device adoptions (you set up HA, throw around a few EspHome BT proxies, then reset all hardwired Matter devices like bulbs and switches and such, supply the pairing codes + device identifiers in a simple text file, and bam, everything pairs automagically as HA takes care of the commissioning process), as well as automatic device re-pairing (Matter devices are usually good on this front but some do require a reset and re-commission to work properly - with HA knowing the ID and pairing code, it can continuously watch for known devices becoming available to pair and do the auto commissioning again).
passenger@sopuli.xyz · 1 pts · 1d
Good luck! Sincerely.
I just made the decision, when I needed two more Zigbee Trådfri bulbs, and realised they are no longer available, that I buy a batch of used ones someone else is changing to matter or another system. I now have 6 spares along with spare buttons, which should last me a good while. I am postponing the switch to matter. Because currently my system just works.
But we need someone trailblazing. Hope it works out for you.