Open Aubermean opened 4 years ago
It seems like the "auto-ip-address-detect-feature" of the gateway failed. Try specifying the IP address manually. Modified the code to respond with an appropriate message.
getHostName() {
return new Promise((resolve, reject) => {
if (this.config.host != undefined)
resolve(this.config.host);
else {
this.log('Discovering gateway...');
Ikea.discoverGateway().then((discovery) => {
if (discovery && discovery.name) {
this.log('Discovered host "%s"', discovery.name);
resolve(discovery.name);
}
else {
reject(new Error('Cannot discover gateway address. Sorry, you have to enter the IP address yourself in ~/.homebridge/config.json.'));
}
})
.catch((error) => {
reject(error);
})
}
});
}
New version on npmjs now. 1.2.29...
I cannot initialize this plugin. Here is the output and my config file - any ideas anyone? I'm using macos 10.15. Thanks!