I am trying to setup homekit on Hassio via ‘Alternative: install on a generic Linux host’ which has been running great with other main-stay integrations, but they are on the same VLAN. My iOS app never see’s the Hassio install.
I have the computer hosting hassio on a VLAN separate from all the apple devices but I have firewall rules allowing access on all ports to and from the vlans (after failing when having only the IPs of all devices allowed to/from.)
I had this setup a long time ago and working but I was using a simple end-user router vs the unifi gear I have now. HA is on its own VLAN as I am thinking about opening up to internet with ssl etc. so I can use remotely.
I have a similar setup with my Apple devices (iPads, iPhones, and Macs) on my main LAN with my IoT (including Home Assistant) on a separate VLAN. While you have firewall rules open, there is no way for the Apple devices to discover your HomeKit bridge.
The solution is fairly straightforward. You have to basically do a Bonjour Broadcast for the HomeKit port and forward it across your VLAN. You’ll want to grab and compile this app: https://github.com/agg23/BonjourBroadcaster and run it on a Mac that is on all the time and on the same VLAN as your Apple devices.
Then you setup Bonjour Broadcaster with something like this:
Using @scgruby comment about USG having a setting I looked at my firewall (pfsense) and found an avahi add-on app. I have that up and running with my two vlans selected and viloa.
If anyone has any trouble after enabling Avahi’s repeater/reflector (whether on a networking appliance or a Raspberry Pi) I recommend disabling the ipv6 option in Avahi’s config file…this applies to Homebridge too
@scgruby Are you referring to “Enable Multicast DNS” under ‘Services’ -> ‘mDNS’?
If so, I can say that I have that enabled and it still seems that the Apple TV has a hard time talking to home assistant when they are on different vlans.
Yes, this is the setting. I haven’t had any problems with my AppleTV talking to Home Assistant across VLANs. If the firewall rules are correct and the mDNS is set, it should work.
It seems to largely only affect the communication between my iphone (when off wifi) and the apple TV as a hub - e.g. I cannot control/see devices when I’m outside my house.
I moved the AppleTV onto the same VLAN as Home assistant and the problem has gone away. Makes me think something else is going on.
The point is moot probably. Generally speaking I think I’m OK having my AppleTV on the same network (my main) as HA, my phones, laptops etc. If I’m going to trust Apple with my iphone/laptop, I might as well trust them with the Apple TV.
I have the same issue for years, I try again every now an again with Unifi (Dream machine pro) but even with mDNS, HA will find both AppleTV 4K but impossible to confirm the integration ! Even if I add a firewall rule as extreme as accept HA_IP/all port > AppleTV 4K group/all port
IoT network has Home Assistant, Apple TV’s and IoT devices.
Router is a pfSense with the Avahi daemon.
If I add the Apple TV (4K) directly to HomeKit even it being on a different subnet I get full control of it. I see what’s playing, can turn it on and off, access the remote on iOS, works like a charm.
However, the HomeKit bridge from HASS is always showing the No response error.
But even if I connect directly to the network where HASS and the IoT devices are, it still doesn’t work and I get the No response error the same.