moroen / IKEA-Tradfri-plugin

A Python plugin for Domoticz to controll IKEA Gateway
68 stars 23 forks source link

Connection error #134

Closed TGMivo closed 3 years ago

TGMivo commented 3 years ago

Hi,

I have 2 pi's 1 slave Zero W with the IKEA plugin running 1 Master Pi4, Ikea divices don't come over with Domoticz - Remote Server

On my master i get: $ cd domoticz/plugins/IKEA-Tradfri $ sudo python3 plugin.py config gw 192.168.178.### KiS6Urnd4###### Connection timed out

$ python3 plugin.py version IKEA Tradfri Plugin: 0.10.6 Tradfricoap: 0.0.17 Py3coap: 0.9.2 coapcmd: Not found (Looking for /home/pi/domoticz/plugins/IKEA-Tradfri/bin/coapcmd).

On the slave (working IKEA plugin) has the same versions of Domoticz and IKEA plugin

TGMivo commented 3 years ago

Reinstall py3coap did not work :(

pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ sudo pip3 uninstall py3coap
Uninstalling py3coap-0.9.2:
  Would remove:
    /usr/local/lib/python3.7/dist-packages/py3coap-0.9.2-py3.7-linux-armv7l.egg
Proceed (y/n)? y
  Successfully uninstalled py3coap-0.9.2
pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ sudo pip3 install -U py3coap
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting py3coap
  Downloading https://files.pythonhosted.org/packages/68/b5/27d464618138c03121c345ea734d1b73762309ec63c98007bfdf7c265edb/py3coap-0.9.2.tar.gz
Building wheels for collected packages: py3coap
  Running setup.py bdist_wheel for py3coap ... done
  Stored in directory: /root/.cache/pip/wheels/a2/d9/34/7f803d9e510ce1cdeab6bd31dca3ac2ea8c741aecb964c0e52
Successfully built py3coap
Installing collected packages: py3coap
  Found existing installation: py3coap 0.7.2
    Uninstalling py3coap-0.7.2:
      Successfully uninstalled py3coap-0.7.2
Successfully installed py3coap-0.9.2
pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ python3 plugin.py config gw 192.168.178.### KiS6Urnd4######
Connection timed out
TGMivo commented 3 years ago

After a new reinstall py3coap is works (on the commandline python3 plugin.py list and see the lights. In domoticz I get the same errorcodes like #132