treban / pimatic-tradfri

This plugin provides a tradfri interface for pimatic.
https://pimatic.org/plugins/pimatic-tradfri/
GNU General Public License v2.0
11 stars 3 forks source link

Updated to latest pimatic-tradfri with GW 1.8.25 but won't connect to GW anymore #35

Closed sverrevh closed 5 years ago

sverrevh commented 5 years ago

Pimatic version :

0.9.43

Plugin version :

0.1.22

Gateway version:

1.8.25

Problem / Feature :

I removed the identity and PSK from the config file after updating but Pimatic-tradfri cannot connect to GW after successful PSK handshake:

13:11:05.262 [pimatic-tradfri] debug: tradfri cfg: Gateway IP: 192.168.1.145
13:11:05.269 [pimatic-tradfri] debug: PSK Handshake...
13:11:19.280 [pimatic-tradfri] debug: ...connection error!
CLEANUP
13:11:19.290 [pimatic-tradfri] debug: Try to connect to Tradfri
13:11:19.300 [pimatic-tradfri] debug: PSK Handshake...
13:11:21.144 [pimatic-tradfri] debug: Gateway online - PSK Handshake successful: lopI4KCfOXXXXXSB
13:11:21.147 [pimatic-tradfri] debug: Establish secure connection... 
13:11:21.300 [pimatic-tradfri] debug: PSK saved to config
13:11:29.348 [pimatic-tradfri] debug: ...connection error!
CLEANUP
13:11:29.354 [pimatic-tradfri] debug: Try to connect to Tradfri
13:11:39.361 [pimatic-tradfri] debug: ...connection error!
CLEANUP
13:11:39.366 [pimatic-tradfri] debug: Try to connect to Tradfri
13:11:49.375 [pimatic-tradfri] debug: ...connection error!

new identity and PSK are indeed written to config

sverrevh commented 5 years ago

oh seems the update had failed to install 0.1.22. Manually edited the identity length to 4 in v 0.1.19, and it works now.