help with home assistant and home kit bridge integration

I’ve recently started running home assistant. Everything runs great, just that I’m not able to connect HomeKit bridge to my phone. How do I make this work? Currently it tries to connect for a while and fails.
45 Replies
Nicolas
Nicolas8mo ago
Do you have access to any sort of logs from the mobile app? Is home kit bridge giving error logs aswell?
Bharat Kalluri
Bharat KalluriOP8mo ago
I don’t observe any logs, possibly because the ios home app is not able to reach the device. Found some messages of the past at https://discord.com/channels/976934649643294750/1137613881531961354/1252353396263096422 i think it’s the same issue, but I did not fully understand the solution 😅
Nicolas
Nicolas8mo ago
I unfortunately have little experience with these tools :/ Is the app exposed or you try to access from the same network via IP?
JigSaw
JigSaw8mo ago
Under same network it should be fine First step is to reach home assistant if the problem is here there is a network problem on your side
Bharat Kalluri
Bharat KalluriOP8mo ago
@JigSaw both my phone and my laptop are able to reach to 192.168.0.106 (IP of my home server.) both of them run tailscale, but I'm guessing that should not be a problem since I can hit them directly in the local network using IP I then followed https://community.home-assistant.io/t/using-homekit-component-inside-docker/45409/41 and started mdns repeater with host being enp1s0 & docker NIC to be the br-fd25fe76ed1f. I got this by running docker exec f9a ifconfig & route -n after which I restarted home assistant, removed the homekit integration, restarted HA, re-installed home kit, no luck still..
No description
JigSaw
JigSaw8mo ago
just to start is your home assistant app working on phone ?* (I use tailscale too)
Bharat Kalluri
Bharat KalluriOP8mo ago
yeah, works on the phone 👍
JigSaw
JigSaw8mo ago
ok so your problem is only for homekit integration right ?
Bharat Kalluri
Bharat KalluriOP8mo ago
yeah
JigSaw
JigSaw8mo ago
can you drop the result of your cmd route -n
Bharat Kalluri
Bharat KalluriOP8mo ago
tower@linux:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 enp1s0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-fd25fe76ed1f
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 enp1s0
tower@linux:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 enp1s0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-fd25fe76ed1f
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 enp1s0
result from the server
JigSaw
JigSaw8mo ago
oh man wait in your configuration.yml drop this:
homekit:
name: Bridge
port: 21063
advertise_ip: "192.168.0.106"
homekit:
name: Bridge
port: 21063
advertise_ip: "192.168.0.106"
Bharat Kalluri
Bharat KalluriOP8mo ago
cool, restarting HA now 🤞
Bharat Kalluri
Bharat KalluriOP8mo ago
installed home kit bridge & connected. no luck. one sec, I'll also check avahi status
JigSaw
JigSaw8mo ago
if not added, this is the reason 😉 hm avahi is not necessary as you use the mdns app in Tipi 🙂
Bharat Kalluri
Bharat KalluriOP8mo ago
I see, should I disable it then? disabled, tried connecting. does not work still 😢 how can I verify if mdns is forwarding packets? the logs look empty pretty much
mdns-repeater | mdns-repeater: dev enp1s0 addr 192.168.0.106 mask 255.255.255.0 net 192.168.0.0
mdns-repeater | mdns-repeater: dev br-fd25fe76ed1f addr 172.18.0.1 mask 255.255.0.0 net 172.18.0.0
mdns-repeater | mdns-repeater: dev enp1s0 addr 192.168.0.106 mask 255.255.255.0 net 192.168.0.0
mdns-repeater | mdns-repeater: dev br-fd25fe76ed1f addr 172.18.0.1 mask 255.255.0.0 net 172.18.0.0
JigSaw
JigSaw8mo ago
hm mdns-repeater | mdns-repeater: dev eth0 addr 192.168.xx.xx mask 255.255.255.0 net 192.168.xx.xx mdns-repeater | mdns-repeater: dev br-5813ba86106f addr 172.22.0.1 mask 255.255.0.0 net 172.22.0.0 I've the same 😉 So, Assume it's working, try to add the bridge now to homekit directly and you will see immediately if it works aah another thing ^^' you need to open additionnal port on ha app
Bharat Kalluri
Bharat KalluriOP8mo ago
oh
JigSaw
JigSaw8mo ago
RunTipi/user-config/homeassistant-1/docker-compose.yml
services:
homeassistant-1:
dns:
- ${DNS_IP}
ports:
- 21063:21063
services:
homeassistant-1:
dns:
- ${DNS_IP}
ports:
- 21063:21063
save, restart ha app on tipi 😉 i've taken many hours initially to get it working lol it's not really well explained
Bharat Kalluri
Bharat KalluriOP8mo ago
I'm getting pairing notifications for HASS Bridge:21064 should it be for 21063 instead? 🤔
JigSaw
JigSaw8mo ago
where ?
Bharat Kalluri
Bharat KalluriOP8mo ago
or maybe it has nothing to do with this..
No description
JigSaw
JigSaw8mo ago
old notif no ? because it should be 21063 with the name "Bridge" give me a screenshot of "/config/integrations/integration/homekit" in HA
Bharat Kalluri
Bharat KalluriOP8mo ago
I initially had
tower@linux:~/runtipi/user-config/homeassistant-1$ cat docker-compose.yml
services:
homeassistant-1:
ports:
- 21065:21065
tower@linux:~/runtipi/user-config/homeassistant-1$ cat docker-compose.yml
services:
homeassistant-1:
ports:
- 21065:21065
now I changed it to
tower@linux:~/runtipi/user-config/homeassistant-1$ cat docker-compose.yml
services:
homeassistant-1:
dns:
- ${DNS_IP}
ports:
- 21063:21063
tower@linux:~/runtipi/user-config/homeassistant-1$ cat docker-compose.yml
services:
homeassistant-1:
dns:
- ${DNS_IP}
ports:
- 21063:21063
restarted HA setup the integration, scanned the QR code and the phone is just stuck at connecting
To set up Bridge:21063 in the Home App, scan the QR code or enter the following code:
To set up Bridge:21063 in the Home App, scan the QR code or enter the following code:
screenshot
No description
Bharat Kalluri
Bharat KalluriOP8mo ago
wait, it just connected!! Thanks a lot @JigSaw !! 🚀 🚀 dude, you are a rockstar! Finally I can control my devices with siri I think my setup got messed up because of port. I used 21065 for some reason. it should have been 21063 I'll do a write up at https://notes.bhartakalluri.com soon on this stuff so that next time someone else finds all this in one place. I'll thank you in that post if you don't mind!
JigSaw
JigSaw8mo ago
haha nice 🙂 tanks for the post if you can do it ❤️
Bharat Kalluri
Bharat KalluriOP8mo ago
@JigSaw one more thing if you don't mind, on restart do all your devices show that they are switched on? all of my devices show they are switched on, even though the hardware is off. not sure why
JigSaw
JigSaw8mo ago
not really, it just need some secs to update initially my devices are integrated in HA with Zigbee2MQTT
JigSaw
JigSaw8mo ago
SmartHomeScene
Expose Home Assistant Entities as Matter Devices
Guide for exposing all supported Home Assistant entities as Matter devices, allowing you to pair them to other ecosystems via the Matter Bridge Addon.
JigSaw
JigSaw8mo ago
my next work :p
Bharat Kalluri
Bharat KalluriOP8mo ago
just restarted. all my devices show they are on even though the hardware is actually switched off 😢 not sure how I can trigger a hard refresh on device status. I am running tuya integration
No description
JigSaw
JigSaw8mo ago
ah but it reflect the HA status so it's right
Bharat Kalluri
Bharat KalluriOP8mo ago
very cool!
JigSaw
JigSaw8mo ago
so the problem seems to be on HA with integration tat's another problem :p
Bharat Kalluri
Bharat KalluriOP8mo ago
hmm
JigSaw
JigSaw8mo ago
yeah matter is nice because you can switch from Apple to Alexa to Google to anything else without redoing all the pairing etc
Bharat Kalluri
Bharat KalluriOP8mo ago
but matter needs to be supported by the device manufacturer, right?
JigSaw
JigSaw8mo ago
and in this case you avoid buying each hub to have comaptible matter device the integration "convert" the device to a matter compatible entity and expose it just with one hub ... HA ! 🙂
Bharat Kalluri
Bharat KalluriOP8mo ago
oh nice
JigSaw
JigSaw8mo ago
like what I do with Philips Hue, removed the bridge, directly added bulbs and all things to HA good luck for your smart home :seemsgood:
Bharat Kalluri
Bharat KalluriOP8mo ago
I'll also explore the matter rabbit hole! Thanks for the tip! and again, thanks a lot for the help. Really means a lot. I'll get back on my promise of docs 👍
JigSaw
JigSaw8mo ago
No problem, if I can help, it’s my pleasure
Bharat Kalluri
Bharat KalluriOP8mo ago
alright, initial version is out at https://notes.bharatkalluri.com/setting-up-home-assistant-with-homekit-bridge-while-using-runtipi-tailscale/ I'll iterate over it later on sometime. But it should be informative I guess closing this thread now.
JigSaw
JigSaw8mo ago
nice thank you @Bharat Kalluri

Did you find this page helpful?