From e64ad7252f7872429914ac064be7a719e60ebae8 Mon Sep 17 00:00:00 2001 From: Florian Klien Date: Fri, 3 Nov 2017 07:08:27 +0100 Subject: [PATCH] removed cython dependency, removed api_key conf (#3875) * removed cython dependency, removed api_key conf Cython is pulled in by DTLSSocket since 1.0.4 no need for manual install fixed with home-assistant/home-assistant#10123 removed the api_key parameter relates to home-assistant/home-assistant#10282 * Minor changes --- source/_components/tradfri.markdown | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/source/_components/tradfri.markdown b/source/_components/tradfri.markdown index f5f67d7b68e..1ce20d6a0c2 100644 --- a/source/_components/tradfri.markdown +++ b/source/_components/tradfri.markdown @@ -14,31 +14,27 @@ ha_iot_class: "Local Polling" ha_release: 0.43 --- -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. +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, if `discovery:` is present in your `configuration.yaml` file. -This component requires cython, please ensure it's installed by running the following in your Home Assistant environment (virtualenv, etc); - -``` -$ pip3 install cython -``` - -You will be prompted to configure the gateway through the Home Assistant interface, Enter the security key when prompted and click configure +You will be prompted to configure the gateway through the Home Assistant interface. Enter the security key when prompted and click configure.

If you see an "Unable to connect" message, restart the gateway and try again. Don't forget to assign a permanent IP to your Trådfri gateway.

-The gateway can also be manually configured by adding the following lines to your `configuration.yaml` file: +You can add the following to your `configuration.yaml` file if you are not using the [`discovery:`](/components/discovery/) component: ```yaml # Example configuration.yaml entry tradfri: 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 listed as Security Key on the back of the Trådfri gateway. - - **allow_tradfri_groups** (*Optional*): (true/false) Enable this to stop Home Assistant from importing the groups defined on the Trådfri bridge. + - **allow_tradfri_groups** (*Optional*): Enable this to stop Home Assistant from importing the groups defined on the Trådfri bridge. Defaults to `true`. + +

+Do not use the `api_key` variable. The key is only needed once at initial setup. +