peterkappelt / Tradfri-FHEM

A Module for the FHEM Home-Control Software which enables connectivity to the IKEA Trådfri gateway
http://electronic.kappelt.net/wordpress/ikea-tradfri-module-for-fhem/
GNU General Public License v3.0
24 stars 8 forks source link

Gateway version 1.2.42: connection not working anymore #11

Closed peterkappelt closed 6 years ago

peterkappelt commented 6 years ago

Changes in DTLS handshake

Please do not update, otherwise this module won't work

peterkappelt commented 6 years ago

Solution is described here:

https://github.com/ggravlingen/pytradfri/issues/90

Schockwelle commented 6 years ago

Danke für den Hinweis.

Ich habe den Befehl ausgeführt und habe eine neuen Key. Die Abfrage der Devices über die Konsole funktioniert, aber nicht über FHEM obwohl ich den Key dort geändert habe.

Bei get devicelist über FHEM erhalten ich folgenden Fehler: Error while trying to fetch devices!

Mache ich etwas falsch bzw. muss das "IDENTITY" noch irgendwo hinterlegt werden?

Schockwelle commented 6 years ago

Habs jetzt selbst hinbekommen:

Replace in TradfriLib.pm:

my $coapClientCMD = "timeout 5s coap-client -u Client_identity -k $gwSecret -v 1 -m $method coaps://$gwAddress:5684/$path";

With:

my $coapClientCMD = "timeout 5s coap-client -u IDENTITY -k $gwSecret -v 1 -m $method coaps://$gwAddress:5684/$path";

peterkappelt commented 6 years ago

(Supposedly) fixed for Beta with JTradfri buid 0.0.4

peterkappelt commented 6 years ago

Anleitung für Nutzer der Stable-Version mit coap-client/ manual for users of the stable version:

This solution works - but it hasn't been tested for long. You might have to repeat this procedure in a couple of weeks, until a "real" fix is published.

DanMittendorf commented 6 years ago

I would like to reopen this as reported in #14 that this workaround/temporary fix isn't working anymore for at least two users (see #14 )

EDIT: Nevermind! I used the wrong IP address... My bad! Sorry.