Skip to content

Commit bd0d25a

Browse files
committed
Add configuration vars and other small changes
1 parent 91a6fd5 commit bd0d25a

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

source/_components/light.tradfri.markdown

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ ha_iot_class: "Local Polling"
1313
ha_release: 0.43
1414
---
1515

16-
For installation instructions, see [the tradfri component][tradfri].
16+
For installation instructions, see [the Trådfri component][/components/tradfri/].
1717

18-
[tradfri]: /components/tradfri/

source/_components/tradfri.markdown

+17-12
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,31 @@ ha_iot_class: "Local Polling"
1414
ha_release: 0.43
1515
---
1616

17-
Support for the IKEA Trådfri (Tradfri) gateway. The gateway can control lights connected to it.
17+
The `tradfri` component supports for the IKEA Trådfri (Tradfri) gateway. The gateway can control lights connected to it.
1818

19-
NB: for this to work, you need to install a modified lib-coap library:
19+
For this to work, you need to install a modified lib-coap library:
2020

2121
```bash
22-
apt-get install libtool
23-
24-
git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
25-
cd libcoap
26-
./autogen.sh
27-
./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
28-
make
29-
make install
22+
$ sudo apt-get install libtool
23+
24+
$ git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
25+
$ cd libcoap
26+
$ ./autogen.sh
27+
$ ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
28+
$ make
29+
$ make install
3030
```
3131

3232
To enable these lights, add the following lines to your `configuration.yaml` file:
3333

3434
```yaml
3535
# Example configuration.yaml entry
3636
tradfri:
37-
host: 192.168.0.129
38-
api_key: <on back of gateway>
37+
host: IP_ADDRESS
38+
api_key: API_KEY
3939
```
40+
41+
Configuration variables:
42+
43+
- **host** (*Required*): The IP address or hostname of your Trådfri gateway.
44+
- **api_key** (*Required*): Can be found on the back of the Trådfri gateway.

0 commit comments

Comments
 (0)