mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Add configuration vars and other small changes
This commit is contained in:
parent
91a6fd523d
commit
bd0d25aacc
@ -13,6 +13,5 @@ ha_iot_class: "Local Polling"
|
|||||||
ha_release: 0.43
|
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/
|
|
||||||
|
@ -14,19 +14,19 @@ ha_iot_class: "Local Polling"
|
|||||||
ha_release: 0.43
|
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
|
```bash
|
||||||
apt-get install libtool
|
$ sudo apt-get install libtool
|
||||||
|
|
||||||
git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
|
$ git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
|
||||||
cd libcoap
|
$ cd libcoap
|
||||||
./autogen.sh
|
$ ./autogen.sh
|
||||||
./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
|
$ ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr"
|
||||||
make
|
$ make
|
||||||
make install
|
$ make install
|
||||||
```
|
```
|
||||||
|
|
||||||
To enable these lights, add the following lines to your `configuration.yaml` file:
|
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
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
tradfri:
|
tradfri:
|
||||||
host: 192.168.0.129
|
host: IP_ADDRESS
|
||||||
api_key: <on back of gateway>
|
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user