t0bst4r / matterbridge-home-assistant-addon

Apache License 2.0
83 stars 15 forks source link

How To: add the bridge to multiple assistants (e.g. Apple Home & Alexa) #113

Open pvanbuijtene opened 1 month ago

pvanbuijtene commented 1 month ago

Domain

No response

What is actually missing?

First of all great work, got the Home Assistant integration with Alexa working very easily.

I also wanted to integrate HASS with HomeKit but their "native" integration I can't get to work for some reason so wanted to try it with matterbridge.

Turns out you can only pair it once :)

After resetting the bridge it was also very easy to setup again, so my problem now is that I want to run the bridge twice.

For now I'm thinking of forking your repos and try to get it to work.

Do you have any thoughts and/or ideas about this? Maybe I missed something and it's more easily achievable in some other way.

t0bst4r commented 1 month ago

You just want to pair the bridge with two controllers (e.g. once Alexa and once apple), right? But they should use the same configurations?

It should be possible to connect matterbridge with one assistant like apple and from the apple home app you could share your matter devices with another matter enabled controller like Alexa.

unfortunately i am not at home this weekend so I cannot show you the exact way to configure it. I’ll give it a try next week and let you know.

t0bst4r commented 1 month ago

I quickly connect to my home network using VPN 😄

in the Alexa app you could navigate to the "matterbridge aggregator" device. there you will find the first option "other assistants and apps". There you will get a code to connect other assistants like apple home. In apple home this works with "add device" -> "other options" -> "my device is not listed" -> "enter code"

I couldn’t really test it since I don’t have a Apple TV or HomePod. If you were able to connect, could you please add some screenshots here so that I can write some documentation for that 😄

pvanbuijtene commented 1 month ago

That looks great, thanks for the quick response.

Will try it out today and let you how it went...

pvanbuijtene commented 1 month ago

Got it working by requesting a setup/pairing code from within HomeKit.

Get a setup code from HomeKit by: Settings -> Home Hubs & Bridges -> Select the Bridge -> Turn On Pairing Mode.

IMG_0369 IMG_0370 IMG_0371 IMG_0383 IMG_0372

In the Alexa app add a new Matter Device: + > Add Device -> Matter -> Follow the usual flow and use a numeric code (skipped a few screenshots) IMG_0373 IMG_0374 IMG_0377 IMG_0378 IMG_0380

Alexa now also has the devices and it's also listed in Matterbridge 🎉 IMG_0382 Screenshot 2024-08-10 at 14 08 51

It feels a bit counter intuitive having to go to a controller to get the new pairing code while the first one is shown in the bridge itself, was expecting a button in the the bridge UI, so it was a bit difficult to find that out as a Matter noob 😅

Thanks for the help and the great add-on.

t0bst4r commented 1 month ago

Awesome 🚀

I will keep this issue open for others to find it, until I transfer it to the documentation ❤️