IKEA Trådfri Gateway [Zigbee]

that’s my only reason too (and I still did not buy it :stuck_out_tongue:)

Right now all implementations I have seen for tradfri are reverse engineered. But IKEA seems to be commited on expanding the current capabilities and providing a proper API. I’m convinced that the functionality will expand in the not so distant future.

3 Likes

good news for owners of a ConBee stick : here the actual compatibility list:

https://www.dresden-elektronik.de/funktechnik/solutions/wireless-light-control/compatibility/?L=1&cHash=c9c902ccdb43164696acccf81b62b2bd

http://dresden-elektronik.github.io/deconz-rest-doc/rest/

Are the state of an IKEA Trådfri bulb reported back, e.g. if turned on or off using a light switch or the Trådfri motion sensor, or are the state assumed?

1 Like

The state is reported back. You can see in HASS when the light is on or off. Regardless how the light was turned on/off.

What I’m really waiting for is to “see” the motion sensor in HASS.

Motion Sensors?

Uhm yeah. The tradfri motion sensors. I’d like to see them in Hass as well.
http://www.ikea.com/us/en/catalog/products/20338944/

Hi everyone, I’m pretty new to Home Automation. Last week I bought a Trådfri starter kit, and have been setting up since then. I’ve managed to install pytrådfri and was able to manage the lights from Ubuntu. My problem came when I bought a Philips Hue Color bulb (no Philips bridge) and tried to manage it using pytrådfri and Trådfri bridge. So far, I was able to turn it on/off but couldn’t change the hue color. Has anybody being to change the hue on a Philip color bulb successfully?
Thanks!

Probably because the pytradfri isn’t able to do full color?

There are no colour Tradfri bulbs, only warm white and tuneable colour temperature white.
I doubt that the gateway will support colour until there are colour bulbs from Ikea.

that makes sense. I was able to change the Philips hue color to the ones the Ikea bulbs allow, but never color. Thanks!

Does anyone know the answer on this?

I bought Tradfri specifically to have a quicker “motion sensor -> turn on light via Hass” solution.

and I was waiting before buying it, for the same :smiley:

The motion sensor works like a remote control. I don’t think that it will communicate with the hub about their status.

If i’m right then there is no chance to integrate it into home assistant.

I read on heise.de (in german) that this system differs from hue and lightify.

Anyone else struggeling with the “FileNotFoundError: [Errno 2] No such file or directory: ‘coap-client’” error?

I’m just about to give up and reinstall HA completely.
I’ve used the component on my hass.io instance, but decided to setup a regular installation because I’m missing alot of stuff in the hass.io, so I know how it works and that it actually works :slight_smile:

I have removed autoconf + libtool, deleted the .git archive from my machine, removed any config lines refering to tradfri, rebooted the server.
I’m running it on a Ubuntu 17.04 Zesty and the latest version of hass running in a python virtual environment

Reseted the gateway (pushed the pinhole for 5 seconds untill it stopped blinking and I had to rescan my remote+lights)

I reinstalled libtool+autoconf, downloaded the git, executed the instructions found at the IKEA tradfri component page.

But i still get below errormessage.

2017-06-29 19:05:38 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tradfri.py”, line 97, in gateway_discovered
allow_tradfri_groups)
File “/usr/lib/python3.5/asyncio/coroutines.py”, line 210, in coro
res = func(*args, **kw)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tradfri.py”, line 116, in _setup_gateway
api = retry_timeout(cli_api_factory(host, key))
File “/home/homeassistant/.homeassistant/deps/pytradfri/coap_cli.py”, line 104, in api_factory
request(‘get’, [‘status’])
File “/home/homeassistant/.homeassistant/deps/pytradfri/coap_cli.py”, line 56, in request
return_value = subprocess.check_output(command, **kwargs)
File “/usr/lib/python3.5/subprocess.py”, line 316, in check_output
**kwargs).stdout
File “/usr/lib/python3.5/subprocess.py”, line 383, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.5/subprocess.py”, line 676, in init
restore_signals, start_new_session)
File “/usr/lib/python3.5/subprocess.py”, line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: ‘coap-client’

If i type

coap-client

in the terminal as normal user (not in virtual environment I get a list of command i can use.
If i stop HA and login as the homeassistant user and activate the virtual enviroment I get the same commands list

If I do a “which coap-client”, this is the results

/usr/local/bin/coap-client

I’ve checked the .py files that shows up in the error logs, but I cant find any pointers to the actual path, so not sure If i need to edit anything there maybe.

Any suggestions?

Just installed a fresh Ubuntu 16.04 server with only the latest hass version running in pything virtual env, then followed the IKEA tradfri component instruction again, and I keep getting the exact same errormessage.

If i dont try to “push” my IP+API key I dont get an errormessage, but if i do either of these two, the message appears… :confused:

  1. Adding the lines to configuration.yaml (with my info of course)
 tradfri:
   host: IP_ADDRESS
   api_key: API_KEY
  1. Or creating a tradfri.conf file in the root folder (same as configuration.yaml) with the line

{"192.168.1.XX": {"key": "xxxxxx"}}

Exactly this configuration is working on the hass.io version, but in that version I didn’t have to use the instruction, I just enabled the tradfri component using any of the 2 ways above.

Hello!
I’m having a problem with only trådfri and I’m assuming that is a little bug.
I can’t use the option scan_interval on the trådfri configuration on configuration.yaml.

More info in this topic: Refresh Time

Thanks

Tried reinstalling it again (10th time now i think), did a apt-get remove --purge of libtool + autoconf before.

When executing the ./autogen.sh command

pi@HomeAssistant:~/libcoap$ ./autogen.sh

[HINT] You can run ‘autogen.sh --clean’ to remove all generated files by the autotools.

Found ‘autoconf’.
Found ‘aclocal’.

Couldn’t find ‘libtool’!
Found ‘libtoolize’.

—> Found all needed tools! That’s fine.

Could this be a reason for my issues?