Same issue here. Also with a Unifi device (USG). Tried to do the mDNS & multicat tricks, no solution for me.
I had the same issue with HomeKit Bridge and UDM Pro. I resolved my issue by making sure my phone and Home Assistant were connected to the same network. I have my wifi AP set to be a different subnet than the wired HA server (phone was on 10.100.5.0/24 and the HA server was on 10.100.1.0/24). Once I connected my phone to a wifi AP that was on the same subnet, everything worked as expected.
Iāve stumbled across this thread for while Iām also trying to setup HomeKit (bridge). I have a similar setup to most of the folks here in the thread but Iām not trying to do anything crazy with my local network. My only complicating factor is that Iām running HA inside Docker on a modern Synology. All latest versions, all essentially stock.
Can someone specify exactly which ports and protocols need to pass from my iDevices to the HA docker instance in order for HomeKit bridging to work?
I trying to add a portainer homebridge into home assistant.
It is detected within integrations but when trying to configure it gets stuck, not asking for a pin.
What do I do wrong?
Hmm, none of these works. I simply tried everything, my homeassistant is running on the same network with the appletv. My phone is on the same network. Opened ports 21065,21063,5353, and 8123. Nothing works. Igmp, multicast etc. no combination of these settings work either. I also tried opening every single port from appletv to docker host. Did not work either. When I take down the entire firewall system on synology docker host. Then it works. But when you re-enable the firewall, it starts struggling with the connecting to exposed services. And graded down to a point where nothing works again.
So I guess the only option left is to delete homeassistant and forget about this since even the guides on homeassistant is not a followable guide.
I had this issue too, HA on docker. Fixed by changing network mode to āhostā
I have this issue at the moment too. Any firm fix?
Thank you so much greysave, was pulling my hair out trying to get this sorted. mDNS on the UDM was just the ticket!!
I know this is issue is old-ishā¦ but I had the same issue, and for me changing to network_mode: host
fixed it.
It even started detecting more equipments that it didnāt have before, like my printer and Smart TV.
I followed all the above mDNS advise for unifi but found issue still persisting, unable to find accessory from the Home App on my iphone.
I fixed my inability to pair by adding port 21064 to my UFW on my server (I run HA on Docker). Found this by looking for blocked connection in the UFW log, I believe your port may vary.
sudo ufw allow 21064/tcp comment homekit
Boom. Worked.
As a few others have said, setting the network mode to host
on my Home Assistant Docker container was the answer. Bridge connected immediately and HASS auto detected a bunch of other devices I also had on the network:
On my case, after setting the docker to using the home network mode, I also enabled the enable-reflector
on the /etc/avahi/avahi-daemon.conf
. After a refresh, it worked.
Made an account here just to say THANK YOU!!! Been tearing my hair out trying to get this to work and this did the trick instantly.
Just a chance this might work for someone. I had the same issue where the homebridge did not want to connect to my homekit. Tried all the solutions above but nothing worked, but the I saw someone post something about firewall. I disabled it on my Asus router and everything worked. Enabled it again after all the setup hes been done and everything is still working.
I am running Home Assistant in Docker under unRaid. It worked after I changed from Bridge to Host in the docker network. Thanks!
My HA started doing this just recently. So all the old devices in homekit bridge work just fine, but I canāt add any new ones. Even if I add them to the existing bridges, they donāt appear in homekit. what givesā¦
ha runs on raspbery pi 4 and is connected to the router by ethernet
update:
okay I don;t know whats going on with all my network anymore. I started to have these problems with HA Bridge for no reason. Nothing has changed with the network. I checked all the stuff advised here like IGMP snooping, multicast etc. They were on. I still replaced the router with a new one and got exactly same results. Now I went into its settings refreshed the firmware, set everything as mentioned here. Still didnāt work. Then I unplugged both router and HAās rpi from power. Turned router back on and let it load, then turned HA back onā¦ and now everything is working again. >ā¦< any lessons learned? nope. reboots I did before never helped. Oh one thing I did different I enebled ipv6, but I donāt think it was it. Everything was ok on ipv4 before
upd2: nah it stopped working after a couple of mins
upd3: solved the problem by installing a new router. A friend got a spare dir-x1560 for tests. Not recommending it btw. So I just plugged it in and everything works. One caveat is that some devices like binary sensors have to be bridged in accessory mode. In bridge mode they will give you Timeout Error.