-
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
Issues with the API? Connection Timed out #102
Comments
Handshake errors usually means that the IDENT/PSK pair has been invalidated. I've no idea why the gateway suddenly invalidates one or more pairs, but it happens. This is not only an issue for this plugin, but also for the official IKEA app... Also see #99 So the first thing to do is to try generating a new IDENT/PSK-pair:
If this doesn't work, make sure that the gateway IP is correct, and that you're able to ping the gateway. If it still fails, let me know and I'll investigate further! |
It seems that it is not working through docker and coapcmd, and i can't install py3coap because of CGO issues and the dockercontainer i am using due to alpine linux. But it does work on my raspberry pi that use py3coap... which is very strange. If you have any ideas on what to test i can try and figure out the issue. I am a senior programmer by trade so can even try and debug the issue but it would be nice to be pointed in a direction on where to start to look. |
Does coapcmd work on your Pi as well? If it does, I would guess it might have something to do with the port configuration of the docker image? Can you ping the gateway from within the docker image? Have you tried using coapcmd directly on a command line in the docker image?
You can use the ident/key from your working pi, you'll find the config in: |
I may have similar issue but in my case it is not possible to connect on raspberry with pycoap. IP address is correct and pinging it gives me results, security key also is correct yet all the time there is connection timeout when trying command |
It works on my Raspberry, using the latest raspbian image, using both coapcmd and py3coap. Have you tried the precompiled binary of coapcmd? |
It seems like the library has stopped working, i still get a response on setting of API but listing doesn't seem to return expected data. I had it running a raspberry pi that used the py library and then moved it to a regular server instead using coapcmd. It stopped working on both systems so it seems to stem from a deeper issue.
I put in some printing to try and find the location of the issue.
Im setting the API key on startup of the docker container if that is causing any issues.
Log 1/2 is in coapcmd_api.py row 43-44
Log 3/4 is in device.py row 329-331-ish
The 2 firsts are partially working startups but the third one is most common and the forth is a listing
On the last one it seems to get the correct messages from the devicelisting but not the response from the item
The text was updated successfully, but these errors were encountered: