# \[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:** 20\
**Page:** 91

<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:** [December 12, 2023, 6:59pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1851 "2023-12-12T18:59:25Z")

</div>

Instead of [Functionvalue], use this:  
`{{ round( [Functionvalue] / 10 ) }}`

---

<div class="post-metadata">

**Author:** ![Robert\_Szilagyi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_szilagyi/32/157232_2.png) [@Robert\_Szilagyi](https://community.homey.app/u/Robert_Szilagyi)\
**Post date:** [December 12, 2023, 8:34pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1854 "2023-12-12T20:34:11Z")

</div>

And whats round meaning in this raw cmd? I need 0.1 accurate celsius for my tuya temperature sensor and now if its 23.4 (right now) the virtual device temperature sensor says 23. In this way round means actual round?

---

<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:** [December 12, 2023, 10:59pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1855 "2023-12-12T22:59:09Z")

</div>

Search for Math or mathjs at the forum, to find out about the possibilities.

To avoid numbers like 24.1111111111111111 or similar, I often use the round function.

Indeed, round without options means: round to 0 digits.  
When you need it rounded to 1 digit, use  
`{{ round( [Functionvalue] / 10 ,1 ) }}`

Round to 2 digits, use  
`{{ round( [Functionvalue] / 10 ,2 ) }}`

---

<div class="post-metadata">

**Author:** ![Robert\_Szilagyi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_szilagyi/32/157232_2.png) [@Robert\_Szilagyi](https://community.homey.app/u/Robert_Szilagyi)\
**Post date:** [December 13, 2023, 7:13am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1856 "2023-12-13T07:13:20Z")

</div>

Thank you so much. I was able to make everything and now i learn raw styled flows with tuya devices and seems like every devices working. Made a virtual humidity sensor too from the tuya temp and humidity sensor so thank you again. 🙂

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [December 13, 2023, 9:16am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1857 "2023-12-13T09:16:55Z")

</div>

You can do that in one flow - and actually also for all devices - or at least - that is what I did.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/207e3f7eceda9d4cc00bb0606d9f569af041872f.png)

You create one virtual device that includes battery, temperature and humidity and just validate whatever is in the message. I have over 10 sensors in one advanced flow and it works like a charm.

---

<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:** [December 13, 2023, 6:50pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1858 "2023-12-13T18:50:06Z")

</div>

@Robert_Szilagyi @Vincent_Verbon and others,

To keep all sensors of a device together, you can create just **one** virtual device with multiple sensors, with an [advanced virtual device](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198) of the [Device Capabilities app](https://homey.app/a/nl.qluster-it.DeviceCapabilities/)

One of many examples:  
(Click on the link or the `v` symbol)

> [@Share Your Device! - Advanced Virtual Devices from Device Capabilities](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676/72):
>
> Monitor memory usage of Apps and Homey (+ unused diskspace, sysLoad, uptime) Note: when you don’t mind installing another app, you can use “[SysInternals](https://community.homey.app/t/app-pro-sysinternals-shows-homey-s-system-internals/78650)” instead of this device & flow, but then you still have to create alert flows stuck_out_tongueApps used: [HomeyScript](https://homey.app/nl-nl/app/com.athom.homeyscript)[Chronograph](https://homey.app/nl-nl/app/nl.fellownet.chronograph)[Device Capab…](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities)

---

<div class="post-metadata">

**Author:** ![Frida\_Andersdotter\_N](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frida_andersdotter_n/32/78930_2.png) [@Frida\_Andersdotter\_N](https://community.homey.app/u/Frida_Andersdotter_N)\
**Post date:** [December 15, 2023, 7:47pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1859 "2023-12-15T19:47:59Z")

</div>

Hello. I’m very new to the Homey PRO, I’ve only had mine for a week. i try to configure tuya cloud but get error code 2406. i have restarted the app, relinked tuya smart with my tuya cloud develerment. deleted the account and started from scratch. refresh settings but nothing works, what am I doing wrong? Please help me!

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [December 15, 2023, 7:50pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1860 "2023-12-15T19:50:51Z")

</div>

Split this topic on December 15, 2023, 7:50pm UTC

2 posts were merged into an existing topic: [Trouble configuring Tuya Cloud on Homey PRO 2023](https://community.homey.app/t/trouble-configuring-tuya-cloud-on-homey-pro-2023/97988/4)

---

<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:** [December 15, 2023, 8:55pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1861 "2023-12-15T20:55:19Z")

</div>

Hello Frida,

Did you read the 1st post of this app thread?  
Most apps have their own topic, with FAQ and howto’s, which can be found at the bottom of the homey.app store app page.  
And / or use the search function, you could have searched for “2406”.

But, as I already found it for you, here you go:

> [@Jurgen\_Heine](#):
>
> 2406 skill id invalid
> 
> - Make sure you use the Tuya Smart or SmartLife app account to log in. Also, choose the right data center endpoint related to your country region. For more details, please check [Mappings Between OEM App Accounts and Data Centers](https://developer.tuya.com/en/docs/iot/oem-app-data-center-distributed?id=Kafi0ku9l07qb).
> - The link between mobile app en cloud project is broken, see post from @B3rt :[Relink your account to mobille app](https://community.homey.app/t/app-pro-tuya-cloud/21313/1133)
> - Your cloud project on the [Tuya IoT Development Platform](https://iot.tuya.com) should be created after May 25, 2021. Otherwise, you need to create a new project. For more information, see [Operation on the Tuya IoT Development Platform](https://developer.tuya.com/en/docs/iot/migrate-from-an-older-version?id=Kamee9wtbd00b#title-3-Operation%20on%20the%20Tuya%20IoT%20Platform)

My guess right now: in the app settings, make sure you use the Tuya Smart or SmartLife app account to log in, and use the _emailaddress_ instead of the username; see screenshot

> [@Jurgen\_Heine](#):
>
> Username, Password are the same as with first login of the mobile app  
> **It won’t work with linked Cloud accounts like Google, Facebook or other!!!**  
> _ **It’s your mobile phone app login credentials, and not iot developer portal credentials!!** _

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/e/1ea0bb6f40494f689c30fa0e0064849e559cae9e.png)

And also, do NOT use your [iot.tuya.com](http://iot.tuya.com) login. That’s only for authenticating to the iot platform site.

---

<div class="post-metadata">

**Author:** ![Sander\_Butterman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sander_butterman/32/80078_2.png) [@Sander\_Butterman](https://community.homey.app/u/Sander_Butterman)\
**Post date:** [December 16, 2023, 3:25pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1862 "2023-12-16T15:25:08Z")

</div>

I have made a tuya project, linked my tuya app account, set the variables in de homey tuya cloud app but still my devices are not visible within Homey Pro.

All settings are correct as described. Restarted the app and the Homey itself but still no luck. Anyone who can help me out??

---

<div class="post-metadata">

**Author:** ![Frida\_Andersdotter\_N](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frida_andersdotter_n/32/78930_2.png) [@Frida\_Andersdotter\_N](https://community.homey.app/u/Frida_Andersdotter_N)\
**Post date:** [December 16, 2023, 9:45pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1863 "2023-12-16T21:45:20Z")

</div>

Hi Peter and thanks for your reply!

I didn’t know that most apps have their own topic. Thanks. But I’m not getting any wiser about my problem.  
I’m still using Tuya Smart, I’ve also tried using SmartLife and my region is correct. The link between App and Cloud seems to work and I have relinked it as many times as possible with no results. My Cloud Project was created a week ago so after May 25, 2021.  
I log in with my e-mail address (which is not linked to Facebook, google or the like) and the e-mail address I log in to the app, not the e-mail address I log in to the IoT platform with. I have also selected Use official only on Choose desired API(S). I have uninstalled, deleted and redone both app in phone, in homey and on IoT. I have also removed devices and added them again…

I now saw that I have received a message in Homey that “You are still using the old deprecated API and drivers, please switch to new drivers only.”  
After some googling, I looked up information about API keys. So I made a new one and put it in homeyscript.  
I am very grateful for any feedback you can provide!

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [December 17, 2023, 10:33am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1864 "2023-12-17T10:33:03Z")

</div>

The message you’re getting is related to this setting probably:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/f/dff1e6636f7c31daee28b2412e99ce3e6e37839e.png)

Set it in the app configuration to ‘use official only’  
I know you mentioned you did configure that, but the message you’re receiving indicates using older API.

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [December 17, 2023, 10:41am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1865 "2023-12-17T10:41:00Z")

</div>

@Peter_Kawa, maybe I’m not getting your advice exactly as I do have one virtual device with all sensors configured - with the virtual devices app, I didn’t need the device capabilities app for that. How does using ‘advanced virtual device’ have a benefit over that config ?  
In the device capabilities I just selected the three values the sensor supports (temp, humidity and battery) and it works.

---

<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:** [December 17, 2023, 9:06pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1866 "2023-12-17T21:06:18Z")

</div>

I see. While I’m not actively using the Virtual Devices app anymore, I was thinking one can use only one capability each VD, my bad!

> [@Vincent\_Verbon](#):
>
> How does using ‘advanced virtual device’ have a benefit over that config ?

I’d say just read the Advanced virtual device and device capabilities topics, to discover the possibilities.

---

<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:** [December 17, 2023, 9:16pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1867 "2023-12-17T21:16:28Z")

</div>

YW!

1. I assume you’ve read all of post #1 ?

2. What country number did you enter?

> [@Frida\_Andersdotter\_N](#):
>
> I’m still using Tuya Smart

1. Did you select “Tuya” as well in the dropdown “Mobile App” (below the country number entry)?

Did you find the YT vid in this thread? maybe it helps while you can watch almost all config steps:

[![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/9/59ae58ab31d62c2186b757b99275fe34853e5634.jpeg "New Tuya Home Assistant Integration // Quick Set up Guide") ](https://www.youtube.com/watch?v=y6kNHIYcJ5c)

1. Can you share a screenshot of the app config screen (pls hide personal info)?

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [December 18, 2023, 6:27pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1868 "2023-12-18T18:27:31Z")

</div>

I’ll read up on AD anyway, wouldn’t have thought of that without your post :-). , I figured idd that you thought I had a device defined per capability.

---

<div class="post-metadata">

**Author:** ![Frida\_Andersdotter\_N](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frida_andersdotter_n/32/78930_2.png) [@Frida\_Andersdotter\_N](https://community.homey.app/u/Frida_Andersdotter_N)\
**Post date:** [December 19, 2023, 8:04am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1869 "2023-12-19T08:04:18Z")

</div>

Hello again! I can’t figure out what I’m doing wrong. I have watched YT several times, follow all the instructions, still it doesn’t work. Same error code all the time. My Homey PRO, Tuya and devices were purchased less than a month ago. I’m starting to feel really stupid…

trying to send a picture of the settings in the Homey app

 ![IMG_1865](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f41ec6aaa313b1f708a37dcb769b3413edee5e2.jpeg)

---

<div class="post-metadata">

**Author:** ![Frida\_Andersdotter\_N](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frida_andersdotter_n/32/78930_2.png) [@Frida\_Andersdotter\_N](https://community.homey.app/u/Frida_Andersdotter_N)\
**Post date:** [December 19, 2023, 8:06am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1870 "2023-12-19T08:06:40Z")

</div>

I forgot, what do you mean by country number? I am central Europe. +46

---

<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:** [December 19, 2023, 8:17am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1871 "2023-12-19T08:17:02Z")

</div>

Ah, that might be it. Only enter `46` in the ‘Telephone country code’ field (You’re from Sweden, right?).  
And you’re not the only one having a hard time configuring this. There’s just many things which can go wrong.

---

<div class="post-metadata">

**Author:** ![Frida\_Andersdotter\_N](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frida_andersdotter_n/32/78930_2.png) [@Frida\_Andersdotter\_N](https://community.homey.app/u/Frida_Andersdotter_N)\
**Post date:** [December 20, 2023, 7:14am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1872 "2023-12-20T07:14:13Z")

</div>

Wow!!! Its working!!! Thank you so much!!!

[Previous page](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313.md?page=90)

[Next page](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313.md?page=92)
