# Tuya Integration

## 1. Prerequisite:

Before you begin, please ensure that you have accessed the Home Automation (HA) page. If you are not familiar with how to access the HA service on your iSG device, I recommend referring to the following article ([Start Home Assistant](/isg/advanced-features/home-assistant/accessing-home-assistant.md)), which provides detailed steps and instructions on how to access the HA service.

## 2. To add Tuya devices:

1. Click on Settings - Devices & services - ADD INTEGRATION - search for Tuya - select "Tuya"

<figure><img src="/files/dTfGddMKwUCROh1CqGye" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/c7q86SzARaykTii0eiyu" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/PIQK0r2NNvLEhPdFx9ze" alt=""><figcaption></figcaption></figure>

2. Open the Tuya app, go to Me" → "Settings" → "Account and Security" to find the "User Code", then fill it into the input box and click "SUBMIT".

<figure><img src="/files/hn1io62WW5z3OZzYnZcU" alt=""><figcaption></figcaption></figure>

3. After the QR code appears as shown in the figure, use the Tuya APP to scan the QR code to authorize HA to log in and access your Tuya devices. Then click "SUBMIT" in HA.

<figure><img src="/files/14VhhxJXyqLLZM9M5itK" alt=""><figcaption></figcaption></figure>

4. This way, you can successfully import Tuya devices into HA without the need to reconfigure them.

<figure><img src="/files/F9vEqBNEN5P3TsslaTpz" alt=""><figcaption></figcaption></figure>

5. You can try to control the devices within the HA software to see if they respond normally.

<figure><img src="/files/JIclnWhUM9TS59qmLzaS" alt=""><figcaption></figcaption></figure>

6. Finally, go back to iSG "Device" → "+" → "Home Assistant," to select the devices you want to add to iSG.

<figure><img src="/files/8CM7owaXPqBfbHfNEl7S" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.linknlink.com/isg/advanced-features/home-assistant/add-devices-in-home-assistant/ha-official-integrations/tuya-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
