question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remote access to Homebridge home kit devices worked forever, now failing

See original GitHub issue

Expected Behavior

Both remote and local access to my Wemo and Nest devices via Homebridge has worked just fine for a very long time.

Current Behavior

Recently, remote access to Homebridge devices started failing on a regular basis, while local access still works just fine. HomeKit native devices (iHome, Koogeek, Chamberlain) all continue to work fine, both locally and remotely. I had an iPad (latest iOS), and two AppleTVs(4th Gen 64GB, latest tvOS) serving as Homekit hubs, and recently added a HomePod. This problem seems to have been begun around the time the AppleTV’s auto-upgraded to the latest tvOS). Homebridge is running on an iMac (Sierra 10.12.6), and produces no errors. Over the course of trying to figure this out, I have tried removing various of the hubs from service, removing all the cached files on Homebridge and restarting, removing Homebridge from Home and re-adding, and hundreds of permutations of these changes. Homebridge devices seemed to work intermittently remotely, but always locally. It appears, however, that in truth it was working (remotely) ONLY when the iPad was the hub and the rest (AppleTVs or HomePod) Standby or off/disabled. Possibly a red herring given the bugginess of the HomePod, but it never thinks the Homebridge devices are responding (locally, obviously), even when they are working fine in the iOS Home App and the iPad is the primary Homekit Hub.

Steps to Reproduce (for bugs)

I can reproduce reliably as follows: Homebridge Wemo and Nest devices all responding (locally and remotely) fine with iPad as Homekit Hub. Turn off iPad and when the HomePod or AppleTV become the hub, remote access fails, while local access continues to work.

Versions

  • Homebridge: homebridge --version 0.4.38
  • Node: node --version v6.9.4
  • OS: Mac OS Sierra (10.12.6)

Configuration


Homebridge Log / Command Output


Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
ur7xcommented, Jan 30, 2019

My Homebridge failed a few days ago too. Was fine through the end of last year and then a week or so ago it just stopped.

I have tried everything above and nothing is working.

I can see my Apple TV’s remotely but everything else is “Unavailable”

1reaction
earlyshencommented, Dec 21, 2018

I got mine worked. I found that I didn’t change the default username & pin listed in config-sample.jcon

    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },
   ...

I follow the instruction in https://github.com/nfarina/homebridge#my-ios-app-cant-find-homebridge. Now it works for me both on LAN and on LTE

This is what I did:

  1. Remove Homebridge from Apple Home App
  2. Stop Homebridge on raspberry pi
  3. rm -rf ~/.homebridge/persist
  4. Change “username” & “piin” in config.json to something else
  5. Run Homebridge
  6. Add Homebridge to Apple Home App

Hope that helps for some of you in this thread 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

remote access to Homebridge home kit devices worked ...
Recently, remote access to Homebridge devices started failing on a regular basis, while local access still works just fine. HomeKit native ...
Read more >
I think I'm going to go insane. HB keeps dropping connection ...
Homebridge will work for a few days. Then just drop. It requires a full cache reset and re-add all devices. Will work for...
Read more >
How do i fix slow HomeKit connection? - Apple Community
Since the latest iOS update (15.2) I experience very slow connection when opening my home-app. It takes forever to link appliances etc. Known...
Read more >
State of the Union - Roomie Remote
First, we added HomeKit support as a first class feature. HomeKit is now a good substrate for home control, but is totally closed...
Read more >
Home App shows "No Response" from my August Smart Lock
Inside the Home App, check Apple bridge connectivity. If you are unable to resolve, confirm you are able to connect to lock over...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found