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

Update remote integration docs #1836

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*~
__pycache__
.tox
.idea
tuyadebug/
.pre-commit-config.yaml
.pre-commit-config.yaml
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@ The Cloud API configuration page will appear, requesting to input your Tuya IoT

![cloud_setup](https://github.com/rospogrigio/localtuya-homeassistant/blob/master/img/9-cloud_setup.png)

To setup a Tuya IoT Platform account and setup a project in it, refer to the instructions for the official Tuya integration:
https://www.home-assistant.io/integrations/tuya/
The place to find the Client ID and Secret is described in this link (in the ["Get Authorization Key"](https://www.home-assistant.io/integrations/tuya/#get-authorization-key) paragraph), while the User ID can be found in the "Link Tuya App Account" subtab within the Cloud project:
Steps to get the required connection data:

* Use Tuya Smart App (["iOS"|https://apps.apple.com/us/app/tuya-smart/id1034649547]|["Android"|https://play.google.com/store/apps/details?id=com.tuya.smart&hl=en&pli=1]) to add a device. Requires registration. Steps are detaied on the official ["Home Assistent Tuya integration"|https://www.home-assistant.io/integrations/tuya/].
* Make a separate registration on ["Tuya IoT Platform"|https://platform.tuya.com/cloud/]
* Create a new cloud project (look for Cloud item in the main menu on the left). Make sure to accept default authorisations.
* Link your app with the cloud project - go to Devices -> Link App Account -> Add App Account and scan the QR code from the Tuya Smart app to approve the linking.

You can find the Client ID and Secret on the Overview page of your Tuya Cloud project under "Access ID/Client ID" and "Access Secret/Client Secret" respectively.

The user ID (UID) can be found in the "Link Tuya App Account" subtab within the Cloud project:

![user_id.png](https://github.com/rospogrigio/localtuya-homeassistant/blob/master/img/8-user_id.png)

Expand Down