-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection timed out #99
Comments
Same here, I installed the plugin on an rPi with an already working domoticz installation. OS = Raspbian GNU/Linux 10 (buster). I followed the instructions in README-PI.md. The gateway is working normally and pingable. python3 plugin.py config xx.xx.xx.xx xxxxxxxxxx Key and IP address are correct, I triple-checked. Rebooted the gateway just in case, no change. |
I'm unable to reproduce this. Any firewalls etc than could be causing this? Connection working from the IKEA-app? |
Yes, it was working fine from the Ikea (cr)app. But a few days ago I installed py3coap manually as mrwolf78 did. That seems to have fixed the problem and it is working fine now. Thanks for making this plugin available, much appreciated! |
There seems to be some issues with downloading py3coap from pypi on raspbian, glad it worked out using manual install! |
Actually, in the time between nachtbraker's post and you closing the ticket, I reinstalled the plugin and tried both an automatic and maual install of py3coap. I'm still getting the connection timed out error. But since I seem to be the only one, I'll try to reinstall everything on the RPi from scratch somewhere this week, let's hope that's solving the issue! |
Ok, reopening... If that fails, try switching to coapcmd and see if that solves it! |
Unfortunately, no success on a fresh SD card with Raspbian lite, only Domoticz installed (Raspberry Pi Model B). edit: installing coapcmd seems to do the trick (finally)!!! |
There's a updated version of py3coap in the master branch now (version 0.8.0), if you would like to give it a try, but using coapcmd should be a viable alternative. I'll make a fresh SD card with raspbian lite and see if I reproduce this error... |
Ok, great. I've got it working right now, so I'll rather leave it alone right now ;) |
Hello, first, thanks a lot for this plugin 👍 . Which worked perfeclty til a week ... Now I have got a Connection timed out When I start the coap command I have got this bin/coapcmd get --ident 7f698xxxxxxxxxxxxxxxxxx081 --key FlQuxxxxxxxx5u0 coaps://192.168.1.69:5684/15001
{"Status":"HandshakeError","Result":""} Is this issue that related to Certificate or HTTPS ? What does it work perfectly until a week and now anymore ? I am the only one :) ?
|
Sometimes the gateway resets some or all the ident/PSK-pairs. I haven't been able to determine why or how, but it happens, sometimes you also need to reconnect the official IKEA app... So, the first thing to try, is to generate a new ident/PSK-pair:
|
Indeed, this is my fault. I had to reconfigure the pluging like this :-) Thanks for your advice👍 I also add a bash script at startup to execute a refresh (daily refresh because daily reboot !) #! /bin/sh
IP=192.168.1.xx
KEY=mykey
PATH=/home/pi/domoticz/plugins/IKEA-Tradfri
cd $PATH
/usr/bin/python3 plugin.py config $IP $KEY |
Same problem here on a clean install SD card. Used py3coap (pip3 install py3coap , no errors) , connection timed out.
Rebooted both the gateway and my RPi, grrr. |
Same issue Raspberry with manual pycoap install because py3coap command from how to document did not work and throws errors. |
In order to try to solve this, I need to know how installing py3coap failed, and the log from installing py3coap from source.
or
or both, I'll take a look! The most common cause of either of these methods failing, is a missing go compiler... |
Highly possible that it was missing go compiler. Right now it installs correctly but it may already have all dependencies and use cache due to manual installation. Still the main issue is that it just does not connect to the Ikea gate: below is output for py3coap and for coapcmd:
|
It works on my raspberry, using the latest image of raspbian, both coapcmd and py3coap. Have you tried the precompiled binary of coapcmd? |
Hi @moroen I've succesfully installed the IKEA Tradfri plugin on my RPI without any errors, I've followed the instruction on https://github.com/moroen/IKEA-Tradfri-plugin/blob/master/README-PI.md. In one of the very latest steps "$ python3 plugin.py config gw IP KEY", of course after entering the IP-address of my Tradfri gateway & the correct key, I'm getting the 'Connection timed out' error. |
I installed This Ikea Tradfri plugin in the Domoticz plugin directory on an x86_64 system installed with os Ubuntu server 21.04. python3 plugin.py list If I uninstall py3coap and try the: Edit: It looks like I had to install gccgo-go as: sudo apt install gccgo-go. Edit: Edit: This command gives me: |
I've followed the instructions to install this plugin on my Raspberry Pi, but when running 'python3 plugin.py config 192.168.0.75 4Sk6uLS49Aw1MXXX' (last three characters edited), I get an error:
Connection timed out.
I've triple checked the IP-address and Security code, these are correct. What can I do to find the cause and resolve this?
Edit: Although I haven't seen any errors during install, I installed py3coap manually. I can now perform the config-command with no error, but python3 plugin.py list returns 'Connection timed out'.
The text was updated successfully, but these errors were encountered: