homebridge: Can't add Homebridge to Home app

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

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 22 (1 by maintainers)

Most upvoted comments

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.

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.

just give different name to bridge, change user, and pin. it helps me.

@nahueldl - Thank you! This worked after many other attempts failed.

@nahueldl this also worked great for me. I signed in just to say thank you for spending the time troubleshooting and posting for the rest of us!!!

😦 there are a lot of people like us, issues opened… hope the next release will fix the problem…