# \[APP\]\[Pro\] Tuya Cloud - This app allows you to connect Homey to the Tuya cloud

**URL:** <https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313>\
**Category:** Apps\
**Tags:** app, unofficial, wifi, homey-pro\
**Created:** [November 25, 2019, 5:31pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313 "2019-11-25T17:31:12Z")\
**Posts on this page:** 1\
**Showing post:** 1247

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 18, 2022, 9:27pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1247 "2022-10-18T21:27:11Z")

</div>

**Edit** Jurgen and Ronny responded quicker. Anyways, maybe you’ll find some useful info below😉

* * *

When your devices still use the old API, you’ll have to remove them, but first, rename your devices, like adding ‘-old’ for instance (_needed to repair affected flows automatically later on_)

Now, after that, add your devices again using the official API. Make sure there’s no ‘legacy’ mentioned on the device-type-to-add-tile (during the adding process).

When all’s been added, and you have a functional backup subscription, run the script by @martijnpoppen below in the [webApi playground](https://tools.developer.homey.app/tools/api-playground):

1. Edit script:  
Enter the old device name and the added device name
2. Copy & paste script in the playground & hit the blue ‘Run’ button
3. Now the flows with the ‘old’ device should work with the new added device.

The Script:

- [scripts based on device Name](https://gist.githubusercontent.com/martijnpoppen/dcf0b8fd3f7fe63dec087c87dbc66090/raw/19600431a81322756f986e2e9896f6bf0badc474/gistfile1.txt) (Make sure to use unique device names!)

Script topic [here](https://community.homey.app/t/how-to-pro-cloud-tool-to-fix-advanced-flows-after-removing-and-re-adding-devices/65018)

---

_[View the full topic](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313)._
