#Help with adding Matter-over-Thread devices to Home Assistant

1 messages · Page 1 of 1 (latest)

fast cloak
#

Setup: Home assistant OS

Situation: I can't add my thread devices to home assistant, even though I have the Aqara M200 as Thread edge router. I can add these devices to aqara home however, and yes, every time I tried to pair my devices to home assistant I did a factory reset on my devices.

#

python-matter-server logs:

#

Help with adding Matter-over-Thread devices

#

Help with adding Matter-over-Thread devices to Home Assistant

silent oar
#

please clearly explain how you're trying to add the devices to HA and at which point it fails (and with what error message)

fast cloak
#

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.

silent oar
#

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.

fast cloak
#

what I belive might be the cause:

silent oar
#

how is your home network set up?

fast cloak
#

IPv6 might not be supported by my ISP

silent oar
#

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

fast cloak
#

well only thing might be

#

the pi is connected over ethernet

#

while the aquara hub is using wifi.

silent oar
fast cloak
#

it starts with fe

#

not with fd

silent oar
#

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.

fast cloak
#

in it

silent oar
#

do you see an entry for _meshcop._udp.local?

fast cloak
silent oar
#

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

fast cloak
#

under what category would I find the option to disable the blocking?

silent oar
#

also check if you have any wifi multicast related settings in the router that you could toggle

silent oar
#

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.

fast cloak
#

okay, i think going with the ethernet option makes more sense?

#

im gonna try both anyways

#

but i'll just start with ethernet

silent oar
#

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".

fast cloak
#

yeah they are

#

ethernet is plugged in now

#

should I restart to trigger new leases?

silent oar
#

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.

fast cloak
#

oh I might to chnage the hubs setting

#

the hub already recognises the wired connection

silent oar
#

alright, then refresh the home assistant network page and see if it has gained a new ipv6 address starting with fd.

fast cloak
#

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

silent oar
#

the thread border router tells it a new address to use when it sends the router announcement

fast cloak
silent oar
#

now that home assistant has that address, it can talk to thread devices. You should be all set.

fast cloak
#

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?

silent oar
#

you can also try turning off that wifi multicast option you found on wifi router and switching back to wifi

fast cloak
#

i am gonna switch to the ethernet setup later this week

silent oar
#

it may or may not work, i don't know :(

fast cloak
silent oar
#

try just the hub first, i guess?

#

since the hub is what is sending multicast packets, so it's more likely to be affected.

fast cloak
#

okay, hub is not plugged in anymore and multicast is off

silent oar
#

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.

fast cloak
#

or do I have to use the terminal addon to run sudo reboot

silent oar
#

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

fast cloak
#

ahhh thanks

#

I was using home assistant container + python-matter-server before

#

so I did not know about these options lol

silent oar
#

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.

fast cloak
#

but they also take away way to much control

#

like i cant even install HACS rn

silent oar
#

you can install HACS on HAOS, works fine (I have it)

fast cloak
#

because the addon install link does not work

#

and yeah

#

the fd adress is gone

#

so I might need to do both over WIFI?

silent oar
#

you could try toggling the multicast option you found on both devices to see if that helps

silent oar
#

ok, if toggling that didn't help on wifi then I guess your router simply doesn't like router announcements from wifi devices :(

fast cloak
#

:( rip

#

anyways, so should I keep it on or off?

silent oar
#

probably best to use the default setting if it had no effect on this

fast cloak
#

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

silent oar
#

unifi equipment is sometimes tricky to get working with matter stuff, since it has a lot of enterprise features.

fast cloak
#

you think that would help?

silent oar
#

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.

fast cloak
silent oar
#

if your wifi and wired lan are on different subnets, that would prevent it from working.

fast cloak
#

no way

silent oar
#

to add matter devices, your phone, the thread border router, and home assistant all need to be on the same subnet

fast cloak
#

is the max ap thing maybe the issue?

silent oar
#

no, that all seems fine

fast cloak
#

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

silent oar
#

what wifi router are you using? it might be good to know in case other people have the same problem

fast cloak
#

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

silent oar
#

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 dotsvertical 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

fast cloak
#

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

silent oar
#

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)

fast cloak
#

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

fast cloak
#

I can only add devices to aqara home

#

if the hub is on a 5ghz network

silent oar
#

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

fast cloak
#

yep

#

ur right

#

now that everything is on 2.4Ghz

#

I could add all of the devices

#

Thanks, and I think I can mark this as closed.

#

One last question though

#

If I moved everything to 5Ghz, would matter wifi devices still work?

silent oar
#

there's a lot of matter wifi devices that are 2.4ghz-only

#

but they don't require the ipv6 router announcements, so they might still work even when the matter controller is on ethernet or 5ghz