Page 1 of 1

HomeBridge issue

Posted: Sunday 31 January 2016 2:00
by m0rph13
Hi There.
I installed Domoticz on my Pi using the SD image domoticz-raspberrypi-sdcard-3530, which is to include homebridge.
When I try to start homebridge the following error occurs

Code: Select all

Starting HomeBridge server...
...
Loading 1 platforms...
[Domoticz] Initializing Domoticz platform...
[Domoticz] Fetching Domoticz lights and switches...
Loading 0 accessories...
[Domoticz] Initializing device with name Lampa1...
[Domoticz] Loaded services for Lampa1
Cannot find secret key, creating One...
/home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56
  dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
         ^
Error: dns service error: unknown
    at Error (native)
    at new Advertisement (/home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56:10)
    at Object.create [as createAdvertisement] (/home/pi/homebridge/lib/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:64:10)
    at Object.startAdvertising (/home/pi/homebridge/lib/HAP-NodeJS/Advertiser.js:7:28)
    at Object.publishAccessory (/home/pi/homebridge/lib/HAP-NodeJS/Accessory.js:10:29)
Anyone know what could be causing this?

Re: HomeBridge issue

Posted: Sunday 31 January 2016 22:05
by m0rph13
The path to the solution is probably now to remove all the pre-installed homebridge stuff and go with the latest homebridge and the new domoticz plugin on top, thanks to this thread : viewtopic.php?f=36&t=10272&p=72773#p72773

Unfortunately, the song remains the same.
libavahi-compat-libdnssd-dev seems to be the latest..

HomeBridge issue

Posted: Tuesday 02 February 2016 20:33
by Marci
No need to remove the old, just stop using / stop it from loading at boot and install latest from npm - it ends up in / runs from a different location with it's own persist folder and config file.
m0rph13 wrote:new domoticz plugin on top, thanks to this thread : viewtopic.php?f=36&t=10272&p=72773#p72773

Unfortunately, the song remains the same.
libavahi-compat-libdnssd-dev seems to be the latest..
Sorry - are you saying this also occurs with eDomoticz & latest Homebridge?

Re: HomeBridge issue

Posted: Saturday 06 February 2016 11:26
by m0rph13
Sorry - are you saying this also occurs with eDomoticz & latest Homebridge?
I am sorry, I lost patience and started over with a clean Raspian and installed everything manually and after that I have not seen this issue.
I will probably revisit in the near future though, so will take notes on all steps taken at that time.

Re: HomeBridge issue

Posted: Saturday 06 February 2016 16:58
by Marci
Heh - safest solution sometimes...!