Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tuya documentation #180

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions docs/integrations/tuya.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
id: tuya
title: Tuya
sidebar_label: Tuya
---

## Connect Tuya in Gladys

1. Create an account on [iot.tuya.com](http://iot.tuya.com).

2. Create a new cloud project in the « Cloud » → « Development » → « Create Cloud Project » section.

![Tuya Gladys integration, create cloud project](../../static/img/docs/en/configuration/tuya/create-cloud-project.jpg)

3. Choose a name for your project, and fill in the different fields:

* Project Name : Name of your project (for example "Gladys");
* Industry : Smart Home ;
* Development method : Smart Home ;
* Data Center : Central Europe Data Center (even if you live in Western Europe, it's better, otherwise select the datacenter closest to you).

Click on « Create ».

![Tuya Gladys integration, create project](../../static/img/docs/en/configuration/tuya/create-project.png)


4. Authorize the following API services:
(It's selected by default)
* IoT Core
* Authorization Token Management
* Smart Home Scene Linkage
* Data Dashboard Service

![Tuya Gladys integration, select api services](../../static/img/docs/en/configuration/tuya/select-api-services.png)

5. Copy the information from "Access ID" and "Access Secret" in Gladys

![Tuya Gladys integration, access id and access secret](../../static/img/docs/en/configuration/tuya/access-secret-key.jpeg)

6. Go to the Devices tab then Link Tuya App Account and click on the Add App Account button on the right.

![Tuya Gladys integration, lint account](../../static/img/docs/en/configuration/tuya/link-account.png)

7. Scan the QR Code with your Smart Life application by going to Profile then on the code scanner at the top right.

![Tuya Gladys integration, qr code](../../static/img/docs/en/configuration/tuya/qr-code.png)

8. Select Automatic Link then Read, Write and Manage and validate with OK.

![Tuya Gladys integration, link account auth](../../static/img/docs/en/configuration/tuya/link-account-auth.png)

9. Copy the information "App account UID" in Gladys

![Tuya Gladys integration, app account uid](../../static/img/docs/en/configuration/tuya/link-account-auth.png)

10. Save the configuration on Gladys, go to the "Tuya Discovery" tab and TADAM... your devices have appeared 🙂

![Tuya Gladys integration, save configuration](../../static/img/docs/en/configuration/tuya/save-configuration.jpeg)


## FAQ
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
id: tuya
title: Tuya
sidebar_label: Tuya
---

## Connecter Tuya à Gladys

1. Créer un compte sur [iot.tuya.com](http://iot.tuya.com).

2. Créer un project cloud dans la section « Cloud » → « Development » → « Create Cloud Project »

![Tuya Gladys integration, create cloud project](../../../../../static/img/docs/en/configuration/tuya/create-cloud-project.jpg)

3. Choisissez un nom de projet, renseignez les différents champs :

* Project Name : Le nom de votre project (ex: Gladys)
* Industry : Smart Home ;
* Development method : Smart Home ;
* Data Center : Central Europe Data Center (même si vous vivez en Europe de l’Ouest, c’est mieux, sinon sélectionnez le datacenter le plus proche de chez vous).

Cliquez sur « Create ».

![Tuya Gladys integration, create project](../../../../../static/img/docs/en/configuration/tuya/create-project.png)


4. Autorisez les services API suivants :
(Elles sont normalement sélectionnées par default)
* IoT Core
* Authorization Token Management
* Smart Home Scene Linkage
* Data Dashboard Service

![Tuya Gladys integration, select api services](../../../../../static/img/docs/en/configuration/tuya/select-api-services.png)

5. Copier les informations d’« Access key » et de « Secret Key » dans Gladys

![Tuya Gladys integration, access id and access secret](../../../../../static/img/docs/en/configuration/tuya/access-secret-key.jpeg)

6. Allez sur l’onglet Devices puis Link Tuya App Account et cliquez sur le bouton Add App Account à droite.

![Tuya Gladys integration, lint account](../../../../../static/img/docs/en/configuration/tuya/link-account.png)

7. Scannez le QR Code avec votre application Smart Life en vous rendant dans Profil puis sur le scanner de codes situé en haut à droite.

![Tuya Gladys integration, qr code](../../../../../static/img/docs/en/configuration/tuya/qr-code.png)

8. Sélectionnez Automatic Link puis Read, Write and Manage et validez avec OK .

![Tuya Gladys integration, link account auth](../../../../../static/img/docs/en/configuration/tuya/link-account-auth.png)

9. Copier l’information « App account UID » dans Gladys.

![Tuya Gladys integration, app account uid](../../../../../static/img/docs/en/configuration/tuya/link-account-auth.png)

10. Enregistrer la configuration sur Gladys, allez dans l’onglet « Découverte Tuya » et TADAM… vos appareils sont apparus 🙂

![Tuya Gladys integration, save configuration](../../../../../static/img/docs/en/configuration/tuya/save-configuration.jpeg)

## FAQ
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
"integrations/sonoff",
"integrations/tasmota",
"integrations/tp-link",
"integrations/tuya",
"integrations/philips-hue",
"integrations/mqtt",
"integrations/owntracks",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/docs/en/configuration/tuya/qr-code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.