From 06ce868a299bbd0d2722471dcdffcae7e60c7848 Mon Sep 17 00:00:00 2001 From: ollo69 <60491700+ollo69@users.noreply.github.com> Date: Mon, 11 May 2020 11:11:19 +0200 Subject: [PATCH] Add config flow and device registry to Tuya integration (#13389) --- source/_integrations/tuya.markdown | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/_integrations/tuya.markdown b/source/_integrations/tuya.markdown index b3658811662..04f3048f1a3 100644 --- a/source/_integrations/tuya.markdown +++ b/source/_integrations/tuya.markdown @@ -11,6 +11,7 @@ ha_category: - Switch ha_iot_class: Cloud Polling ha_release: 0.74 +ha_config_flow: true ha_domain: tuya --- @@ -25,7 +26,17 @@ There is currently support for the following device types within Home Assistant: - **Scene** - The device state in frontend panel will not change immediately after you activate a scene. - **Switch** - The platform supports switch and socket. -## Configuration +## Configuration via frontend + +To add your Tuya devices into your Home Assistant installation, go to: + +**Configuration** -> **Integrations** in the UI, click the button with `+` sign and from the list of integrations select **Tuya**. + +During configuration, be careful to select the [country code](https://www.countrycode.org/) and the platform corresponding to those used by you in the app. Once configuration flow is completed, the devices configured in your app will be automatically discovered. + +### Configuration via YAML + +_YAML configuration is still around for people that prefer YAML, but it's deprecated and you should not use it anymore._ To add your Tuya devices into your Home Assistant installation, add the following to your `configuration.yaml` file: