szokeptr / homebridge-tradfri-plugin

Ikea Tradfri plugin for Homebridge
59 stars 6 forks source link

Can't connect #19

Closed matthijsotterloo closed 7 years ago

matthijsotterloo commented 7 years ago

Hi!

I'm sure the IP of the gateway and the 'Security code' are correct. But for some reason when starting homebridge I keep getting this error:

/bin/sh: 1: coap-client: not found coap-client -u 'Client_identity' -k '2kZBpYULSBOojrxc' -B 5 coaps://192.168.178.95:5684/15001 [8/20/2017, 7:42:27 PM] [Tradfri] Cannot get devices from gateway! Is the Host and Key correct in config.json?

What's wrong?

ghost commented 7 years ago

run these command in this order

sudo apt-get install autoconf libtool automake git clone --recursive https://github.com/obgm/libcoap.git cd libcoap git checkout dtls git submodule update --init --recursive ./autogen.sh ./configure --disable-documentation --disable-shared make sudo make install

after that you can run homebridge if you added the platform

boywithaxe commented 7 years ago

Still comes back with the same error, but having said that I'm running this on High Sierra, and I wonder if that is the issue. I'll give it a go on my Sierra machine or set up a basic ubuntu server

ghost commented 7 years ago

Yeah that could be the reason. The command resplve the issue on a raspi Am 10.09.2017 um 09:44 schrieb Greg Szydlo notifications@github.com<mailto:notifications@github.com>:

Still comes back with the same error, but having said that I'm running this on High Sierra, and I wonder if that is the issue. I'll give it a go on my Sierra machine or set up a basic ubuntu server

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/szokeptr/homebridge-tradfri-plugin/issues/19#issuecomment-328325799, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZPha__LQ-pR28fLfQ0Y7X0oSjMbeCFNks5sg5NTgaJpZM4O8tbN.

szokeptr commented 7 years ago

Hello! Ikea pushed a firmware update to the gateway which changed around some stuff with DTLS authentication. I implemented the new auth flow, please update your gateway and this plugin to latest version.