Cannot make MQTT work with homebridge (Pi 3, Mac Terminal)

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.
Post Reply
rdomotics
Posts: 2
Joined: Sunday 26 March 2017 19:40
Target OS: OS X
Domoticz version:
Contact:

Cannot make MQTT work with homebridge (Pi 3, Mac Terminal)

Post by rdomotics » Sunday 26 March 2017 19:55

Hi all,

I cannot go ahead with my homebridge setup on the Raspberry Pi 3 because of the following problem with MQTT.

Code: Select all

[email protected]:~ $ homebridge
*** WARNING *** The program 'node' 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=node>
*** WARNING *** The program 'node' 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=node&f=DNSServiceRegister>
[3/26/2017, 5:52:19 PM] Loaded plugin: homebridge-edomoticz
[3/26/2017, 5:52:19 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[3/26/2017, 5:52:19 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[3/26/2017, 5:52:19 PM] ---
[3/26/2017, 5:52:19 PM] Loaded config.json with 0 accessories and 1 platforms.
[3/26/2017, 5:52:19 PM] ---
[3/26/2017, 5:52:19 PM] Loading 1 platforms...
[3/26/2017, 5:52:19 PM] [eDomoticz] Initializing eDomoticz platform...
[3/26/2017, 5:52:19 PM] Loading 0 accessories...
[3/26/2017, 5:52:19 PM] [eDomoticz] Initializing platform accessory 'Yeelight 1'...
[3/26/2017, 5:52:19 PM] [eDomoticz] Initializing platform accessory 'Yeelight 2 (soffitto)'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
[3/26/2017, 5:52:19 PM] Homebridge is running on port 51826.
[3/26/2017, 5:52:19 PM] [eDomoticz] Retrying connection to MQTT broker... (1/5)
[3/26/2017, 5:52:20 PM] [eDomoticz] Retrying connection to MQTT broker... (2/5)
[3/26/2017, 5:52:21 PM] [eDomoticz] Retrying connection to MQTT broker... (3/5)
[3/26/2017, 5:52:22 PM] [eDomoticz] Retrying connection to MQTT broker... (4/5)
[3/26/2017, 5:52:23 PM] [eDomoticz] Retrying connection to MQTT broker... (5/5)
[3/26/2017, 5:52:24 PM] [eDomoticz] Could not connect to MQTT broker! (127.0.0.1:1883)
Homebridge in installed and it seems to work. Yeelights work from Domoticz http interface.

What's wrong?

Thanks.

rdomotics
Posts: 2
Joined: Sunday 26 March 2017 19:40
Target OS: OS X
Domoticz version:
Contact:

Re: Cannot make MQTT work with homebridge (Pi 3, Mac Terminal)

Post by rdomotics » Sunday 26 March 2017 20:00

Update:

Replacing in the config.json file

"mqtt": 1

With

"mqtt": true

Results in the following issue:

Code: Select all

[email protected]:~ $ homebridge
*** WARNING *** The program 'node' 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=node>
*** WARNING *** The program 'node' 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=node&f=DNSServiceRegister>
[3/26/2017, 5:58:26 PM] Loaded plugin: homebridge-edomoticz
[3/26/2017, 5:58:26 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[3/26/2017, 5:58:26 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[3/26/2017, 5:58:26 PM] ---
[3/26/2017, 5:58:26 PM] Loaded config.json with 0 accessories and 1 platforms.
[3/26/2017, 5:58:26 PM] ---
[3/26/2017, 5:58:26 PM] Loading 1 platforms...
[3/26/2017, 5:58:26 PM] [eDomoticz] Initializing eDomoticz platform...
[3/26/2017, 5:58:26 PM] Loading 0 accessories...
[3/26/2017, 5:58:26 PM] [eDomoticz] There was a problem connecting to Domoticz.
- Error: connect ECONNREFUSED 127.0.0.1:1883
[email protected]:~ $ 

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests