-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HomeKit basic connectivity issue (maybe Ubiquiti/Unifi related) #222
Comments
Is your ratgdo connected to the same IP subnet as the rest of your network. Try the Discovery app and expand the If you are on a separate subnet then you need to bridge the two together at the gateway so that mDNS is sent from one network to the other... how this is done depends on your network gateway. And if you have a firewall or packet filtering between the networks then it needs to be setup to permit traffic. |
When I say bridge together, what I really mean is that you need an mDNS reflector. Personally I use avahi, but google also turns up this... https://github.com/vfreex/mdns-reflector |
I get the same result from both same network and separate network: the ratgdo never shows up under I have never seen it work so I don't know what I am looking for, but the LG TV is there on the list, clear as day (Same result from command line |
WOW literally as I type that I try again and it shows up on my Mac!
Now to try to add it to my home.... |
....and it's added but shows "No Response" in the Home app. I am still convinced it's a network thing but will continue tinkering until I can make something document-able |
I suggest you try connecting the ratgdo to the same SSID / subnet as your HomeKit hub / iPhone / etc and check it works there. That would isolate the problem to being on a different subnet. FYI that I also have all my IoT devices including ratgdo on a different subnet and it is working fine. |
OK, sorry this took so long, but will make a PR for documentation with my results. Summary of behaviors observed:
and the kicker:
If this is you and you are using a Ubiquiti/Unifi network, try these steps:
If you figure out settings which work for "IoT device on separate subnet from home network using pure Unifi settings" please feel free to share :) |
Running RATGDO on a separate IoT VLAN will work... assuming that the mDNS traffic is "reflected" across both network subnets. I have Unifi WiFi access points, but do not use their gateway. I have my own gateway on which I run avahi and that can be configured to reflect mDNS traffic across two networks. It sounds like the Unifi gateway is not reflecting mDNS traffic across LANs properly. |
Yeah, there is something not right there, but it's non-trivial to debug. I have a feeling that me switching the device back and forth from one wifi to another didn't help: I bet the mDNS thing was caching the wrong value or something. So now it works (but the 'fix' broke bonjour to a printer: no problem, it's a static IP so just moved printer config to static) Trying to come up with some clear docs on it so the next person who searches might find some useful info, and maybe eventually we get a working config going (without needing avahi) but for now I am doing fine at least :) |
I run Unify APs and gateway / router. It has an mdns reflector built in. I also run on an isolated VLAN and it works just fine. I also have IoT auto discovery enabled on all VLANs and Multicast filtering only on my IoT VLAN. |
TL;DR : ratgdo hardware and web UI work with 100% success, but HomeKit integration fails with 0% success.
OK, I have tried many times to figure this out with no success yet. It’s been rather frustrating.
First off: the hardware is working 100% fine. The website comes up and I can control the light, garage door, and the motion sensor and obstruction sensor both work great.
I can also upgrade (i.e. from 1.6.0 to 1.6.1 was transparent, right through the web UI, flawless)
I have tried this on my primary WiFi and on my separate IoT SSID, in both cases I get this result:
Add device to home scans the QR code fine but can’t see the device.
I have also tried using
dns-sd
and theDiscovery - DNS-SD Browser
app (with some success: they showed my LG TV that I had not connected to HomeKit for example!) but they simply don’t see the ratgdo at all.So I am trying to make a PR for this repo with my documentation / notes, as a guide for anyone else who gets stuck like I am, but I am really stumped as to what to do. I have the technical background but I honestly don’t know what to do with “responds to TCP but not to mdns” : it’s like “the black box isn’t working”
Heck, I would plug it into ethernet and try that if it had an ethernet port :)
Does anyone have any suggestions for how I could “trigger” the mdns response, in some kind of testing mode? Generate a packet and send it to the device directly maybe?
Note that I am somewhat convinced (with no evidence) that this is due to the Ubiquiti configuration I am running. I have IGMP snooping enabled as well as mDNS and my TV is working (on same separate subnet but on ethernet, not wifi). So I am more than happy to blame Ubiquiti, but I still want to figure it out.
The text was updated successfully, but these errors were encountered: