IKEA Trådfri: Internet of Things done right

Last month IKEA released a new home automation lineup called Trådfri. It consists of white bulbs, dimming remotes, color temperature remotes and motion sensors. After almost two weeks of research, we have come to the conclusion that this is going to be the perfect companion hardware to work with Home Assistant. Here is the gist of our breakdown:

  • Works out of the box. You can get started by just buying the already paired light and remote. You only need to buy the gateway if you want to set time-based rules for your lights or use your phone as a remote.
  • Local only hub. No cloud that gathers data about how you live your life and it will keep working even if IKEA stops supporting it.
  • Based on open standards. It uses Zigbee between devices and CoAP/dTLS to talk to the gateway. This means that you are not locked into a single vendor. You can pair it with Philips Hue bulbs and other compatible vendors.
  • Affordable. Lights start at $12 standalone and $20 if bundled with a remote (USA prices).
  • Useful design. The gateway has built-in space to hide excess cables and remotes come with magnetic holders for on the wall.
  • Able to subscribe to changes (local push). Automations will be able to instantly respond to changes to device states by subscribing to the gateway for changes.
  • Full integration in Home Assistant 0.43 (scheduled for release April 22). Our community built a standalone library pytradfri and we use it in Home Assistant. Home Assistant will automatically discover gateways on your network and guide the user to set them up.
  • Downside: no integration with other systems yet. There are rumors that Homekit support will land in October and I expect both Google Home and Amazon Echo to eventually add support. Use Home Assistant to connect them all in the meanwhile.
  • Semi-downside: you can’t control your lights remotely. Because it’s local only, you won’t be able to control your lights remotely unless via a third-party integration.

Full breakdown available after clicking read more.

(Note: we are not affiliated with IKEA nor do we receive commission for sales. We are just big fans of their new line up!)

Works out of the box

IKEA Trådfri focuses on the basics: making a product that works out of the box. They sell various dimming kits. Each contain a light and a remote paired to control the light. You put the light into the socket, slide the battery into the remote and. it. works. No need to purchase a gateway, download an app and use your phone to set it up. Heck, you don’t even need internet to get started!

You will only need to buy the gateway if you want to use your phone as a remote or set up home automation.

Only works locally

The gateway only works locally. It only reaches out to the internet to synchronize the time and to check for firmware updates. This is awesome for many different reasons.

Privacy & Security. No one but yourself will have access to the state of your house. And inside your house your communication with the gateway is encrypted.

Reliability & Speed. All communication will always happen locally. Even if your internet will go out, you can still control your lights and your automations will still run. Even if IKEA would decide to drop support it will still continue to work.

Check out this blog post by Matthew Garrett for a more in-depth analysis of the security of the gateway. His conclusion:

Overall: as far as design goes, this is one of the most secure IoT-style devices I’ve looked at. I haven’t examined the COAP stack in detail to figure out whether it has any exploitable bugs, but the attack surface is pretty much as minimal as it could be while still retaining any functionality at all. I’m impressed.

Based on open standards

IKEA Trådfri devices use the open standard Zigbee to communicate. The gateway speaks both Zigbee and connects to your network to offer an API based on the open standard CoAP. The API communication is secured via the open standard DTLS.

Because it’s based on Zigbee, you don’t have to just buy IKEA devices the rest of your life. For example, Philips Hue lights will pair just fine with the IKEA gateway.

Note that there are reports that the other way around, pairing an IKEA light to the Philips Hue hub is currently not possible. IKEA is working on it according to a post by Philips Hue support:

The non-interoperability between the newly launched IKEA smart lighting products and the Philips Hue bridge has been analyzed. One of the issues found is that the IKEA bulbs report their ProfileID as corresponding to the ZigBee Home Automation (ZHA) profile rather than the ZigBee Light Link (ZLL) profile. As the IKEA bulbs do not behave fully compliant with the ZLL standard, they are rejected by the Hue bridge. IKEA is aware of this and informed us their intent is to have the IKEA smart lighting bulbs to work with the Philips Hue bridge.

Affordable

A white IKEA light bulb that just supports dimming starts at $12. You’ll have to shell out $18 If you want a white bulb that can control the light temperature to allow for different shades of white (relax, cool, focus etc). These prices are slightly lower than the competition. Right now on Amazon the cheapest just-dimming white bulbs come in at $15.

