#Help with adding Matter-over-Thread devices to Home Assistant
1 messages · Page 1 of 1 (latest)
python-matter-server logs:
Help with adding Matter-over-Thread devices
Help with adding Matter-over-Thread devices to Home Assistant
please clearly explain how you're trying to add the devices to HA and at which point it fails (and with what error message)
Okay, so I am trying to add the devices with matter using the "New or factory reset device" option. I bought a few IKEA BILRESA devices which all use Matter-over-Thread. Now, when adding the device to home assistant using the Companion app on ios, adding fails at the configuration step, where it presents me with following error message:
Translated it means: Device could not be added, you might need to restart your device before you can add it to your home
Also, I can add the device to aqara home directly, but again not to home assistant. The aqara hub is already connected via matter so i know that matter over wifi works.
have you tried sharing the device from aqara home to home assistant? aqara should have an option to generate a code to allow adding a matter device to another controller.
yeah I did. Also fails, I have been working on this issue for about 4h+ lol
what I belive might be the cause:
how is your home network set up?
IPv6 might not be supported by my ISP
there might be something in the network which is preventing home assistant from being able to talk to the thread border router
ipv6 does not need to be supported by the isp. ipv6 is only used locally within the lan
good to know
I have my router and that is it. Nothing inbetween those two
well only thing might be
the pi is connected over ethernet
while the aquara hub is using wifi.
Please open the HA network config: https://my.home-assistant.io/redirect/network/ and check the following - it should show an ipv6 address that starts with "fd" in the Network Adapter section
fe won't work, there needs to be one with fd. Hmm. Something else to check: on that same page, scroll down to the bottom and open the zeroconf browser.
in it
do you see an entry for _meshcop._udp.local?
ok. So home assistant can see the thread border router via mdns, but it is not receiving the ipv6 "router announcement" packets from the thread border router, which are what let it talk to thread devices
it's possible that those are being blocked by your router :(
are you able to switch the aqara hub to wired ethernet? that might help, since sometimes wifi routers block multicast from wifi devices
under what category would I find the option to disable the blocking?
yeah wait a sec
also check if you have any wifi multicast related settings in the router that you could toggle
I have one and it is on
ok, try turning it off. sometime there are multicast enhancement options that stop this from working.
after you turn the wifi multicast related option off (or after you switch the aqara hub to ethernet) wait a few minutes then check if home assistant has received a new ipv6 address that starts with fd.
okay, i think going with the ethernet option makes more sense?
im gonna try both anyways
but i'll just start with ethernet
I always prefer ethernet when it is available :)
Also, check the home assistant network settings in the "configure network interfaces" panel to make sure that both "ipv4" and "ipv6" are set to "automatic".
you just need to wait for a bit, home assistant should automatically add the new ipv6 address when it receives the router announcement from the thread border router.
oh I might to chnage the hubs setting
the hub already recognises the wired connection
alright, then refresh the home assistant network page and see if it has gained a new ipv6 address starting with fd.
but why would home assistant gain addresses when it was already plugged in with Ethernet from the start?
ohhhhh
yeah
there is a new one
the thread border router tells it a new address to use when it sends the router announcement
now that home assistant has that address, it can talk to thread devices. You should be all set.
well the only Ethernet cable at home right now is my 30m cable and it is kind of a hassle
sorry, but could you guide me trough the wireless setup aswell?
you can also try turning off that wifi multicast option you found on wifi router and switching back to wifi
i am gonna switch to the ethernet setup later this week
it may or may not work, i don't know :(
both the hub and the rpi? or just the hub
try just the hub first, i guess?
since the hub is what is sending multicast packets, so it's more likely to be affected.
okay, hub is not plugged in anymore and multicast is off
unfortunately, home assistant will probably remember the ipv6 address for a while
so things might work right after you switch but break later, or you might have issues right away
you can try rebooting the machine that HA is running on to get a fresh network config for testing.
so is the reboot option in the developer settings enough?
or do I have to use the terminal addon to run sudo reboot
settings -> system, then the power icon in the top right is the normal way
open advanced options at the bottom of the dialog and it'll have a reboot option
ahhh thanks
I was using home assistant container + python-matter-server before
so I did not know about these options lol
yeah, with HAOS they add additional system management options into the home assistant user interface so you can manage the whole system with a browser.
yeah that is nice
but they also take away way to much control
like i cant even install HACS rn
you can install HACS on HAOS, works fine (I have it)
because the addon install link does not work
and yeah
the fd adress is gone
so I might need to do both over WIFI?
you could try toggling the multicast option you found on both devices to see if that helps
oh multicast is a global option
ok, if toggling that didn't help on wifi then I guess your router simply doesn't like router announcements from wifi devices :(
probably best to use the default setting if it had no effect on this
yeah default was on
also
I might buy the Dream Machine Router one day
wait lol
I have a subnet option
I could make a subnet with my smart home devices
unifi equipment is sometimes tricky to get working with matter stuff, since it has a lot of enterprise features.
you think that would help?
also do not use subnet or vlan features - if you have stuff on a different subnet, then that will definitely prevent home assistant from being able to talk to matter devices correctly.
you think such a option could be preventing the thread connection?
if your wifi and wired lan are on different subnets, that would prevent it from working.
to add matter devices, your phone, the thread border router, and home assistant all need to be on the same subnet
is the max ap thing maybe the issue?
no, that all seems fine
anyways, thanks for your help
now we know
ethernet all the way
I will try wireless home assistant rn too, just so I have tried everything
what wifi router are you using? it might be good to know in case other people have the same problem
sum random ahh router I got from my isp, if I can look up the model in the dahboard i'll tell you
Cisco NE1611B
i think
nope
SDMC NE1611B
the ai really is great at marketing bad things
anyways, luckily it is a router just for bosnia
so not manny people will have this issue
Anyways, not sure what is up with the HACS install. It can be done semi-manually. Go to Settings -> Apps (aka Add-ons) then "Install App" in the bottom right. On the screen that opens, click the
menu in the top right, then "Repositories". Paste https://github.com/hacs/addons in the text field, then click Add.
After that, the "Get HACS" app will appear in the list when you scroll down
hey @silent oar now that I have found two ethernet cables, one for each, ive noticed that the process of adding a device does not even get past connecting
thanks for that
oh... then maybe your router is isolating the wifi from the ethernet. So now your phone can't talk to the thread border router :(
it's possible it might work when everything is on wifi?
not sure if there is any good solution to this other than getting your own wifi router (and setting the isp-provided one to "bridge" mode and disabling wifi on it, if possible)
I mean
I do have a spare tp link repeater lying around
also
update
now all the errors are gone
(I swiched to full wifi)
but I get a discovery timed out
okay wierd discovery
I can only add devices to aqara home
if the hub is on a 5ghz network
that's probably because your phone is on the 5ghz network
so i guess not only is ipv6 router announcements between ethernet and wifi blocked, but also between 2.4ghz wifi and 5ghz wifi blocked too