Last time I checked the latest beta still has support for python and python plugins disabled, you need to use the python-enabled branch...
Regards
M
Moderator: leecollings
Last time I checked the latest beta still has support for python and python plugins disabled, you need to use the python-enabled branch...
There are no dumb questions, just silly answers...
Code: Select all
$ git clone https://github.com/domoticz/domoticz.git dev-domoticz
$ cd dev-domoticz
Code: Select all
$ git checkout python-enabled
Code: Select all
$ git pull
$ cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
$ make -j 3
Code: Select all
pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ python3 tradfri.tac
IKEA-tradfri COAP-adaptor version 0.3 started (command line)!
Waiting for connection
Connected from IPv4Address(TCP, '127.0.0.1', 54094)
Data received: b'{"observe": "True", "action": "setConfig", "gateway": "192.168.1.226", "key": "blablablabla"}'
Code: Select all
pi@raspberrypi:~ $ coap-client -k blablabla coaps://192.168.1.226/15004/
v:1 t:CON c:GET i:3515 {} [ ]
decrypt_verify(): found 24 bytes cleartext
decrypt_verify(): found 19 bytes cleartext
[133243]
Code: Select all
pi@raspberrypi:~ $ coap-client -k blablablabla coaps://192.168.1.226/.well-known/core
v:1 t:CON c:GET i:fbcf {} [ ]
decrypt_verify(): found 24 bytes cleartext
decrypt_verify(): found 560 bytes cleartext
<//15001/65536>;ct=0;obs,<//15001/65538>;ct=0;obs,<//15004/133243>;ct=0;obs,<//15005/133243>;ct=0;obs,<//15005/133243/220138>;ct=0;obs,<//15005/133243/214322>;ct=0;obs,<//15005/133243/202541>;ct=0;obs,<//15001>;ct=0;obs,<//15001/reset>;ct=0,<//status>;ct=0;obs,<//15005>;ct=0;obs,<//15004>;ct=0;obs,<//15004/add>;ct=0,<//15004/remove>;ct=0,<//15006>;ct=0;obs,<//15011/15012>;ct=0;obs,<//15011/9034>;ct=0,<//15011/9030>;ct=0,<//15011/9031>;ct=0,<//15011/9063>;ct=0,<//15011/9033>;ct=0,<//15010>;ct=0;obs,<//15010/308046>;ct=0;obs,<//15001/65537>;ct=0;obs
Code: Select all
2017-09-19 19:06:05.552 (IKEA) Calling message handler 'onHeartbeat'.
So, the adapter starts, receives the initial setup command, and then fails?andi216 wrote: ↑Tuesday 19 September 2017 18:21 @moroen
Hello
I took another step.
Code: Select all
pi@raspberrypi:~/domoticz/plugins/IKEA-Tradfri $ python3 tradfri.tac IKEA-tradfri COAP-adaptor version 0.3 started (command line)! Waiting for connection Connected from IPv4Address(TCP, '127.0.0.1', 54094) Data received: b'{"observe": "True", "action": "setConfig", "gateway": "192.168.1.226", "key": "blablablabla"}'
2017-09-19 20:05:13.569 (IKEA) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
You need to compile domoticz from the python-enabled branch yourself if you need to use the latest betas. I wrote some intstructions earlier in the thread. If you don't need any other beta features, the latest stable has python enabled and works with the master-branch of the IKEA-plugin.
Thank you for the feedback!Ravenbankie wrote: ↑Tuesday 26 September 2017 23:27 Hi,
Moroen , thanxs for this excellent plugin.
I have followed the instructions and everything is working. i hope i can help someone for what's worth my setup:
my setup: Raspberry pi, OSMC , Python 3.4 dev , domoticz beta, IKEA-tradfri git clone development.
it's my first time raspb and linux so it's nice to see everything working now.
i'm curious: Is the async choice better than the syncrounous version within pytradfri of ggravlingen? Is that the future?
I hope to see all the colors for the color lamps supported someday in your plugin Moroen
greetz
It appears that the coap-client can't connect to the ikea-gateway. Have you tried testing the coap-client from the command-line?
Code: Select all
$ coap-client -k your_key_goes_here coaps://ip/.well-known/core
Have you received your RGB lamp yet?
Thanks!m0rph13 wrote: ↑Saturday 30 September 2017 11:04 Have you received your RGB lamp yet?
I've had mine for a couple of weeks now and would love to be able to control colours through your plugin
Another thing I would really love to see is a way to detect that a WB has been activated. Currently, all my remotes (WB) shows as being ON all the time.
Thank you for an awesome plugin!
Hi Mmoroen wrote: ↑Friday 29 September 2017 12:14It appears that the coap-client can't connect to the ikea-gateway. Have you tried testing the coap-client from the command-line?
Regards,Code: Select all
$ coap-client -k your_key_goes_here coaps://ip/.well-known/core
M
So, the coap-client works, the next step is to run tradfri.tac from the command-line and post the output...sejonr wrote: ↑Sunday 01 October 2017 10:03Hi Mmoroen wrote: ↑Friday 29 September 2017 12:14It appears that the coap-client can't connect to the ikea-gateway. Have you tried testing the coap-client from the command-line?
Regards,Code: Select all
$ coap-client -k your_key_goes_here coaps://ip/.well-known/core
M
When i putting in my ip and Key i got this. I am new in Linux so i need help I run another Coap-script that i find on the web an could find IKEA lamps. (I removed my IKEA Key)
I using Domoticz V3.8153, Python 3.4, Ikea gateway version 1.1.0015.
coap-client -k "MY Key" coaps://192.168.1.45/.well-known/core
v:1 t:CON c:GET i:190c {} [ ]
<//15001/65541>;ct=0;obs,<//15001/65536>;ct=0;obs,<//15001/65542>;ct=0;obs,<//15001/65544>;ct=0;obs,<//15001/65543>;ct=0;obs,
...
Users browsing this forum: No registered users and 1 guest