However what really differentiates this system is the availability of all the cheap remotes and motion sensors. Ranging between $20 and $27 you get a light and a remote. Standalone Zigbee remotes on Amazon currently start at $21!

Remotes are a very important aspect of home automation. The electricity has to be always on for the bulbs to function so you’ll need Zigbee switches and remotes to control your lights. The fact that they are so cheap will really help with adoption.

![](upload://5jFzdYcKuNFzSvaAfs6Sk41gfTZ.png) Prices of the various available dimming kits.

Useful design

The lights and gateway are all made with a simple design and will easily blend into your home. They did sneak in some great and useful things. You can slide the cover off the gateway and open it up. Inside is a mini case for the actual electronics but mainly it’s just empty space so you can roll up any excess network and usb cable from the hub inside!

![](upload://o8DHbbDc8LwJVdwpIveldeuMHmi.jpeg) The cables you don’t need can be hidden in the gateway.

Another nice feature is that the remote comes with a magnetic mount for the wall.

Able to subscribe to changes (local push)

This is a feature that I am really excited about. By being able to subscribe to changes in the Zigbee network Home Assistant will be able to instantly be notified about changes and trigger automations if necessary.

This means that you will be able to turn the power on for a light and see it instantly turn on in Home Assistant.

(Learn more about the different ways IoT devices broadcast changes)

Full integration in Home Assistant 0.43 (scheduled for release April 22)

Home Assistant will automatically discover gateways on your network and guide the user to set them up.

Once IKEA Trådfri got released, our community, lead by Patrik, got quickly organized and started analyzing the different aspects in our forums. I am happy to say that the end result is a standalone Python library pytradfri to control the gateway. This means that starting from our next release, Home Assistant 0.43, we will auto discover your gateway and integrate all your lights.

The initial version of our integration will not yet stream events from the gateway. We’re still working on figuring out that part of the API.

![](upload://fwtpmcp3IJkVeaLlJkeggNTJ209.png) After automatic discovery, Home Assistant will ask the user to finish pairing with the gateway.

Downside: not many integrations yet

The one major downside right now is that there are not many integrations yet because the system is brand new. There are rumors that Homekit is planned for October. And given the way the API is set up, I expect Google Home and Amazon Echo (Alexa) to eventually announce integration too.

Since Home Assistant does integrate with it, you can use Home Assistant to bridge to these systems. For Homekit use Homebridge with the Home Assistant plugin. For integration with Google Home and Amazon Echo use the Emulated Hue component. For Google Home you can also use the API.ai integration and Amazon Echo can also work with Haaska.

Semi-downside: you can’t control your lights remotely

Because the system is local only, you won’t be able to control your lights remotely. As with the previous downside, you will be able to use Home Assistant to make your system available remotely.

Classified this as a semi-downside because besides showing off, the actual use cases are very rare. Although it makes great marketing material.

Conclusion

With Trådfri, IKEA has managed to put out an affordable and secure home automation system that does not compromise on functionality or design. There are still some downsides which I expect to get resolved in the future.

As it currently stands, this is going to be the perfect companion hardware to work with Home Assistant: local, affordable, secure. And as cherry on the pie, local push will make us aware of changes right away.


This is a companion discussion topic for the original entry at https://home-assistant.io/blog/2017/04/17/ikea-tradfri-internet-of-things-done-right/
3 Likes

Can Trådfri bulbs be used via non-Ikea zigbee gateways?

I use them with zigbee2mqtt. Conbee supports them too. You can add them to a Hue bridge. So : yes.

Can you not just connect KNX/Loxone and IKEA Tradfri to Home Assistant and control everything from Home Assistant? I don’t see a reason to have another piece of hardware/software in the middle. Also 500 bucks for a Home Automation Hub is a lot of money, for this I get a decent Intel NUC, which is capable of way more things than “just” connecting KNX/Loxone and IKEA Tradfri.

Sounds to me like a paid alternative to Home Assistant? Does the 1Home Box work through the cloud or local?

I really think you are in the wrong thread mate.

No there was a post from a guy working for 1home, now his posts got removed, probably because it was advertisment.

Ahhh great I see. Good to see spam removed…

Hello, dumb question here:
I bought an “IKEA TRÅDFRI gateway” and connected it to my network.
I’ve also got an " SYMFONISK Sound Controller" and a “TRADFRI remote control”
Homeassistant automagically discovered the new gateway, and after adding the proper integration I now have 2 new sensors: the battery for each device.
And that’s it.
My goal would be to have capture events from the controllers and do custom things.
The best would be having their events in node-red, so I can use my js foo.

Googling around found lots about 3rd party solutions:
ZiGate, Deconz, Zigbee sticks, etc.
Searching for how to use a TRÅDFRI gateway, I only found examples with the lights but none with buttons :frowning:

Can someone point me in the right direction on how to use my Ikea buttons with the HW I already have? Or perhaps point me to some documentation explaining why I can’t use the IK gateway :slight_smile:

thank you

When you look at the device screen, do you see Automations and a + next to it? Try the +, there should be the ability to add autmations based on events from the buttons.

1 Like


not really, this is all I see under the Ikea Integration’s devices.

and these are the entities.

Also, I’m not much a fan of HA’s silly yaml based language, it’s too finicky and frustrates me so I’d rather have my automation in node-red or apple’s homekit.

You don’t need to do it in YAML, Nick told you how to do it in the UI.
Go to Configurations -> Devices and then click in one of the devices.


well, that was quite anticlimactic: as expected the only exposed function is the battery level.

Let me rephrase my question:

  • I’m not looking for “how to build automations”
  • I am looking for “how to have the TRÅDFRI gateway expose all the button’s functionalities and not only the battery level” :slight_smile:

And since my searching was unsuccessful in finding any extended kind of info on this gateway, in case this is not possible to achieve what I need, I’d like to understand why it’s not possible for sake of personal knowledge.

Thank you

Perhaps you are looking for Controllerx? https://xaviml.github.io/controllerx/
Also I believe there is a blueprint for the Ikea remote control. In the blueprints section of this forum.

2 Likes

Did you try going Developer Tool -> Events and enter a star in the listenibg box and oress start listening, then press a button on the remove and see if you receive an event. That’s how it works with deconz, zha and zigbee2mqtt.

This is not possible as the Ikea Tradfri gateway doesn’t expose button presses to HA. Your only option is to get a compatible Zigbee stick (I would recommend something like the Conbee2) and connect your tradfri devices up to HA directly or through something like Zigbee2MQTT or other gateway (deCONZ or the built-in ZHA).

Honestly, if you go with something like Zigbee2MQTT or deCONZ, you can basically throw the gateway into a drawer and forget it exists as they both do OTA firmware updates for Ikea devices now.

2 Likes

I don’t understand your concept of home automation … having a smart lamp means leaving the button / relay or switch of the existing system on in order to then turn on the smart lamp and therefore with little manipulation. these brands are created for those who have no possibility of making changes or for those who are unable to tamper with the existing system … therefore managing an automated system at home means having all the management of actuators, sensors inputs, etc. upstream as main commands of the 'plant itself … otherwise you risk going crazy with various protocols and various products scattered around the house.
I prefer only one management firmware … esphome mainly … nodes that speak the same language I mean … therefore to say that this Ikea product is a complete home automation product for me is not at all.

I agree home automation is “the house does things by its self”, as well I prefer relays that don’t break the current house user experience rather than smart light bulbs (where you need to stop using your light switches for everything to work seamlessly).

Never the less the little puck full of buttons looks like a fun little gadget with fun possibilities.

You can’t with the Ikea gateway. In the Ikea system, you have to connect your remotes directly to lights, the gateway does not expose the buttons. Stupid system, but that is how Ikea works.
You need another gateway for the buttons to be exposed : ZHA, Zigbee2MQTT, Deconz, …

2 Likes

OK my similar functionality Opple 6 button controller (https://www.zigbee2mqtt.io/devices/WXCJKG13LM.html) through Zigbee2mqtt shows a lot more functionality!

You Tradfri device would do the same through Z2M too, assuming it is this one https://www.zigbee2mqtt.io/devices/E1524_E1810.html

Like it or not, this is how button press devices are dealt with in home assistant - pressing the button generates an event.

1 Like