Skip to content

Commit ab74956

Browse files
committed
Update tradfri installation instructions
1 parent 415306e commit ab74956

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

source/_components/tradfri.markdown

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,42 @@ ha_iot_class: "Local Polling"
1414
ha_release: 0.43
1515
---
1616

17-
The `tradfri` component supports for the IKEA Trådfri (Tradfri) gateway. The gateway can control lights connected to it and Home Assistant will automatically discover its presence on your network.
17+
The `tradfri` component supports for the IKEA Trådfri (Tradfri) gateway. The gateway can control lights connected to it and Home Assistant will automatically discover its presence on your network.
1818

19-
For this to work, you need to install a modified lib-coap library.
19+
For this to work, you need to install `aiocoap` and `tinydtls`.
2020

21-
<p class='note warning'>
22-
This component does **not** work on Windows, as the modified lib-coap doesn't exists for Windows.
23-
</p>
2421
<p class='note'>
2522
If you are using [Hass.io](/hassio/) then just move forward to the configuration as all requirements are already fulfilled.
2623
</p>
2724

28-
Linux:
25+
Installation script:
2926

3027
```bash
31-
$ sudo apt-get install libtool
32-
$ sudo apt-get install autoconf
33-
34-
$ git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
35-
$ cd libcoap
36-
$ ./autogen.sh
37-
$ ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
38-
$ make
39-
$ sudo make install
40-
```
28+
#!/bin/sh
29+
# Installs a modified coap client with support for dtls for use with IKEA Tradfri
4130

42-
macOS:
31+
# Stop on errors
32+
set -e
4333

44-
```bash
45-
$ brew install libtool
46-
$ brew install autoconf
47-
$ brew install automake
48-
$ git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
49-
$ cd libcoap
50-
$ ./autogen.sh
51-
$ ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
52-
$ make
53-
$ make install
34+
python3 -m pip install cython
35+
36+
cd /usr/src/app/
37+
mkdir -p build && cd build
38+
39+
git clone --depth 1 https://git.fslab.de/jkonra2m/tinydtls
40+
cd tinydtls
41+
autoreconf
42+
./configure --with-ecc --without-debug
43+
cd cython
44+
python3 setup.py install
45+
46+
cd ../..
47+
git clone https://github.com/chrysn/aiocoap
48+
cd aiocoap
49+
git reset --hard 3286f48f0b949901c8b5c04c0719dc54ab63d431
50+
python3 -m pip install .
5451
```
52+
5553
You will be prompted to configure the gateway through the Home Assistant interface, Enter the security key when prompted and click configure
5654

5755
<p class='note'>

0 commit comments

Comments
 (0)