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.

Unable to add Homebridge to Home App

See original GitHub issue

Describe Your Problem:

I’m not able to add my Homebridge bridge to the Home app. I’ve checked the FAQs and troubleshooting but that hasn’t resolved my issue.

I’ve configured the Homebridge and plugin and confirmed that the accessory works as expected (turns on and off). Homebridge is running on a Pi V3, connected via ethernet. I’m attempting to add to the Home app on the same network (via wifi) but not able to do so. Any help is greatly appreciated.

Logs:

Secondary Homebridge Logs here

Homebridge Config:

Show your homebridge config.json here

{
    "mdns": {
        "interface": "192.168.1.158" <NOTE> I added the mdns line based on some tips from other posts. Not sure if it's helping.
    },
    "bridge": {
        "name": "Homebridge 4D41",
        "username": "0E:1A:E3:5A:4D:41",
        "port": 51184,
        "pin": "860-39-455"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "TuyaWebPlatform",
            "options": {
                "username": "REDACTED",
                "password": "ALSO_REDACTED",
                "countryCode": "1",
                "platform": "tuya"
            },
            "defaults": [
                {
                    "id": "17882087f4cfa2c9315d",
                    "device_type": "light"
                }
            ],
            "scenes": false,
            "platform": "TuyaWebPlatform"
        }
    ]
}

Screenshots:

Environment:

  • Node.js Version: v14.15.4
  • NPM Version: v6.14.10
  • Homebridge Version: 1.17
  • Operating System: Raspbian
  • Process Supervisor: none

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:9

github_iconTop GitHub Comments

1reaction
n1zzocommented, Feb 10, 2021

Traced the issue back to the HAP-NodeJS library:

  HAP-NodeJS:EventedHTTPServer New connection from client at interface eth0 +18s
  HAP-NodeJS:EventedHTTPServer HTTP server listening on port 44827 +2ms
  HAP-NodeJS:EventedHTTPServer HTTP connection error:  getaddrinfo EAI_AGAIN localhost +5s
  HAP-NodeJS:EventedHTTPServer HTTP connection was closed +1ms
  HAP-NodeJS:EventedHTTPServer HTTP server was closed +3ms
  HAP-NodeJS:EventedHTTPServer Client connection closed +3ms

For some reason the docker container is unable to resolve localhost, thus the pairing fails. If localhost is added into the /etc/hosts file, pairing succeeds.

0reactions
github-actions[bot]commented, Mar 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to add Homebridge to Homekit · Issue #2743 - GitHub
When using Homebridge UI, you can navigate to Homebridge settings and open the menu for "Unpair Bridges / Cameras / TVs / External...
Read more >
Unable to add Homebridge to "Home" - Reddit
Looks fine, status screen is good. I can scan the QR, or manually enter the code, click "add to home" Home app then...
Read more >
Unable to add accessories to HomeKit — new problem with ...
When I try, the Home app eventually times out, telling me that the accessory is unreachable. (What's really maddening is that, once I've...
Read more >
Share control of your home - Apple Support
Tap or click Back, then Done. Shared users can't add HomePod, Apple TV, or any AirPlay 2-compatible smart TVs or speakers to the...
Read more >
Homebridge guide: How to make everything HomeKit ...
With your configuration working, open up the Home app on your iOS device. Then select '+' and select Add accessory. Tap Don't have...
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