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.

Homebridge Not Responding On All Accessories

See original GitHub issue

Expected Behavior When opening “Home” on an iOS device, I should see the accessories respond and load.

Current Behavior I am running my homebridge off my Raspberry Pi and my Home app is showing “No Response” on all accessories. I’ve had homebridge working for about 6 months with random “No Response” happening periodically and having to reset everything. I’m running an Ipad as my Home Hub.

I have tried:

  1. Restart homebridge and delete Apple Home settings
  2. change homebridge name/username/pin and setup new Apple Home
  3. different Wi-Fi network for both homebridge and Ipad
  4. tried running homebridge from my Windows PC (Where I ran it prior to the Pi)
  5. reinstall homebridge on Pi, clear “accessories” & “persist” files of cached items on homebridge.

No matter what I try when I open my Home I get “No Response” on all accessories… Totally lost on what else to try. I haven’t changed version on npm, node, Raspbian, etc.

Steps to Reproduce (for bugs) See above.

Versions Homebridge: 0.4.45 NPM: 6.4.1 Node: v10.14.0 OS: Raspbian Ipad: 12.1.1

My Config, “###” blocking out info, not actually in my config.

{
  "bridge": {
    "name": "McChillen's Homebridge",
    "username": "CC:22:3D:E3:CE:14",
    "port": 51826,
    "pin": "049-56-013"
  },

  "description": "",

  "platforms": [
    {
      "platform": "IFTTT",
      "name": "IFTTT",
      "makerkey": "###",
      "accessories": [
        {
          "name": "Open West Garage Door",
          "buttons": [
            {
              "caption": "A1-1",
              "triggerOn": "openWest",
              "triggerOff": "closeWest",
              "stateful": true
            }
          ]
        },
        {
          "name": "Open East Garage Door",
          "buttons": [
            {
              "caption": "A2-1",
              "triggerOn": "openEast",
              "triggerOff": "closeEast",
              "stateful": true
            }
          ]
        }
      ]
    },

    {
      "platform": "Venstar",
      "auth": {
        "user": "###",
        "pass": "###"
      },
      "thermostats": [
        {
          "name": "Home",
          "uri": "https://192.168.1.29"
        }
      ]
    }
  ],
  "accessories": []
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18

github_iconTop GitHub Comments

17reactions
ayaloncommented, Dec 26, 2018

After a long journey, I finally found the issue and was able to fix it. The issue is IPv6 / tcp6.

Its a bug in a library homebridge uses. See here: https://github.com/nfarina/homebridge/issues/1277

You can check this easily using. If you see this, you are fine:

$ pi@raspberrypi:~ $ netstat -an | grep 51826 $ tcp 0 0 0.0.0.0:51826 0.0.0.0:* LISTEN

If you have IPv6 enabled, it will only listen on the IPv6. This also leads to erros with avahi.

First, disable IPV6 completely on your rasperrypi. I was able to achieve this by adding this too /boot/cmdline.txt > ipv6.disable=1

Then reboot and check with ifconfig that IPv6 is disabled.

Then disable IPv6 on avahi settings in /etc/avahi/avahi-daemon.conf: use-ipv6=no

Check your bonjour dns names:

sudo apt-get install avahi-utils avahi-browse --verbose _hap._tcp

$ local $ + wlan0 IPv4 Homebridge_LIVE-9A81 _hap._tcp

Now you have to the delete the bridge and reconfigure everything from scratch, because some devices still try to connect IPv6. From then on, my Homebridge was stable.

5reactions
snielsencommented, Jul 25, 2019

I experienced this recently and it was driving me insane. I followed every recovery step I could find, but to no avail. Last night I finally tracked down what it was in my case.

I could find and add my Homebridge just fine. All the accessories would show up, the HomeKit devices would query for state, I would see the result and response of the queries in the Homebridge log, but Home.app in iOS would display all accessories as “Updating” and would eventually timeout and be marked with “No Response”.

Apparently, a single plugin can block responsiveness for all accessories. When queried, one of my plugins, https://github.com/gbro115/homebridge-roomba690, would attempt to contact my Roomba to get the state. My Roomba had a dead battery and I hadn’t bothered to recharge it yet, so it was uncontactable. The plugin wasn’t written with any logic to detect the case where the target Roomba is offline and so it would never perform the requisite callback back to Homebridge. Thus, Homebridge would just sit there, waiting forever for the answer to the query and never respond back to HomeKit with any information at all. Removing the plugin or charging the Roomba brought everything back to life.

While the plugin is certainly not written correctly to handle these kinds of scenarios, I feel like it’s also a bug that Homebridge can be silently blocked (no errors, no logging to suggest what’s going on) by any single, bad actor plugin.

Relevant issue: One accessory blocks the whole homebridge https://github.com/nfarina/homebridge/issues/948

Read more comments on GitHub >

github_iconTop Results From Across the Web

Homebridge Status “accessory not responding” in HomeKit
Go to Homebridge UI > Config tab · Take note of all of the ports used for your hub, accessories, and child bridges...
Read more >
Devices in HomeKit not responding · Issue #3116 - GitHub
Login to the Homebridge UI and from the drop down menu in the upper-right-corner select Homebridge Settings and then choose Reset Homebridge ......
Read more >
Fixing the HomeBridge No Accessories Responding problem
1. Ensure Multicast is configured to work optimally on your router ... You will also need to make sure the router does not...
Read more >
No Response HomeKit error? Here's the fix! - iMore
If you cannot move your accessories or the dedicated hub, adding a brand-specific range extender or another accessory in between may help. You ......
Read more >
Homebridge
Homebridge adds HomeKit support to your non-HomeKit smart home devices. ... 2,000 Homebridge plugins supporting thousands of different smart accessories.
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