As far as I can tell, it fails because the ports are in use. Are you sure you dont't have the adapter already running as a service? And alas, as of yet, changing the ports of the adapter fails on the plugin side, unless you also have changed the port-number in plugin.py?jeroenze wrote: ↑Saturday 12 October 2019 17:35 Hi! Also from the NL and starting with Domoticz, however with a little bit of Linux knowledge... but your manual is pretty good to follow.
I have installed everything and I also get response from the Tradfri gateway & it displays as a plugin in the Domoticz interface. However it doesn't list any devices.
In the debug via ssh it says the following:As you can see I already tried to change the ports to have it working, but that did not solve the issue.Code: Select all
(myvenv) pi@domoticz:~/domoticz/plugins/IKEA-Tradfri $ tradfri -vv server INFO:Starting IKEA-Tradfri HTTP server 0.2.0 on 127.0.0.1:8086 ERROR:Task exception was never retrieved future: <Task finished coro=<tcp_server.main() done, defined at /home/pi/domoticz/plugins/IKEA-Tradfri/myvenv/lib/python3.7/site-packages/ikeatradfri-0.0.1-py3.7.egg/ikeatradfri/tcp_server.py:244> exception=OSError(98, "error while attempting to bind on address ('127.0.0.1', 1235): address already in use")> Traceback (most recent call last): File "/home/pi/domoticz/plugins/IKEA-Tradfri/myvenv/lib/python3.7/site-packages/ikeatradfri-0.0.1-py3.7.egg/ikeatradfri/tcp_server.py", line 249, in main self.handle_echo, hostConfig["Server_ip"], hostConfig["Tcp_port"] File "/usr/lib/python3.7/asyncio/streams.py", line 114, in start_server return await loop.create_server(factory, host, port, **kwds) File "/usr/lib/python3.7/asyncio/base_events.py", line 1378, in create_server % (sa, err.strerror.lower())) from None OSError: [Errno 98] error while attempting to bind on address ('127.0.0.1', 1235): address already in use ERROR:Task exception was never retrieved future: <Task finished coro=<start() done, defined at /home/pi/domoticz/plugins/IKEA-Tradfri/myvenv/lib/python3.7/site-packages/ikeatradfri-0.0.1-py3.7.egg/ikeatradfri/http_server.py:18> exception=OSError(98, "error while attempting to bind on address ('127.0.0.1', 8086): address already in use")> Traceback (most recent call last): File "/home/pi/domoticz/plugins/IKEA-Tradfri/myvenv/lib/python3.7/site-packages/ikeatradfri-0.0.1-py3.7.egg/ikeatradfri/http_server.py", line 38, in start await site.start() File "/home/pi/domoticz/plugins/IKEA-Tradfri/myvenv/lib/python3.7/site-packages/aiohttp/web_runner.py", line 102, in start reuse_port=self._reuse_port) File "/usr/lib/python3.7/asyncio/base_events.py", line 1378, in create_server % (sa, err.strerror.lower())) from None OSError: [Errno 98] error while attempting to bind on address ('127.0.0.1', 8086): address already in use
Regards,
M