#Matter just a trick by Google, Samsung, etc to gain visibility on the devices?
1 messages ยท Page 1 of 1 (latest)
On top of that, the ecosystem seems to be very unreliable when it comes to pairing due to this cloud requirement, for example in my case, very often it fails at "Generating Matter credentials"
Hence, I'm getting the feeling that Matter was nothing else than a trick by the big tech companies to gain control over smart home devices in a sneaky way.
So I wonder, isn't there another option to add Matter devices to Home Assistant without being tied to Google or Android or any big company cloud services?
It has been very frustrating as a Zigbee user, which has been working fantastic, 100% local, no tricks or nuances, just works.
Now we have Matter which should be the next thing, which seems more robust in some aspects, and its a bit of a s**t show.
you mind elaborating on "t Google seems to keep control of the devices even if added to Home Assistant."?
assuming you shared the device to HA, they should both be "admins" of the device
On my phone (Samsung Galaxy S24), when I go to "Matter devices" under Settings, the bulbs show up after pairing.
If I remove the device there, it seems to also remove access to HA.
My expectation was for the devices to NEVER have to connect to anything in the cloud, not Google, not samsung, etc.
But the pairing process seems to use Google servers and than just hand-off admin control of the device.
However, I don't want any internet / cloud servers dependencies on my smart home devices
Maybe you should invest in a different phone then ?
Android by default uses all Google cloud services so that is not related to Matter but that is just Google policy
It is true that the Android framework uses the Google play services to commission matter devices (which is dependent of their cloud, unforytunately) but you can remove google again
so the so called "multi admin" feature of Matter also means that you can kick out google from HA
let me guess, you are an iPhone user, because this is not true.
It has a lot of Google which is normal, but it's an open platform.
@winter dust you using google home (then moving it over to HA?), from my experience, removing it from google home tends to remove all the admins
No, no Google Home installed.
ohhhh rightio
From reading the Matter spec, I get the impression more and more, that it's possible to have a different system or app handling the entire onboarding without Google.
But still need more time to read it thru
Yes but on a phone you are dependent on the phone API's
Not exactly, again, this is not a closed ecosystem like Apple likes to get their customers stuck in
To the point where if I had a Samsung Smartthings hub or whatever it is called, it would onboard the bulbs without Google
i mean, nothing wrong with using the phones API to commission the devices? makes sense from the sense every phone has a bluetooth access and can commision that way
you got a wifi bulb so its a bit different, but regardless
So I'm getting the impression that we just need to further expand HA mobile apps to achieve a similar behavior, as from what I read, the spec if fully open
why cant you just import it into HA, then remove the other admins?
well, since I started this thread, it seems that 1 of the bulbs that worked.
However, the second bulb now won't even manage to be added to HA, as it fails at the "Generating Matter credentials", which is a Google step.
Looking at the Matter-Server logs, there is no indication that a request for enrollment even got there yet.
you factory reset it?
No, because that way we can never get it certified and its also a pain to maintain.
If you want to skip the mobile OS api's we offer an option to use a bluetooth adapter on the HA server
Yeah, that indeed means that the first part (the PASE session from google to the device) failed.
I wasn't aware of this possibility.
Its a bit hidden still and not completely finished yet but it does already work
Not sure if we already documented it, I just got back from my holidays ๐
No, all docker, but it works pretty much the same way.
I managed to have the 2 bulbs managed in HA, than removed one of them from WiZ app that made it unavailable to HA too.
I still have control of 1 of the bulbs though
you got a bluetooth adapter hooked up to the host?
Is the Bluetooth adapter uses by HA or matter-server?
at this moment, I don't have any
just a SkyConnect
You need a dedicated bluetooth adapter
that is used for Zibgee only
right, but I will need to pass it thru to the respective container (either HA or matter-server)
and then in the Matter Server add-on settings you can assign the adapter id (if you only have one, it will be zero). Make sure that HA doesnt take that adapter for the buoltin bluetooth integration
ok, so its a Matter-server configuration
Yes, for the matter add-on
If you want to use it on container.... that is untested
ok thanks, I will explore this a bit and get a bluetooth adapter
a cheap Asus BT500 adapter already works
that is fine, I've found that everything works fine in docker as it does with HAOS, but it has a much much bigger margin for error, hence I understand HA team wanting to not get into it as much.
If you have a recent host OS with all patches and a good understanding of what you are doing, its fine
But we see so often folks trying to get it working on a nas OS with a 10 years old kernel or whatever
yep, it has been my experience, running Ubuntu Server 22, with Docker pretty much and than a VyOS router which makes it easier to deal with any network nuance that might be required
For example, right now my IOT devices are on a seperate subnet network, to the HA box, but since I'm relaying mDNS requests between the subnets with VyOS, everything works anyway lol
than its just firewall rules
Well, forget about that with Matter
I have it working ๐
relaying mdns is already awful on its own, with matter it wont work at all
and 0 issues controlling
Maybe with an IPv4 wifi matter device but it will never work with IPv6 Thread
its all based on Layer 2 neighbour discovery
it still uses IPv6, but yes, 100% Ethernet connection, not Thread.
So I really advise you to skip that route - it will cause you troubles.
initially, it was not working, as soon as I allowed IPv6 in all the interfaces in question + enabled iPv6 on the interface running docker hosting HA and Matter-server, everything started working fine.
but I think the main reason it works fine, is due to VyOS mDNS repeater component
We'll talk again when you are in issues or want to add Thread based devices.
I work all day with Matter and Thread - its not going to work
next you'll say you have a unifi router ๐
oh no, I'm intentionally avoiding having Thread devices or a Thread border router
I want to keep it simple and either Zigbee or Matter Wifi devices
honestly, I have more control with VyOS than you do with Unifi
Still I will not ever recommend mdns forwarders ever - even though the VyOS one is better than awful Unifi.
These protocols are not designed for enterprise networks, just do yourself a favor and keep it simple.
If you want a IoT network, just add HA to that IoT vlan and dont try to route multicast protocols.
We have seen wireshark traces with malformed data or just packets got replicated like a madman.
No thank you. As soon as I hear that a mdns forwarder is involved, I stop support ๐
Initially, the main reason I kept them separate was to make it easier with Firewall rules.
To lock down the IOT network even from the Internet, etc.
While the HA box (which is hosting other stuff, like pihole, etc) is on what I call a "management" network.
Currently, the more I play with some different solutions from what I started initially (I started with Shelly, went to Zigbee using SkyConnect, than ESPHome and now Matter Wifi) I'm getting to that conclusion that I would make my life easier if I just had HA on the same network as all the IOT devices.
I had the requirement of mDNS first with ESPHome and just worked still for Matter.
However, the challenge now is that I don't want to dedicate a full box for HA. It's overkill considering that I'm using a 1L PC.
Yes, have HA on the IoT network is going to make your life so much easier
Hence, I need to explore adding the containers to a specific VLan, but some containers tend to want the easy approach of just getting "host" network
Cant you setup HA as a VM then ?
hm, technically yes... I think I have enough ram for that.
Although I have very little experience with VMs on Linux, the only times I used them was with either Proxmox or XCP-ng
i mean, i am running HAOS with just the OTBR add-on and Matter-server and its only using up ~2GiB. not really indicative but like its not using much
no reason you cant just test it out
yeah, kinda expected that. I was just double checking, the box has 16GB, with like 10GB free at the moment lol
and the CPU doing absolutely nothing lol
but I will need to see creating and managing a VM via ssh and how to pass-thru USB devices
which might be more work than just figuring out docker networking ๐
@tender orchid it seems that there is enough stuff documented in the python-matter-server GitHub readme for me to setup the Bluetooth adapter.
Just one question, I see the example of requesting the commission with the websocket command "commission_with_code". Does any option show up within HA UI to issue this when the matter-server gains access to a Bluetooth adapter?
You dont deal with the websocket commands, you can just use the web UI of the matter server
hm, ok, do you know the port where the Web UI for the matter server listens to?
I can go find out if you don't, it's fine
5580
thanks
One downside of this approach is that you need to have the device you want to commission close to the bluetooth adapter
yeah, I expected that, it's not a big problem for me
A phone is more flexible in that regard but the downside is that google/apple claim a spot in their keychains. I just always kick them out
I wonder to what extent, wouldn't it be possible for the matter-server to use the phone as a remove Bluetooth extension for the provisioning, by communicating with the HA app lol
Our dream is to use the HA bluetooth proxies but that would require a lot of work
you mean this essentially?
https://www.home-assistant.io/integrations/bluetooth/
yeah, but then we need to create something to tunnel the matter bluetooth communication
It seems similar but to another device instead of the phone.
Its a lot of work and only little gain. For 99% of folks, the current approach using the Phone SDK is fine.
Its also how it is designed - In case of Google its a a bit frustrating that they made it dependent of their cloud framework but maybe they fix that sometime in the future. At least you can remove the google keychain fabric from the device using HA (HA device page, click manage fabrics)
For the record: Apple does the same with the keychain fabric but at least that works without cloud/internet so its somewhat better/acceptable
Is there any benefit, requirement or future benefit in getting a bluetooth 5.0+ adapter?
Nope
To give an update on this, I've bought the ZEXMTE Z01 (RTL8761BU) adapter, mostly due to having the antenas, which seems to help.
I then followed the documentation at:
So, installed dbus-broker and BlueZ
I'm on Ubuntu 22.04.4
For dbus-broker, I just ran sudo apt install dbus-broker, followed by systemctl enable dbus-broker.service and a reboot, which worked fine.
On the container side, add the volume bind /run/dbus:/run/dbus:ro
And added had to include --bluetooth-adapter 0 to the startup command.
Then commissioning the bulb (in this case a WiZ Gu10), worked flawless, much faster and easier than with the phone in my case.
Like, after giving it the Wifi credentials, it took like 10s
The only thing that wasn't clear to me but it accepted it first try, was the pairing code.
since on the labels, etc, it shows up as "1234-123-1234"
and I though that probably wasn't it, so tried "12341231234" which worked
One thing I'm wondering now, can I still share the bluetooth adapter with HA?
Even though I didn't pass it to HA, it's showing me having detected a new Bluetooth device, which is odd
A "NOKIA WIRELESS BUSINESS COMMUN Unknown" lol
No, you shouldt do that for stability - just leave this bluetooth dongle dedicated for matter commission. One other approach is that you disable the HA bluetooth intregration whever you plan to add matter devices. Just be sure to not forget that otherwise ๐ฅ ๐ฅ
we accept it in all forms, you even enter the qr payload
Yes, you can skip the intermediate google/apple step so that makes it a lot faster. We do not promote it as viable solution because the big downside of limited bluetooth range (max 10 meters). Maybe one day we can make this work with HA's bluetooth proxy. That would be really amazing.
Thanks for documenting this. I'm sure this will help others in the same boat!
In my case, since it's all docker, I have control
So I shouldn't need to disable it
Remember that you cant commission devices when you have the HA integration using that same bluetooth adapter, things will crash badly
Yeah, I understand
Just meant that HA shouldn't have access to the Bluetooth adapter, even with the integration enabled, because I'm not mapping dbus to it