homebridge / homebridge

HomeKit support for the impatient.
https://homebridge.io
Apache License 2.0
23.84k stars 1.98k forks source link

Broken my homebridge/HA install, [HomeAssistant] Failed getting devices: Error: read ECONNRESET. #1242

Closed Pukington closed 7 years ago

Pukington commented 7 years ago

Hey all.

I've been happily using Homebridge with HA for a few months on a Pi, love it. Decided to play around with Alexa, so added the functionality to the same pi. I haven't yet gotten Alexa talking to HA, but now have this issue with Homebridge:

`pi@raspberrypi:~ $ homebridge

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

[4/4/2017, 9:08:51 AM] Loaded plugin: homebridge-homeassistant [4/4/2017, 9:08:51 AM] Registering platform 'homebridge-homeassistant.HomeAssistant' [4/4/2017, 9:08:51 AM] --- [4/4/2017, 9:08:51 AM] Loaded plugin: homebridge-people [4/4/2017, 9:08:51 AM] Registering accessory 'homebridge-people.people' [4/4/2017, 9:08:51 AM] --- [4/4/2017, 9:08:51 AM] Loaded config.json with 0 accessories and 1 platforms. [4/4/2017, 9:08:51 AM] --- [4/4/2017, 9:08:51 AM] Loading 1 platforms... [4/4/2017, 9:08:51 AM] [HomeAssistant] Initializing HomeAssistant platform... [4/4/2017, 9:08:51 AM] [HomeAssistant] Fetching HomeAssistant devices. [4/4/2017, 9:08:51 AM] [HomeAssistant] Failed getting devices: Error: read ECONNRESET. Retrying...`

And it just retries. I'm aware of having to run: export NODE_TLS_REJECT_UNAUTHORIZED=0 due to now having SSL. I'm sure it's something stupid but for the life of me i'm not seeing it. I have some linux experience from many years ago so sorry if this is a nooblike question!

Here's my config.json: ` { "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" },

    "platforms": [{
            "platform": "HomeAssistant",
            "name": "HomeAssistant",
            "host": "https://192.168.0.24:8123",
            "password": "<REDACTED>",
            "supported_types": ["light", "scene", "sensor"]
    }]

}

`

NorthernMan54 commented 7 years ago

That reads like a problem with either Home Assistant or the Home Assistant plugin and not HomeBridge.

PS I have doing the same thing with Alexa, and have this working POC if you want to give something else a try with Alexa

https://github.com/NorthernMan54/homebridge-alexa

Pukington commented 7 years ago

Thanks for the reply mate. I'm a little lost now, maybe i'll search over at HA.

That looks like a decent alternative, the hole thing fell apart with me sorting out SSL, I only need Alexa to perform easy tasks such as limitlessLED lights and scenes, the HA route seems rather convoluted with SSL and skills.