Hass.io error while connecting to IKEA Tradfri gateway

Same here - Ikea pushed an update and it’s no longer appearing in my HA.

I am also getting the same error. Only just set up Hassio on a Rasberry Pi so was not sure it way something I did.

Looks like the update enabled HomeKit and Alexa Integration

Same here.

Same here :frowning:

Same here :frowning:

It’ll be fixed this weekend:

IKEA changed the protocol. Some info here https://www.npmjs.com/package/node-red-contrib-tradfri
BR

Hi!

I have updated my TRADFRI GW yesterday, it went just fine but today I am getting errors again. Is there some fix?

Blockquote
2017-11-05 17:36:48 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File “/usr/lib/python3.6/asyncio/tasks.py”, line 179, in _step result = coro.send(None) File “/usr/lib/python3.6/site-packages/homeassistant/components/tradfri.py”, line 66, in configuration_callback psk = yield from api_factory.generate_psk(callback_data.get(‘key’)) File “/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py”, line 193, in generate_psk self._psk = yield from self.request(command) File “/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py”, line 149, in request result = yield from self._execute(api_commands) File “/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py”, line 141, in _execute api_command.result = _process_output(res, parse_json) File “/usr/lib/python3.6/site-packages/pytradfri/command.py”, line 71, in result self._result = self._process_result(value) File “/usr/lib/python3.6/site-packages/pytradfri/gateway.py”, line 28, in process_result return result[ATTR_PSK] TypeError: ‘NoneType’ object is not subscriptable

I gave up on HomeAssistant + Tradfri as I couldn’t get it working. I reverted back to using Node-red for my automation for the time being.

The node-red interface for Tradfri now works an I got the impression that there will soon be an update also for HA.

When it comes to the Tradfri GW I unfortunately have had one more lock-up of th GW.
BR

Edit: Several years later now and a LOT of node-red flows, now going all in for Home assistant. Brought a handful of useful nore-red flows with me to Home assistant.

I have upgraded to 0.57.1 and get APIFacory errors.
Looks like something isn’t installed! Traceback (most recent call last): File “/usr/lib/python3.6/site-packages/homeassistant/components/tradfri.py”, line 60, in configuration_callback from pytradfri.api.aiocoap_api import APIFactory

looks like an encryption error,
I suggest removing .tradfri_conf in the config folder and reconfiguring your gateway after a reboot

I tried just now, did not make a difference. I also tried to touch the file same error. Strace did not tell me much eighter.

There were a few issues opened on github concerning tradfri, I guess they will be solved in the next HASS version

Cool, I will wait for the update :grinning:

Update 0.57.2 doesnt seem to be the trick. I cant get the configuration to work with my Trådfri gateway right now. Is it worth troubleshooting or is it a known issue?

I got it working. There was a pytradfri dir in the deps dir in my config dir. After removing that it works.

lucky you… :frowning:
deleted file in config folder… no folder in deps… and still a no go

Traceback (most recent call last):
File “/usr/lib/python3.6/asyncio/tasks.py”, line 179, in _step
result = coro.send(None)
File “/usr/lib/python3.6/site-packages/homeassistant/components/tradfri.py”, line 66, in configuration_callback
psk = yield from api_factory.generate_psk(callback_data.get(‘key’))
File “/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py”, line 193, in generate_psk
self._psk = yield from self.request(command)
File “/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py”, line 149, in request
result = yield from self._execute(api_commands)
File “/usr/lib/python3.6/site-packages/pytradfri/api/aiocoap_api.py”, line 141, in _execute
api_command.result = _process_output(res, parse_json)
File “/usr/lib/python3.6/site-packages/pytradfri/command.py”, line 71, in result
self._result = self._process_result(value)
File “/usr/lib/python3.6/site-packages/pytradfri/gateway.py”, line 28, in process_result
return result[ATTR_PSK]
TypeError: ‘NoneType’ object is not subscriptable

tradfri gateway fw version you guys are using?
1.2.42 here

Same here. gateway firmware version 1.2.42 .
I’m able to use the Tradfri component on a development board with Docker on CentOS, that has same hassio version (0.57.2).