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
Homebridge only responding on local network #2040
Comments
Do you have original HomeKit devices? Like a Philips Hue Bridge? |
No additional devices, just the Homebridge. Setup as follows: ATV4 - LAN |
Are all LAN cables connected to the same switch? |
Make sure you have an iPad or Apple TV set up as a hub that you can leave at home. That is what provides out-of-home connections. Turn it on in the Home settings on an iPad or in the settings on an Apple TV. |
Switching can be ruled out. I have managed switches here at home and I know how to handle them ;-) The ATV4 is setup as a hub and it is connected. I've already tried to log off from iCloud and reconnect it as a hub. I've also resetted the whole home in iCloud and the homebridge but that didn't solved the issue. I've also replaced the Raspi with a new v3 model and a new installation only for homebridge. When the homebridge is in the "no response" state, I can trigger playback on the ATV4 from outside my home network. So the connection to the hub from external net's is functional. Strange behaviour: this afternoon it worked for several hours. Now it doesn't anymore. |
reboot apple TV |
|
Especially managed switches can cause this. |
in your case, disabling IPV6 evrywhere on my network (dhcp and Rpi in example) allowed me to definitively solve the problem. Can you try this ? |
I disabled IPv6 on the Pi, still the same. I have Cisco Aironet 2800 series Wifi and Catalyst Switches and I know how to use Wireshark, I'm able to sort network issues out. |
Ok DanKapone. Happy you find an alternative... |
I have this same problem and I cannot solved with restarting Homekit server in Apple TV and I don't have more ideas. Another have this problems? |
I just had something similar occur on my setup as well. I have several homebridge instances that have been stable for a very long time, and they all stopped responding while remote. I do have two house's and my second house was okay. For me this started several days ago. I have not made any changes to my setup recently. Things Tried 1 - Reboot AppleTV 4 - No change |
Just want to echo @NorthernMan54 and his experience Just installed HomeBridge on my Pi to integrate alarm.com into Homekit this past weekend. I have an Apple TV as a hub and a Lutron Smart Bridge connected with 14+ lights. Everything seemed fine then working well over the weekend while on local wifi. Then when I go to work I lost all the connectivity to the Lutron bridge devices via Home app over LTE. I could connect directly to the Lutron hub over LTE via it's the Lutron app on my phone which lead me to start searching for a fix. I found this issues post and sure enough. Rebooting my iPhone brought back remote connectivity over LTE. The old turn it off and turn it back on solution. |
Hmmmmm good to see I’m not the only one encountering this. I have tried the following (trying to to connect on cellphone not connected to Wi-fi)
|
Ditto. Only it’s only intermittently so outside of WiFi. Hue direct HomeKit accessories are always there but Homebridge accessories may be unavailable. Latest Homebridge, plugins Homebridge-Hue and Homebridge-MQTT. |
I think I might have just found the problem (for me anyway). I wonder if I had set up HomeBridge on networked lan if I wouldn’t be having this problems now when I switch from @bohtho, I’m curious why your using a hue HomeBridge plugin instead of hue native HomeKit? |
@townsmcp I use the hb-Hue plugin to bring in all my zigbee lights, sensors and switches automatically into Homebridge (via Deconz and my ConBee USB stick), where I have more control over them (E.g. via Node-Red) than native HomeKit/brand hubs. Other Homebridge accessories I create and control via MQTT from Node-Red. The latter is a rock solid bridge without any problems ever. |
I'm experiencing the same behavior, I'm frequently losing Homebridge devices (not responding) when I'm not home (depending on my Apple TV 4K as hub) but 'native' homekit devices (e.g. Eve Energy/Weather/Thermo, Ikea Tradfri) all work?!? I'm running the latest iOS/tvOS/Homebridge versions and I've tried already a lot of things:
The ATV is connected to an unmanaged switch (3COM) which is already a replacement of another unmanaged switch. |
I had a similar problem. Updated all my TVs to 12.2 and restarted them. |
Both my ATVs are already on 12.2 and I have restarted them many times. As a test I've also enabled my iPad (iOS 12.2) as Homekit hub, see if that makes a difference. |
Might also be worth shutting them all down so there is no active HomeKit Hub. I tried that as well and it helped. Sorry for your troubles. |
I can confirm that the problem still exists. When I am ouside the house (iPad connected to power source works as a Hub):
I think it's a problem of connectivity between HomeBridge and Hub. When you are at home, iPhone connects to the HomeBridge directly (not via Hub) and everything works. When you connect via cloud, only Hub is accessible via Internet, so if HomeBridge fails to communicate to Hub, it looks inaccessible. |
I’ve had this issue in the past. Running an iCloud backup of my iPhone (which includes HomeKit configuration) has solved it for me on multiple occasions. |
Well, there is no immediately changes after backup, but I will keep an eye on backups schedule of my iPhone and the iPad that acts as a Homekit Hub. |
I noticed something strange, I was away from home for 3 weeks and remote HomeKit access worked like a charm for three weeks, meaning both my Apple TV's kept on working all the time. As soon as I came back home with daily alternating access (LAN and remote), my Apple TV's started dropping off from my Homebridge. Running 'netstat' on port 51826, I see all my other Apple devices (iPhones, iPad, MacBook) with an 'ESTABLISHED' connection to the Homebridge listener, but my Apple TV's are not listed?! For some reason the Apple T's regularly disconnects (it does this all the time) from Homebridge, causing this undesired behavior. |
@ronzelver it looks interesting. Unfortunately I am not a Linux guy to make a deep inspection, however I want to understand who exactly dropped the connection, Homebridge or ATV? |
@SantaFox, I don’t know yet who's dropping the connection, but I also noticed that sometimes my iPhone (running iOS 13 beta) drops the connection while LAN-connected. One of my Apple TV’s is also running tvOS beta. So, maybe it’s an iOs / tvOS issue?! |
Okay. So I might have figured it out, or at least isolated it more. I had the same issue, got it working with a different method I decided to try. I have an AppleTV 4K and both my iPad and iPhone are running 13. I am running the current stable version of TV os, not the beta. I removed HomeBridge (HooBs in my case) from my iPhone as a hub. Then added it to my iPad as my iPad continued to show it was already added. I set my iPad as the HomeHub, then I turned that off, and on my AppleTV: Powered off my iPad, then put my iPhone on WAN (No WiFi), and it remained connected. There’s something with the auto discovery of the HB that the AppleTV doesn’t play nice with when setting it up initially if it’s the HomeHub. Maybe because it needs to be manually added and not the same way native HomeKit devices are broadcasted? |
So I was looking at out of box HomeKit accessories. Native HomeKit Accessories & Bridges:
AppleTV 4K on 13.0:
My Mac running HomeBridge runs the accessory protocol, and has a separate service and port for each device/accessory. I am still thinking running 2 ATVs for Hubs is problematic when the traffic is split between the two and neither one gets the complete set of data. |
Since the update of iOS13 I have no response from my HomeKit items from remote, neither iPhone (6s plus) nor iPad pro. Hub is an ATV4 and the status in the HomeKit is connected. Using the Home App on my MACbook Pro (Catalina) I have remote access to all my items when I am connected to the network at work. |
Dear All,
and again, I am afraid that we are looking into wrong direction. The
problem relates only to external connection to the home appliances
connected with the Homebridge. Everything else looks fine. So the problem
comes from HB: either from its existence in the home network, or from some
kind of network conflicts.
I have changed a hub from iPad to ATV4K and the problem looks to be
resolved - all accessories that should be accessible are accessible (the
problem is always with Elgato Eve accessories that are out of range of ATV).
I am not a network engineer, but it looks like incompatibility between
HomeBridge (and Linux ip stack) and iPad. Maybe even always powered iPad
drops connections and HomeBridge doesn't try to reconnect while ordinary
simple accessories have to reconnect in specific circumstances.
…On Thu, 31 Oct 2019 at 13:44, kwass59 ***@***.***> wrote:
Since the update of iOS13 I have no response from my HomeKit items from
remote, neither iPhone (6s plus) nor iPad pro. Hub is an ATV4 and the
status in the HomeKit is connected.
Access in the local network is working.
Tried all resets, disconnects from iCloud etc. No success.
Now something new:
Using the Home App on my MACbook Pro (Catalina) I have remote access to
all my items when I am connected to the network at work.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2040>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABJ243HAEWUNOOJFBWEYKTQRLAITANCNFSM4F55Y5MA>
.
|
Got excited that would fix me having the same issue, i tied everything else. Alas, no luck :( I have however now tried the ATV 4K connected via wireless not LAN, and hey presto working. Very odd! |
Are you sure that you have a single homehub registered. Seems homebridge has issues when multiple homehub have been setup. Switching to just the AppleTV instead of AppleTV and iPad solved everything for me. |
The fix for me was to only use one Apple TV as a home hub and turn off all the others (I have 5 but only have one with the home hub enabled). I also turned my iPad off acting as a home hub. I also have a HomePod and that still also acts as a hub. Since I turned off the other Apple TV’s I always have external access. |
I am connected wireless. |
I did try reinstalling homebridge from scratch which included removing and re adding. However I will try again with this. I do however suspect this is an issue with wired connections to ATVs though but no idea if that is specific to me or wider issue. |
Mine are connected with a wired connection. |
Thanks I guess it’s something within my network then. Thanks for the feedback I appreciate it |
I installed homebridge on my openwrt router,but I can't find the service. so I installed openwrt/homebridge on a device at the same subnetwork,I can find the service. I think the problem is homebridge service use it's wan addr to broadcast it's service |
You can set the interface on which homebridge sends the Bonjour announcements in config.json. I don’t know the exact setting by heart, but I’m sure Google does. |
This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions. |
@jonasophie Has the remote access ever worked for you? Not sure what would be the issue if you just use an ipad as homehub. Never had an issue in that config. The above instructions help to resolve the issue when multiple homehubs have been activated and you want a stable setup with a single homehub. |
@extric99 Thanks for your answer. Yes it worked yesterday ... (I have 3 plugins installed: Hue, FFmpeg & Config UI X). I have both iPad & ATV ? but iPad is still "Standby" and ATV is "connected" in HomeApp. I'm updating ATV firmware to the last version, will remove hub from Home app and try again. Thanks |
Please read my above responses in the thread because the issue you describe is exactly what I had. In your initial post you dont mention you have an appleTV. When you have two devices as homehub the issue occurs. Disable homehub on the ipad and only keep homehub on the appleTV. There is no need to have the ipad setup when you have an appleTV. Remove the homebridges, reboot and readd them. The issue will be fixed |
After ATV updated (and reading your previous post) Everything is now working correctly |
Great. Make sure you only have one homehub active at all times and you should be ok. I only needed to reboot my appletv once in several months |
I figured the answer. |
I have the issue where some devices work outside the home network and some don't. Usually turning off and on the home hub function on the Apple TV fixes it for a day or two until the same issue happens again. Would this fix it for me or is this more for people who can't access anything at all remotely? Also how do I reverse this if it doesn't fix it? I presume I can uninstall somehow? |
You need to ensure that only one home hub(multi-home hubs would lead to few devices not responding) and homebridge devices are in the same network. And if you have too many smart devices connect to the local network, you need to ensure that your wireless router supports such a burden. |
How does this work if you have multiple HomePods? I know with the an Apple TV you can turn off the Home Hub functionality but I don't know of a way to do it with a HomePod? |
Some of these comments indicate that Homebridge and hub (Apple TV) must be on the 'same network' whereas I believe it is commonly accepted that the Homebridge can be located elsewhere, e.g. cloud based, whether that's an installation on a dedicated computer, NAS, raspberry or anything else. I would like to clearly understand however, how the hub connects to a public IP address. Scenario below: SITE 1: Homebridge running in Docker container on QNAP Container Station, router configured with port forwarding from its public IP with port 8581 to the private IP of the QNAP, the web interface of Homebridge is perfectly accessible via internet (http://publicip:8581), Homebridge has been advertised with Bonjour HAP, Ciao, Avahi doesn't seem to make a difference SITE 2: Apple TV on private LAN, variety of domotica devices work fine with Apple Homekit from iPhone (e.g. IKEA Tradfri gateway with bulbs) also remotely accessible, several plugins worked fine when Homebridge was previously installed on a PC on the LAN. There is no VPN between the two sites nor DMZ at any site. My basic questions is: how can Homekit find the remote Homebridge via internet after scanning the QR code (does this connection code contain the public IP?) - Homekit only responds that it cannot Connect - or must the Homebridge be on the same LAN because in essence, Homebridge is just another Accessory (a gateway) to Apple Homekit? |
Simple answer is that it can not. The Apple TV and homebridge need to on the local network |
Expected Behavior
Homekit accessories should be accessible via WAN when a hub is present at home.
Current Behavior
Every accessory connected to homebridge is accessible in the LAN/WLAN; local network. From outside the network the homebridge and attached accessories are "not responding". The ATV4 hub itself is accessible.
Steps to Reproduce (for bugs)
I tried the other "fixes" in similar issues but it does not address my problem.
I've turned off iCloud sync, rebooting the devices, (on AppleTV I disconnected/connected to Homekit in Settings but still can only access the homebridge devices on the original device on local network.)
Versions
iOS 12.0.1
Homebridge: homebridge --version
$ homebridge --version
0.4.45
Node: node --version
$ node --version
v8.11.1
OS:
$ uname -a
Linux homebridge 4.14.76-v7+ #1150 SMP Mon Oct 15 15:19:23 BST 2018 armv7l GNU/Linux
The text was updated successfully, but these errors were encountered: