Add config flow and device registry to Tuya integration (#13389)

This commit is contained in:
ollo69 2020-05-11 11:11:19 +02:00 committed by GitHub
parent 87b47d1872
commit 06ce868a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: