Homey Community Forum

[App] Tuya Cloud

Tuya cloud

Homey App for the Tuya cloud.

This app is based on the Home Assistant implementation. Tuya has an undocumented API for Home Assistant that differs from the official API. This API supports login with credentials only.

Supported devices

  • Light ( On/Off, some devices brightness, and color)
  • Switch( On/Off)
  • Cover

Color settings are not supported for all devices, if it’s not working for your light, it’s not supported by API. Ask Tuya to support this function in API for your device.

Scenes

This app support the use of scenes. In the mobile Tuya/Smart life app you can make ‘Tap to run’ actions( In the past they where called scenes). Those actions can be called in a flow from this app.

Future supported devices

  • Fan
  • Climate
  • Lock

The above devices are supported by the API, but not yet supported by the app. I don’t own one of the device types, so implemeting is hard to do, it’s also taking more time then expected. Focus is on stabiity of app.

NOT supported devices and functions

  • All devices not listed above
  • Energie values and devices
  • Kitchen devices
  • Color for some lights
  • Sensors

It’s NOT possible to support those devices because the Tuya API, this app is using, is not supporting those devices. If you want support for those devices, you have to ask tuya to support them first. Only when device is supported by API, it’s possible to add the device to this app.

Because Tuya API is not supporting those devices, it’s not possible to support the devices in this app. Please don’t ask to support for those devices anymore, but ask Tuya to add the to the API first.

Setup Homey

  1. Go to the setup page in mobile app or develloper portal
  2. Set Username, Password and CountryCode These are the same as with first login of the mobile app
    It won’t work with linked Cloud accounts like Google, Facebook or other
  3. Set Business. This is Smart life or Tuya and corespondents with mobile app you use

The colormap can be leaved empty. this is experimental and is used to correct the colors between Homey and the lights If you want to use it, it has the flowing format:

HomeyHueValue1:TuyaHueValue1,HomeyHueValue2:TuyaHueValue2

The values are between 0-360. You have to include 0:0 and 360:360 Example:

0:0,60:10,360:360

This corrected for me the yellow color

Todo

  • Add other possible device types
  • Translation of texts

My device is unsupported or not all functions are supported. What should I do?

If the device is in the future supported list, then it’s possible to support this device. Otherwise there is nothing to do about it at the moment. Not all devices and/or functions are support with the API this app uses.

7 Likes

Changelog

0.0.2 First version in App store

1 Like

Great! Thanks for adding this app to homey. I already did a feature request on github; but can you add support for the water sensor? Here is a link to the product:

€ 15,47 26%OFF | NEO Smart WIFI Water Flood Sensor WIFI Water Lekkage Detector App Kennisgeving Waarschuwingen Water Sensor Alarm Lek Alarm Thuis Securit
https://s.click.aliexpress.com/e/0lwSFZ3XH

Sensors are currently not supported by the Tuya API. When the Tuya API supports sensors, I will look into it.

I have this thingie conected via this app:

4 sockets to be operated separately. 4 USB ports to be operated as 1 switch. And 1 switch to turn them all on/off at once.
Needed to build in a delay of 2 seconds to turn all the sockets on tho.

2 Likes

Great App. I bought myself an LSC Smart light by the Action and it works verry good

1 Like

Did you try to make a scene inside Tuya/Smart life app where you turn on or off all the sockets and call this scene from homey? I do this for my 6 living spots and works well. They turn on and off faster then my lights in dinner room which still have Ikea zigbee spots ( tried direct to homey and gateway).

Gonna try, ill let u know.

Edit: Did try to make a mood but same behavior. So maybe some interference from some other devices here.

1 Like

Too bad the solution didn’t work for you.

Hi @Jurgen_Heine.
I have a color problem with the lights from several brands (Deltaco and Kjell) using your app.

Example:
Deltaco SH-LE27RGB-f160 adds nicely and everything but color works great.
The device does not have a color wheel.

Using the other Tuya app the devices have the color wheel and all is working.

Any ideas what’s wrong?

This looks promising. I have 2 ceiling fans that uses TUYA embeded controllers… I use the smart life app to control them… looking forward to this app supporting fans!

How can you use a mood? I have a few moods in my smart life app, but homey says there’s nothing?

Can u also try that with the Tuya app instead of the smart life app?

Haven’t tried the Tuya app, because I like the smart life app better. But this is maybe the problem, when it only works with the tuya app.
I use a hue motion sensor in the bathroom with the lsc ceiling light, so it would be nice to use the moods, for example morning, day and night

is it possible to add the LCS Sirene to the app. The app itself look good, but it didn’t find the sirene, i saw only 2 options for adding.

@johan_bendz, how are those lights coupled in the Tuya/Smart life app? If this is ledstrip, then colors don’t work in Homey. This app uses the Home Assistant Tuya API which not supporting this for ledstrips yet. The other App is using a different method with local control. You can stay with that app, also you can control the colors with scenes.

@viix, fans are possible to add. I have to look into this, I don’t own one of those. Maybe you can help testing when I add those.

@Marina_Rietveld, I am using Smart life myself and should work. But I looked this morning in Smart life app and they changed the user interface. I still see my scenes, but they are called in the app now “tap-to-run”. You have now set condition to “click to execute” and in the task you define what your device has to do. The name you enter here is also the name of the mood in Homey. This name was limited, but not anymore. It looks like too long names are not working correctly.

@marcel_ridder, Sirens are not possible at the moment.

That’s correct Jugen, I have a few of these tal-to-run but none of them are visible?!
homey|241x500


Have you tried to set a mood?

Yes, I have made a test this morning. The last one is the test mood of this morning.

But can you see/select it when you make a flow?

When I select “kies een item” there is nothing