[EN] IKEA Tradfri & Apple HomeKit

IKEA just start selling worldwide his new smart light bulbs. And their price is very budget if you compare it to Philips Hue. But there is no native support for HomeKit, so you don’t have an iOS integration, only the IKEA app. But there is one workaround and here is the way to do it:

What you need

  • IKEA Tradfri Light Bulb
  • IKEA Tradfri GateWay
  • IKEA Tradfri Remote
  • Raspberry PI (any, tested on Pi 3 B)

Step by step tutorial

  1. Firstly, you must install light bulbs and the gateway the classic way IKEA recommends, don’t forget to add you Light Bulbs via Remote Controller (Here is how)
  2. Install and prepare Raspberry with Raspbian OS (Here is how)
  3. Open Terminal in Raspbianu and paste this commands one by one:
$ sudo apt-get update  
$ sudo apt-get upgrade  
$ sudo apt-get install git make  
$ curl -sL [https://deb.nodesource.com/setup\_7.x](https://deb.nodesource.com/setup_7.x) | sudo -E bash -  
$ sudo apt-get install -y nodejs  
$ sudo apt-get install libavahi-compat-libdnssd-dev  
$ sudo npm install -g --unsafe-perm homebridge  
$ sudo npm install -g homebridge-tradfri  
$ sudo apt-get install libtool git build-essential autoconf automake  
$ git clone --recursive https://github.com/obgm/libcoap.git  
$ cd libcoap  
$ git checkout dtls  
$ git submodule update --init --recursive  
$ ./autogen.sh  
$ ./configure --disable-documentation --disable-shared  
$ make  
$ sudo make install  
$ cd ..  
$ homebridge

Press CTRL + C after command is done:

$ cd .homebridge4. 

Now we have installed all software we need for Bulbs controlling (HomeBridge with Tradfri plugin). The last command you type gets you to. Homebridge folder where is config we need to edit to connect Bridge. Now you have to read Secret Code at the back of your IKEA GateWay don’t forget its Case Sensitive.

Now you have everything you need. So open terminal again and paste this command to edit the config of the HomeBridge connection.

$ nano config.json

This command opens the editor. Delete all text if there is any and paste this:

{  
 "bridge": {  
 "name": "Homebridge",  
 "username": "CC:22:3D:E3:CE:22",  
 "port": 51826,  
 "pin": "123-45-678"  
 },  
 "platforms": [  
 {  
 "platform": "Tradfri",  
 "name": "Tradfri",  
 "psk": "Security Code from GateWay",  
 "coapClientPath": "/usr/local/bin/coap-client"  
 }  
 ]  
}

Now press ctrl + x, Y and ENTER for save this file. Now just call this last command.

$ homebridgeHomeBridge starts and shows you code you use for pairing in Home iOS app.

If you find any error, you can tweet me here or make new Issue in developers GitHub.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s