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.

Can't add Homebridge to Home app

See original GitHub issue

Like the tittle says I can’t add homebridge to my Home app, I have already tried reinstalling every plugin and even homebridge itself but I can’t make it work. Also tried removing persist and accessories folders, and changing the username, pin and port number.

The plugins I have installed are:

  • homebridge-config-ui-x
  • homebridge-sonoff-tasmota-http

This is my current config.json file:

{
	"bridge": {
		"name": "Homebridge",
		"username": "F4:8E:38:F4:62:0D",
		"port": 51826,
		"pin": "001-01-001"
	},
	"description": "test3",

	"platforms": [
		{
			"platform": "config",
			"name": "Config",
			"port": 8080,
			"sudo": false
		}
	],

	"accessories": [
		{
			"accessory": "SonoffTasmotaHTTP",
			"name": "Sonoff1",
			"hostname": "192.168.1.5"
		}

	]

}

I’m running homebridge on Windows 10 fully updated, and I’ve tried connecting through an iPhone 8 with iOS 12 beta 5 and through an iPhone 7 plus with iOS 11.4.1 .

This is an screenshot from the PowerShell PowerShell

And this one is from my phone, I’m sorry it’s in spanish, it says something like it couldn’t find the accessory and that I should make sure it is connected to my network. Both my pc and my phone are connected to the same network. PowerShell

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

26reactions
nahueldlcommented, Aug 24, 2018

Finally I managed to make it work by following this issue’s solution #1957. I added the line "mdns": {"interface": "192.168.1.14"}, “192.168.1.14” is my laptop’s local ip address. This forces the multicast lib to bind to an specify interface.

{
	"mdns": {"interface": "192.168.1.14"},
	"bridge": {
		"name": "homebridge",
		"username": "22:34:56:78:9A:BC",
		"port": 51826,
		"pin": "031-45-154"
	},
	"description": "Prueba3",

	"platforms": [
		{
			"platform": "config",
			"name": "config",
			"port": 8080,
			"sudo": false
		}
	],

	"accessories": [
		{
			"accessory": "SonoffTasmotaHTTP",
			"name": "sonoff1",
			"hostname": "192.168.1.5"
		}

	]

}

Thank you all for your help, I wish this may help you.

4reactions
henrikcommented, Dec 3, 2020

This is a bit silly, but after trying almost everything else (restarting the Mac running Homebridge, resetting Homebridge, regenerating username/PIN etc), what fixed it was… restarting my phone 🤦‍♂️

I think that after the restart, I opened Home.app, hit the “+”, Add Accessory, “I Don’t Have a Code or Cannot Scan”, and then it showed me a list of accessories including Homebridge. I could just add it through there. But I’m pretty sure I tried that flow before and the restart is what fixed it.

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 >
Can't add HomeBridge to HomeKit Home - Reddit
I had HB (HomeBridge) installed as a docker container on my NAS and successfully integrated to my HK (HomeKit) before but I did...
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 >
Add an accessory to the Home app - Apple Support
You can't add accessories to the Home app on Mac. The Home app screen on iOS showing the Add Accessory tile. Open 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