ilcato / homebridge-Fibaro-HC2

Homebridge plugin for Fibaro Home Center 2 (and Home Center Lite ...)
Apache License 2.0
65 stars 27 forks source link

Error connecting to HC2 #44

Closed JensSam closed 7 years ago

JensSam commented 7 years ago

Hi,

I've configured config.json what I believe properly, but when I start HomeBridge I get the following output:

*** 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>
[1/5/2017, 1:54:39 PM] Loaded plugin: homebridge-fibaro-hc2
[1/5/2017, 1:54:39 PM] Registering platform 'homebridge-fibaro-hc2.FibaroHC2'
[1/5/2017, 1:54:39 PM] ---
[1/5/2017, 1:54:39 PM] Loaded config.json with 0 accessories and 1 platforms.
[1/5/2017, 1:54:39 PM] ---
[1/5/2017, 1:54:39 PM] Loading 1 platforms...
[1/5/2017, 1:54:39 PM] [FibaroHC2] Initializing FibaroHC2 platform...
[1/5/2017, 1:54:40 PM] Loading 0 accessories...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 031-45-154 │
    └────────────┘

Plugin - DidFinishLaunching
[1/5/2017, 1:54:40 PM] [FibaroHC2] Server Listening...
[1/5/2017, 1:54:40 PM] Homebridge is running on port 51826.
[1/5/2017, 1:54:40 PM] [FibaroHC2] Error getting data from Home Center: Error: connect CONNREFUSED 192.168.1.2:80 undefined

The error at the end seems to be why I can't get it working, and I believe I have configured everything correctly, I've tested the "rpi" user on my HC2 and it works fine:

Error: connect ECONNREFUSED 192.168.1.2:80 undefined

The config.json platforms part looks like the following:

    "platforms": [
            {
            "platform": "FibaroHC2",
            "name": "FibaroHC2",
            "host": "192.168.1.2",
            "username": "rpi",
            "password": "********",
            "grouping": "none",
            "pollerperiod": "2"
        }

    ],

Does anyone have any idea why the connection is refused? I'm on the 4.110 FW version on my HC2.

Thanks!!

//Jens

ilcato commented 7 years ago

What happens if you use the following url in a browser:

http://rpi:********@192.168.1.2:80/api/devices

replacing **** with the api password?

ilcato commented 7 years ago

@JensSam, any feedback?