I’m having some issues getting the the tradfri component working and was hoping fro some help. I’m running HA in a virtual_env setup. Just upgraded to release 0.43 to use this component.
I followed the instructions at this link IKEA Tradfri
One thing that wasn’t clear from the instructions was which direction this procedure is run in. I’ve tried inside the virtual environment area (/srv/homeassistant/) and other places, however I seem to continue to have the same problem. One deviation from the procedure in the link above is using sudo on the make install, otherwise the procedure doesn’t seem to complete properly due to permissions issue. Having said that, during the component setup process I get the following error in my HA log file and of course the component doesn’t load.
17-04-23 00:34:05 INFO (MainThread) [homeassistant.setup] Setting up tradfri
17-04-23 00:34:05 ERROR (MainThread) [homeassistant.setup] Error during setup of component tradfri
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 189, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tradfri.py", line 97, in async_setup
return (yield from _setup_gateway(hass, config, host, key))
File "/usr/lib/python3.5/asyncio/coroutines.py", line 206, in coro
res = func(*args, **kw)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tradfri.py", line 106, in _setup_gateway
api = retry_timeout(cli_api_factory(host, key))
File "/home/homeassistant/.homeassistant/deps/pytradfri/coap_cli.py", line 81, in api_factory
request('get', ['status'])
File "/home/homeassistant/.homeassistant/deps/pytradfri/coap_cli.py", line 50, in request
return_value = subprocess.check_output(command, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 693, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'coap-client'
17-04-23 00:34:05 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=process, domain=conversation>
17-04-23 00:34:05 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=title=Invalid config, notification_id=invalid_config, message=The following components and platforms could not be set up:
* [tradfri](https://home-assistant.io/components/tradfri/)
This is also the setup I have in configuration.yaml:
tradfri:
host: 10.0.1.143
api_key: <REDACTED>
Thanks in advance for any assistance!