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

Hi Jonny,

firstly, you will need to create an Advanced Virtual Device (AVD) via the “Device Capabilities” app on your Homey. And then define numeric variables for the device. Here is an example for one of my power plugs:

image
image

Make sure you configure “Show as” with “Power (Sensor)” and select “Devices” next to “Reflect”, then select the power plug you want to reflect. You can select a “Capability” if you want, but it is not necessary. Configure the rest as you see fit.

I created 3 numeric fields: one for power consumption, one for current and one for voltage.

Next, you will need to find the DeviceID of your power plug. You do that via https://tools.developer.homey.app/ and click on “Devices”. It will take some time for the list to build up. Then find your device in the list and look for the ID field, which should look like this:

image

Copy that number and create an Advanced Flow like this one:

The Tuya Cloud app provides you with a flow card that captures numeric values from the Tuya IoT cloud as raw messages. You will now need to deduct them into the AVD.

You will need your DeviceID in the Logic comparison card. As you can see I have created 3 numeric fields in my ADV, which I fill with power consumption (divided by 10, as Tuya IoT cloud provides you that as such), the current (in mA) and voltage.

Hope this example helps you!

1 Like