Add configuration vars and other small changes

This commit is contained in:
Fabian Affolter 2017-04-22 11:01:35 +02:00
parent 91a6fd523d
commit bd0d25aacc
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336
2 changed files with 17 additions and 13 deletions

View File

@ -13,6 +13,5 @@ ha_iot_class: "Local Polling"
ha_release: 0.43
---
For installation instructions, see [the tradfri component][tradfri].
For installation instructions, see [the Trådfri component][/components/tradfri/].
[tradfri]: /components/tradfri/

View File

@ -14,19 +14,19 @@ ha_iot_class: "Local Polling"
ha_release: 0.43
---
Support for the IKEA Trådfri (Tradfri) gateway. The gateway can control lights connected to it.
The `tradfri` component supports for the IKEA Trådfri (Tradfri) gateway. The gateway can control lights connected to it.
NB: for this to work, you need to install a modified lib-coap library:
For this to work, you need to install a modified lib-coap library:
```bash
apt-get install libtool
$ sudo apt-get install libtool
git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
cd libcoap
./autogen.sh
./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
make
make install
$ git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
$ cd libcoap
$ ./autogen.sh
$ ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
$ make
$ make install
```
To enable these lights, add the following lines to your `configuration.yaml` file:
@ -34,6 +34,11 @@ To enable these lights, add the following lines to your `configuration.yaml` fil
```yaml
# Example configuration.yaml entry
tradfri:
host: 192.168.0.129
api_key: <on back of gateway>
host: IP_ADDRESS
api_key: API_KEY
```
Configuration variables:
- **host** (*Required*): The IP address or hostname of your Trådfri gateway.
- **api_key** (*Required*): Can be found on the back of the Trådfri gateway.