Hi,
I’m using HASSIO 0.62.1 and Im trying to configure IKEA Tradfri Gateway with latest firmware - 1.3.14
I’ve assigned static IP in the DHCP server for the gateway, configured the remote control and bulbs. Even got Alexa (Echo Dot) to work with it. I’m encountering problems connecting it to HA. I’ve tried rebooting HA, rebooting GW, resetting GW (both from iOS app and from reset button). Still no luck.
This is the HA log file:
2018-02-07 21:08:16 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2018-02-07 21:08:16 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall configurator.configure: configure_id=ID_PLACED_HERE-1, fields=security_code=SECURITY_CODE_PLACED_HERE>
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py", line 92, in _get_response
r = yield from pr.response
File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/site-packages/aiocoap/protocol.py", line 816, in _run_outer
yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
File "/usr/lib/python3.6/site-packages/aiocoap/protocol.py", line 865, in _run
blockresponse = yield from blockrequest.response
File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
aiocoap.error.RequestTimedOut
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/components/tradfri.py", line 70, in configuration_callback
key = yield from api_factory.generate_psk(security_code)
File "/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py", line 196, in generate_psk
self._psk = yield from self.request(command)
File "/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py", line 152, in request
result = yield from self._execute(api_commands)
File "/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py", line 142, in _execute
_, res = yield from self._get_response(msg)
File "/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py", line 98, in _get_response
raise RequestTimeout('Request timed out.', e)
pytradfri.error.RequestTimeout: ('Request timed out.', RequestTimedOut())
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/configurator.py", line 224, in async_handle_service_call
call.data.get(ATTR_FIELDS, {}))
File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/lib/python3.6/site-packages/homeassistant/components/tradfri.py", line 73, in configuration_callback
"Security Code not accepted.")
TypeError: async_notify_errors() takes 3 positional arguments but 4 were given
Also noticed that after hitting the ‘Configure’ button in HA and this is thrown at the logs, I cannot connect from iOS to GW. I’m succeeding after power-cycle the GW. I guess when I try to configure HA it is stalling the GW…