Search found 67 matches

by moroen
Friday 22 September 2017 11:52
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Hi i also try to add trådfri plugin. Everything is working exept that i cant find the Trådfri plugin in Domoticz. (I got help from a person that is very god at Linux and python.) he told me that i need to reinstall domoticz with compile. Do i need that? You need to compile domoticz from the python-...
by moroen
Wednesday 20 September 2017 21:30
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

@moroen Hello I took another step. [email protected]:~/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"...
by moroen
Wednesday 20 September 2017 21:27
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

ivarka wrote:
Tuesday 19 September 2017 8:07
I thought Python support was included in 3.8153 (Stable)?

Ivar
Quite correct, the latest stable includes python, but the latest beta does (at least did) not...

Regards,
M
by moroen
Sunday 17 September 2017 22:54
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Dumb question I guess but, How do I get the python-enabled branch? :) There are no dumb questions, just silly answers... :) You need to compile domoticz yourself, following the instructions on the wiki-page: https://www.domoticz.com/wiki/Installing_and_running_Domoticz_on_a_Raspberry_PI To get the ...
by moroen
Sunday 17 September 2017 18:50
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

When I try to install this, I get : error while loading shared libraries usr/local/bin/python3.5 I don't know how many times I tried this, seems impossible. I run domoticz beta latest Raspberry Pi 3 raspbian Jessie Last time I checked the latest beta still has support for python and python plugins ...
by moroen
Sunday 17 September 2017 18:49
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

I've reproduced this error by specifying the wrong key, are you sure the key your using is correct? key is correct ! I checked with the next order $ python3 -i -m pytradfri IP KEY (and it works) Hm, I'm running out of ideas... coap-client must work from the command line, but since pytradfri works, ...
by moroen
Thursday 14 September 2017 0:11
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

[/quote] [email protected]:~/domoticz/plugins/IKEA-Tradfri $ coap-client -k key-goes-here coaps://192.168.1.111/.well-known/core v:1 t:CON c:GET i:1a65 {} [ ] Sep 13 21:54:41 ALRT 20 invalidate peer Sep 13 21:54:41 WARN received alert, peer has been invalidated [/quote] I've reproduced this error by sp...
by moroen
Wednesday 13 September 2017 20:45
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Hm, no group information at all? Ok, what about: coap-client -k key-goes-here coaps://192.168.x.x/.well-known/core If you still get the same Sep 13 21:10:28 ALRT 20 invalidate peer Sep 13 21:10:28 WARN received alert, peer has been invalidated there's something wrong with libcoap and coap-client, th...
by moroen
Wednesday 13 September 2017 20:02
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Ok, so not the error I imagined then... Would you mind providing me with the output of:

Code: Select all

coap-client -k key-goes-here coaps://192.168.x.x/15004/
Regards,
M
by moroen
Wednesday 13 September 2017 17:34
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

@moroen Thank very much you for your advice. A step forward for me. But... builtins.TypeError: 'Group' object is not iterable Disconnected Glad it worked out! It seems you have discovered a bug in the coap-adapter, it looks like you might not have any groups defined? I'll fix it as soon as I can, a...
by moroen
Wednesday 13 September 2017 0:32
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Strange... I'm pretty sure this is a twisted/openssl issue, and not the plugin as such. You should at least be able to import twisted from interactive python, if that fails, there must be an issue with twisted on your setup. Another try: pip3 install -U twisted[tls] You might find some info at https...
by moroen
Tuesday 12 September 2017 20:02
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

I have reinstalled domoticz (RPi B+, with stable Version 3.8153) Python 3.4.5 Now there is another type of error AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1' There might be a problem with openssl, could you try to upgrade to latest openssl and latest openssl-libs? And this might...
by moroen
Monday 11 September 2017 14:44
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

There's definitely something wrong with your twisted install, you should be able to import twisted from interactive python... Try forcing an update? $ pip3 install --upgrade twisted Regards, M [email protected]:~/domoticz/plugins/IKEA-Tradfri $ python3 tradfri.tac Traceback (most recent call last): File "tradf...
by moroen
Sunday 10 September 2017 22:47
Forum: Bugs and Problems
Topic: Beta 3.890 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x
Replies: 8
Views: 521

Re: Beta 3.890 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x

Python-plugins have been disabled in code since 26. aug. The subsystem for python-event-scripts has not been likewise disabled, but since it depends on the dynamic loading of the python-library done by the plugin-system, python-events fails on startup, hence the error message... I have no knowledge ...
by moroen
Sunday 10 September 2017 17:44
Forum: Python
Topic: Python plugins disabled in latest betas... any hope for a fix ?
Replies: 5
Views: 724

Re: Python plugins disabled in latest betas... any hope for a fix ?

When python-plugins got disabled in the beta-branch, the python-event system got disabled as well, since both uses the same dynamically loaded library. So python event-scripts fails regardless of whether python is installed or not. When and if python-plugins and python-events get reinstated, I have ...
by moroen
Wednesday 06 September 2017 19:16
Forum: Python
Topic: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Replies: 68
Views: 6861

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

There's a new version of the IKEA-plugin available on the github page: https://github.com/moroen/IKEA-Tradfri-plugin. The major change is support for groups. Groups defined in Ikea's app now appears to domoticz as regular switches, that supports turning on/off, dimming and observation of state chang...
by moroen
Tuesday 22 August 2017 22:26
Forum: Python
Topic: Python Eventsystem: (constantly restarting) Module not found - What´s wrong?
Replies: 3
Views: 377

Re: Python Eventsystem: (constantly restarting) Module not found - What´s wrong?

2017-08-18 18:22:05.360 Python EventSystem: Module not found - Trying to initialize. 2017-08-18 18:22:05.363 Python EventSystem: Initalizing event module. This is normal behaviour, but only once as domoticz starts up/on executing a pyhon event-script for the first time. The "Module not found"-messa...
by moroen
Friday 11 August 2017 0:37
Forum: Python
Topic: Problem with Python based Events
Replies: 12
Views: 840

Re: Problem with Python based Events

Moroen, thanks for the reply. Makes total sense. I've made a script in the /scripts/python directory called: "script_time_test.py" with the contents being the same as the "script_time_demo.py" but that doesn't work either. I'm supposed to see those messages in the Log console right? Yes, that's cor...
by moroen
Friday 11 August 2017 0:36
Forum: Python
Topic: Problem with Python based Events
Replies: 12
Views: 840

Re: Problem with Python based Events

Moroen, thanks for the reply. Makes total sense. I've made a script in the /scripts/python directory called: "script_time_test.py" with the contents being the same as the "script_time_demo.py" but that doesn't work either. I'm supposed to see those messages in the Log console right? Yes, that's cor...
by moroen
Thursday 10 August 2017 21:33
Forum: Python
Topic: Problem with Python based Events
Replies: 12
Views: 840

Re: Problem with Python based Events

Thanks for getting back to me. I understand the concept of Events. I've fiddled around with the LUA one and that one works fine. I did what you said, used the default Event for Python but that doesn't do anything either. Trying to 'import domoticz' in my test.py in the /scripts/python directory thr...