Closed peterkappelt closed 6 years ago
Solution is described here:
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?
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";
(Supposedly) fixed for Beta with JTradfri buid 0.0.4
Anleitung für Nutzer der Stable-Version mit coap-client/ manual for users of the stable version:
coap-client -m post -u "Client_identity" -k "SECURITY_CODE" -e '{"9090":"IDENTITY"}' "coaps://IP_ADDRESS:5684/15011/9063"
Replace IP_ADDRESS with the IP of your gateway and SECURITY_CODE with your PSK. There will be a return like this: {"9091":"YOUR_NEW_PSK","9029":"1.2.0042"}
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.
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.
Changes in DTLS handshake
Please do not update, otherwise this module won't work