glenndehaan / ikea-tradfri-coap-docs

How can you communicate to your ikea tradfri gateway/hub through coap-client
MIT License
191 stars 20 forks source link

Coap not working #3

Closed Riqk99 closed 5 years ago

Riqk99 commented 5 years ago

When I use a command like this: coap-client -m put -u "USER" -k "KEY" -e '{ "3311": [{ "5850": 1 }] }' "coaps://192.168.2.1:5684/15004/195019"

The response is always just: v:1 t:CON c:PUT i:8894 {} [ ] decrypt_verify(): found 24 bytes cleartext decrypt_verify(): found 4 bytes cleartext

And nothing happens.... Getting the data from my light does work: {"9001":"NAME","9002":1542748695,"9003":195019,"9039":226934,"5850":1,"5851":0,"9108":0,"9018":{"15002":{"9003":[65579,65581,65580]}}}

Does somebody have an idea to try?

glenndehaan commented 5 years ago

I just checked my home setup but this works fine. Just some things you can try:

Riqk99 commented 5 years ago

It worked! But I found out it only works on individual lights and not on the groups.

Still, thanks for the help and quick reply!