Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?
Posted: Sunday 18 March 2018 20:46
I'm trying to install this plugin.
libcoap is working. I get the correct output from
coap-client -m post -u "Client_identity" -k "GATEWAY-KEY" -e '{"9090":"IDENT"}' "coaps://IP:5684/15011/9063"
pytradfri library, plugin (development branch), twisted installed without errors
moved pytradfri to a subfolder of IKEA-Tradfri
Step 6. Enable COAP-adaptor fails:
I can't find the reason. Any help is very welcome
libcoap is working. I get the correct output from
coap-client -m post -u "Client_identity" -k "GATEWAY-KEY" -e '{"9090":"IDENT"}' "coaps://IP:5684/15011/9063"
pytradfri library, plugin (development branch), twisted installed without errors
moved pytradfri to a subfolder of IKEA-Tradfri
Step 6. Enable COAP-adaptor fails:
Code: Select all
sudo python3 tradfri.tac
Traceback (most recent call last):
File "tradfri.tac", line 2, in <module>
from twisted.internet import protocol, task, reactor, endpoints
File "/usr/local/lib/python3.4/dist-packages/twisted/internet/reactor.py", line 38, in <module>
from twisted.internet import default
File "/usr/local/lib/python3.4/dist-packages/twisted/internet/default.py", line 56, in <module>
install = _getInstallFunction(platform)
File "/usr/local/lib/python3.4/dist-packages/twisted/internet/default.py", line 44, in _getInstallFunction
from twisted.internet.epollreactor import install
File "/usr/local/lib/python3.4/dist-packages/twisted/internet/epollreactor.py", line 24, in <module>
from twisted.internet import posixbase
File "/usr/local/lib/python3.4/dist-packages/twisted/internet/posixbase.py", line 18, in <module>
from twisted.internet import error, udp, tcp
File "/usr/local/lib/python3.4/dist-packages/twisted/internet/tcp.py", line 28, in <module>
from twisted.internet._newtls import (
File "/usr/local/lib/python3.4/dist-packages/twisted/internet/_newtls.py", line 21, in <module>
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "/usr/local/lib/python3.4/dist-packages/twisted/protocols/tls.py", line 63, in <module>
from twisted.internet._sslverify import _setAcceptableProtocols
File "/usr/local/lib/python3.4/dist-packages/twisted/internet/_sslverify.py", line 38, in <module>
TLSVersion.TLSv1_1: SSL.OP_NO_TLSv1_1,
AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'