# Embed TUYA in your flows without the struggles!

**URL:** <https://community.homey.app/t/embed-tuya-in-your-flows-without-the-struggles/49098>\
**Category:** Devices\
**Created:** [July 4, 2021, 9:21pm UTC](https://community.homey.app/t/embed-tuya-in-your-flows-without-the-struggles/49098 "2021-07-04T21:21:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/justin/32/23485_2.png) [@Justin](https://community.homey.app/u/Justin)\
**Post date:** [July 4, 2021, 9:21pm UTC](https://community.homey.app/t/embed-tuya-in-your-flows-without-the-struggles/49098/1 "2021-07-04T21:21:42Z")

</div>

Hello readers!

There are soo many Tuya devices out there and with Action store selling a lot of cheap but cool devices, you wish to add them all to your Homey!

Some devices are harder to add because Homey only supports them using the device IP address and a special key. I personally do not prefer using this because a new router, new IP lease or anything similair results in broken devices and flows.

My solution is to use ‘Tap-to-run’ action build inside the Tuya app:

1. Open your Tuya app
2. Add the devices
3. Create a tap-to-run with the action that you wish; turn a group of sirens on and off, pull up your roller blinds to 80% etcetera.
4. Install the Tuya Cloud app on Homey
5. Login with your Tuya credentials
6. In a flow, you can add a ‘Then’ card that triggers Tuya to run your device.

I have been using this for about 18 months now and never had failures. My roller blinds have multiple scenes/tap-to-runs (closed, 80%, 60%, 20% and open) and I created two scenes for my three Tuya wifi based sirens turning them all on or off, which I embedded in my alarm system.

Happy programming!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 5, 2021, 5:58am UTC](https://community.homey.app/t/embed-tuya-in-your-flows-without-the-struggles/49098/2 "2021-07-05T05:58:14Z")

</div>

The reason two Tuya apps exist is because some people prefer not to have their home controlled through Chinese cloud servers. Granted, the cloud app is easier to use and set up, but there’s an additional risk involved with it. That’s why some prefer to use the “harder” method.

---

<div class="post-metadata">

**Author:** ![Justin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/justin/32/23485_2.png) [@Justin](https://community.homey.app/u/Justin)\
**Post date:** [July 5, 2021, 6:18am UTC](https://community.homey.app/t/embed-tuya-in-your-flows-without-the-struggles/49098/3 "2021-07-05T06:18:44Z")

</div>

Thank you for this extra info. I think this comment is exactly what my post needed, this gives the Homey user a choice to make in what suits them best! 👍

---

<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:** [July 5, 2021, 10:22am UTC](https://community.homey.app/t/embed-tuya-in-your-flows-without-the-struggles/49098/4 "2021-07-05T10:22:04Z")

</div>

Always nice to have real life examples, Justin.  
The Tuya “trick” is posted earlier. Not to nag, but just fyi.

> [@\[APP\]\[Pro\] Tuya Cloud - This app allows you to connect Homey to the Tuya cloud](https://community.homey.app/t/app-tuya-cloud/21313/296):
>
> You can control almost all non-supported Tuya devices by using Tuya Cloud Execute a Scene card in flows. (So, not usable for sensors, because you can’t “control” them \> you can [use RAW Commands](https://community.homey.app/t/app-pro-tuya-cloud/21313/765) for those!). Example: Diffuser control via Tuya Cloud ‘Execute a Scene’ card At your phone: Add the diffuser to the Tuya app. Create 2 “tap-to-run” scenes inside the Tuya app. A scene for “Switch diffuser & led on” Dito for the “off” function. To give you an idea, an overview of my tap-t…

And way before my example, it is explained here also as I discovered later on 😌

> [@\[HOW TO\] Get started with Tuya cloud](https://community.homey.app/t/how-to-get-started-with-tuya-cloud/42604):
>
> THIS TUTORIAL IS OBSOLETED BY THEIR NEW APIS SINCE A FEW YEARS. I’LL TRY TO UPDATE WHEN I FIGURE IT OUT. THERE ARE GOOD TIPS IN THE THREAD. Homey can control certain devices over Tuya cloud services as long as it’s correctly set up and Homey has an internet connection. Install the Tuya cloud app on your Homey ([Tuya cloud App for Homey | Homey](https://homey.app/en-us/app/com.tuya.cloud/Tuya-cloud/)) On your phone, install the TuyaSmart app. Create an account and sign in. In the Homey app, go to More, Apps, Tuya cloud, Configure app. Enter your user…

---

<div class="post-metadata">

**Author:** ![Justin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/justin/32/23485_2.png) [@Justin](https://community.homey.app/u/Justin)\
**Post date:** [July 5, 2021, 5:08pm UTC](https://community.homey.app/t/embed-tuya-in-your-flows-without-the-struggles/49098/5 "2021-07-05T17:08:37Z")

</div>

And I am only just now discovering that you already posted it 😄 …!! Sorry friend.

When this was a thingy I tried searching it on Google but without success, that’s why I decided to write a new page about it.

---

<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:** [July 5, 2021, 6:09pm UTC](https://community.homey.app/t/embed-tuya-in-your-flows-without-the-struggles/49098/6 "2021-07-05T18:09:28Z")

</div>

Sorry is not needed Justin. It happened to me also. This “trigger a scene” option is a kinda “known secret” about the tuya cloud possibilities 🙃
