Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Plugin does not seem to load #56

Open
rgerr opened this issue Dec 26, 2017 · 0 comments
Open

Plugin does not seem to load #56

rgerr opened this issue Dec 26, 2017 · 0 comments

Comments

@rgerr
Copy link

rgerr commented Dec 26, 2017

Hi all,

Can't seem to get past the initializing phase in Homebridge on RPi3. This is what happens when I start Homebridge. Beneath you also see my config.json.

*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
[12/26/2017, 12:16:21 PM] Loaded plugin: homebridge-foscamcamera
[12/26/2017, 12:16:21 PM] Registering platform 'homebridge-foscamcamera.FoscamCamera'
[12/26/2017, 12:16:21 PM] ---
[12/26/2017, 12:16:21 PM] Loaded plugin: homebridge-mi-aqara
[12/26/2017, 12:16:21 PM] Registering platform 'homebridge-mi-aqara.MiAqaraPlatform'
[12/26/2017, 12:16:21 PM] ---
[12/26/2017, 12:16:21 PM] Loaded plugin: homebridge-wol
[12/26/2017, 12:16:21 PM] Registering accessory 'homebridge-wol.NetworkDevice'
[12/26/2017, 12:16:21 PM] ---
[12/26/2017, 12:16:21 PM] Loaded config.json with 0 accessories and 2 platforms.
[12/26/2017, 12:16:21 PM] ---
[12/26/2017, 12:16:22 PM] Loading 2 platforms...
[12/26/2017, 12:16:22 PM] [MiAqaraPlatform] Initializing MiAqaraPlatform platform...
[12/26/2017, 12:16:22 PM] [MiAqaraPlatform] [INFO]**************************************************************
[12/26/2017, 12:16:22 PM] [MiAqaraPlatform] [INFO] MiAqaraPlatform v0.6.7 By YinHang
[12/26/2017, 12:16:22 PM] [MiAqaraPlatform] [INFO] GitHub: https://github.com/YinHangCode/homebridge-mi-aqara
[12/26/2017, 12:16:22 PM] [MiAqaraPlatform] [INFO] QQ Group: xxxxxx
[12/26/2017, 12:16:22 PM] [MiAqaraPlatform] [INFO]**************************************************************
[12/26/2017, 12:16:22 PM] [MiAqaraPlatform] [INFO]start success...
[12/26/2017, 12:16:22 PM] [MiAqaraPlatform] [INFO]config gateways: xxxxxxxxx
[12/26/2017, 12:16:22 PM] [Foscam] Initializing FoscamCamera platform...
Setup Payload:
X-HM://0023ISYWYBJ24
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
[12/26/2017, 12:16:23 PM] [MiAqaraPlatform] [INFO]server is listening on port xxxx.
events.js:163
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:1050:11)
at exports._exceptionWithHostPort (util.js:1073:20)
at Server.setupListenHandle [as _listen2] (net.js:1259:14)
at listenInCluster (net.js:1307:12)
at Server.listen (net.js:1406:7)
at EventedHTTPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:601:16)
at Server._publish (/usr/lib/node_modules/homebridge/lib/server.js:126:16)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:96:10)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)

Config.json (also tried with "port", did not work either).

{
"bridge": {
"name": "Homebridge",
"username": "xxxxxxxx",
"port": "xxxxx",
"pin": "xxxxxx"
},
"platforms": [{
"platform": "MiAqaraPlatform",
"gateways": {
"xxxxxxx": "xxxxxxxx"
}
},
{
"platform": "FoscamCamera",
"name": "Foscam",
"cameras": [{
"username": "xxxx",
"password": "xxxxxx",
"host": "192.xxx"
}, {
"username": "xxxx",
"password": "xxxxxxx",
"host": "192.xxx"

		}],



		"accessories": [{
			"accessory": "NetworkDevice",
			"name": "Computer",
			"mac": "xxxx",
			"ip": "192.xxx"


		}]
	}
]

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant