Hi I’m using HA 0.94.4 and my gateway is at 1.8.26.
But home assistant fails to connect to the Gateway, i can connect using the normal Trådfri app and control my lights.
The following can be found in my log:
2019-06-25 18:03:00 INFO (MainThread) [homeassistant.setup] Setting up tradfri
...
2019-06-25 18:03:00 INFO (MainThread) [homeassistant.setup] Setup of domain tradfri took 0.1 seconds.
...
2019-06-25 18:03:01 ERROR (MainThread) [coap] Fatal DTLS error: code 115
2019-06-25 18:03:01 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-06-25 18:03:01 ERROR (MainThread) [coap] Fatal DTLS error: code 115
2019-06-25 18:03:01 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-06-25 18:03:01 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-06-25 18:03:01 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-06-25 18:03:01 ERROR (MainThread) [homeassistant.components.tradfri] Tradfri setup failed.
...
2019-06-25 18:03:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiocoap/transports/tinydtls.py", line 141, in _run
remote_addr=(self._host, self._port),
File "uvloop/loop.pyx", line 2961, in create_datagram_endpoint
File "uvloop/loop.pyx", line 2958, in uvloop.loop.Loop.create_datagram_endpoint
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiocoap/transports/tinydtls.py", line 169, in _run
self.coaptransport.new_error_callback(-1, self)
File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 203, in _dispatch_error
for key, (monitor, cancellable_timeout) in self._active_exchanges.items():
AttributeError: 'NoneType' object has no attribute 'items'
2019-06-25 18:03:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiocoap/transports/tinydtls.py", line 141, in _run
remote_addr=(self._host, self._port),
File "uvloop/loop.pyx", line 2961, in create_datagram_endpoint
File "uvloop/loop.pyx", line 2958, in uvloop.loop.Loop.create_datagram_endpoint
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiocoap/transports/tinydtls.py", line 169, in _run
self.coaptransport.new_error_callback(-1, self)
File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 203, in _dispatch_error
for key, (monitor, cancellable_timeout) in self._active_exchanges.items():
AttributeError: 'NoneType' object has no attribute 'items'
I’m using docker-compose and have the following:
home-assistant:
image: homeassistant/home-assistant:0.94.4
restart: unless-stopped
network_mode: "host"
volumes:
- /home/peter/data/home-assistant:/config
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
devices:
- /dev/ttyUSB0
- /dev/ttyACM0
extra_hosts:
- "tradfri:192.168.0.17"
My trådfri configuration:
tradfri:
host: tradfri
allow_tradfri_groups: true
All devices are marked as (entity unavailable)
:
I have also tried to restart the gateway and home assistant.
What could be wrong?