[APP] Tuya - Smart Life. Smart Living

I must admit: when I bought my first Tuya devices in 2018 (long before I bought Homey), the Tuya devices and mobile app/Google Home integrations were quite unstable (often Google Home saying the service is unreachable). However, things have improved since then and I haven’t had any server/connectivity issues since 2020, it just always worked, every day, every time. And Tuya has also always worked with Homey, it’s the only Homey app that I’ve never had to “re-pair” any devices from which makes it the most stable Homey app in my setup.

I don’t know about your experience with Tuya, but the issue that @Carole_C is reporting is clearly an implementation issue, not an issue with Tuya (if that was the case, then the device would be offline in Tuya mobile app as well).

Hi, I used to use the old Tuya app but that is ‘broken’ and the devices I had can’t be repaired.
The good news is that there is this new app. Great, thanks.

But I’ve 2 questions:

  • In the old app you could (load &) trigger scenes created in the Tuya Smart app. Is that also possible with this new app?

  • I’ve installed my inverter heatpump (as heater) with the new app. And it works (on & off) but there seems to be no codes available (e.g. for JSON, Number, String & Boolean). They were available in the old app which I used to get and set and temperature (as an example). The options to do so are available the the codes themselves are not.
    Is there anything I need to do enable that?

Just want to say “THX” to the developer.

Now my new Plugs from Silvercrest (LIDL) SAPM 1 A1 are working perfectly with energymeasuring. The device is made for Matter, but there is no energymeasuring. Via the Tuya-app with WLAN the plugs are showing all figures correct.

Best regards- Willi

Found a nice Tuya Ceiling lamp-fan that (as a bonus) can show something very close to the Homey logo :slight_smile: In the Tuya app I can set the Scene to number 33 or 34 and voila, the Homey logo is there. But now I want to start this from an advanced flow. But I have no clue what to fill in at the String or JSON cards. I have this information.

{ “device”: { “active_time”: 1779469570, “biz_type”: 0, “category”: “fsd”, “create_time”: 1779469570, “icon”: “smart/icon/bay16341152123566Lf0/8643276ede5759a350b35668b6e05733.png”, “id”: “(my lamps tuya ID)”, “ip”: “”, “lat”: “”, “local_key”: “”, “lon”: “”, “name”: “CompFan”, “online”: true, “owner_id”: “”, “product_id”: “nqdytaota6qmmdny”, “product_name”: “Smart Fan Light”, “status”: [ { “code”: “switch_led”, “value”: true }, { “code”: “work_mode”, “value”: “colour” }, { “code”: “bright_value”, “value”: 1000 }, { “code”: “temp_value”, “value”: 292 }, { “code”: “colour_data”, “value”: “{\“h\”:0,\“s\”:1000,\“v\”:130}” }, { “code”: “do_not_disturb”, “value”: false }, { “code”: “fan_switch”, “value”: false }, { “code”: “fan_mode”, “value”: “fresh” }, { “code”: “fan_speed”, “value”: 15 }, { “code”: “fan_direction”, “value”: “forward” }, { “code”: “countdown_left_fan”, “value”: 0 } ], “sub”: false, “time_zone”: “+02:00”, “uid”: “”, “update_time”: 1779469570, “uuid”: “” }, “specifications”: { “category”: “fsd”, “functions”: [ { “code”: “switch_led”, “type”: “Boolean”, “values”: “{}” }, { “code”: “work_mode”, “type”: “Enum”, “values”: “{\“range\”:[\“white\”,\“colour\”,\“scene\”,\“music\”]}” }, { “code”: “bright_value”, “type”: “Integer”, “values”: “{\“min\”:10,\“max\”:1000,\“scale\”:0,\“step\”:1}” }, { “code”: “temp_value”, “type”: “Integer”, “values”: “{\“min\”:0,\“max\”:1000,\“scale\”:0,\“step\”:1}” }, { “code”: “colour_data”, “type”: “Json”, “values”: “{}” }, { “code”: “control_data”, “type”: “String”, “values”: “{\“maxlen\”:255}” }, { “code”: “do_not_disturb”, “type”: “Boolean”, “values”: “{}” }, { “code”: “fan_switch”, “type”: “Boolean”, “values”: “{}” }, { “code”: “fan_mode”, “type”: “Enum”, “values”: “{\“range\”:[\“fresh\”,\“nature\”]}” }, { “code”: “fan_speed”, “type”: “Integer”, “values”: “{\“min\”:1,\“max\”:100,\“scale\”:0,\“step\”:1}” }, { “code”: “fan_direction”, “type”: “Enum”, “values”: “{\“range\”:[\“forward\”,\“reverse\”]}” }, { “code”: “countdown_left_fan”, “type”: “Integer”, “values”: “{\“unit\”:\“min\”,\“min\”:0,\“max\”:540,\“scale\”:0,\“step\”:1}” } ], “status”: [ { “code”: “switch_led”, “type”: “Boolean”, “values”: “{}” }, { “code”: “work_mode”, “type”: “Enum”, “values”: “{\“range\”:[\“white\”,\“colour\”,\“scene\”,\“music\”]}” }, { “code”: “bright_value”, “type”: “Integer”, “values”: “{\“min\”:10,\“max\”:1000,\“scale\”:0,\“step\”:1}” }, { “code”: “temp_value”, “type”: “Integer”, “values”: “{\“min\”:0,\“max\”:1000,\“scale\”:0,\“step\”:1}” }, { “code”: “colour_data”, “type”: “Json”, “values”: “{}” }, { “code”: “do_not_disturb”, “type”: “Boolean”, “values”: “{}” }, { “code”: “fan_switch”, “type”: “Boolean”, “values”: “{}” }, { “code”: “fan_mode”, “type”: “Enum”, “values”: “{\“range\”:[\“fresh\”,\“nature\”]}” }, { “code”: “fan_speed”, “type”: “Integer”, “values”: “{\“min\”:1,\“max\”:100,\“scale\”:0,\“step\”:1}” }, { “code”: “fan_direction”, “type”: “Enum”, “values”: “{\“range\”:[\“forward\”,\“reverse\”]}” }, { “code”: “countdown_left_fan”, “type”: “Integer”, “values”: “{\“unit\”:\“min\”,\“min\”:0,\“max\”:540,\“scale\”:0,\“step\”:1}” } ] }, “data_points”: [ { “code”: “switch_led”, “custom_name”: “”, “dp_id”: 20, “time”: 0, “type”: “Boolean”, “value”: “{}” }, { “code”: “work_mode”, “custom_name”: “”, “dp_id”: 21, “time”: 0, “type”: “Enum”, “value”: “{\“range\”:[\“white\”,\“colour\”,\“scene\”,\“music\”]}” }, { “code”: “bright_value”, “custom_name”: “”, “dp_id”: 22, “time”: 0, “type”: “Integer”, “value”: “{\“min\”:10,\“max\”:1000,\“scale\”:0,\“step\”:1}” }, { “code”: “temp_value”, “custom_name”: “”, “dp_id”: 23, “time”: 0, “type”: “Integer”, “value”: “{\“min\”:0,\“max\”:1000,\“scale\”:0,\“step\”:1}” }, { “code”: “colour_data”, “custom_name”: “”, “dp_id”: 24, “time”: 0, “type”: “Json”, “value”: “{}” }, { “code”: “do_not_disturb”, “custom_name”: “”, “dp_id”: 34, “time”: 0, “type”: “Boolean”, “value”: “{}” }, { “code”: “fan_switch”, “custom_name”: “”, “dp_id”: 60, “time”: 0, “type”: “Boolean”, “value”: “{}” }, { “code”: “fan_mode”, “custom_name”: “”, “dp_id”: 61, “time”: 0, “type”: “Enum”, “value”: “{\“range\”:[\“fresh\”,\“nature\”]}” }, { “code”: “fan_speed”, “custom_name”: “”, “dp_id”: 62, “time”: 0, “type”: “Integer”, “value”: “{\“min\”:1,\“max\”:100,\“scale\”:0,\“step\”:1}” }, { “code”: “fan_direction”, “custom_name”: “”, “dp_id”: 63, “time”: 0, “type”: “Enum”, “value”: “{\“range\”:[\“forward\”,\“reverse\”]}” }, { “code”: “fan_countdown_left”, “custom_name”: “”, “dp_id”: 64, “time”: 0, “type”: “Integer”, “value”: “{\“unit\”:\“min\”,\“min\”:0,\“max\”:540,\“scale\”:0,\“step\”:1}” } ] }

I have a Set colour_data to JSON card and a work_mode to String card, tried for hours using parts of the code above, but all ends in errors. Has anyone the solution to this riddle?

FWIW, if you can set up your desired arrangement as a Tuya scene, there’s a card to execute Tuya scenes.

Andy

Sorry, but there’s no Scene card :confused:

The lamp in al it’s glory. In real life it’s even more fantastic.

You can use Tap-to-Run’s to set the scenes of the light. The Tap to Run card can be found in the Tuya app, not the specific device. So when selecting the THEN part, select “Tuya” and the Tap to Run card should show up under the devices. You first need to create the Tap to Run scene in the Tuya or Smart Life mobile app

That’s it. The card is called ‘Trigger’ and the available scenes appear as a drop down from the card.

If you think about it, it can’t be device-specific because a Tuya scene can work with multiple devices.

Andy

Thanks! I could add the Scene, but can’t give it a number. So it seems I need to add some JSON code to it, but still can’t figure out how that works.

It sounds like there’s dual use of the term ‘scene’ going on. In general a Tuya scene has a name and it can set attributes of devices such as turning them on, or changing colour. It doesn’t have a number.

The scene you are describing seems to be an attribute of the device. If that’s right, you want to create a Tuya scene that sets the device’s scene to 33. You can then trigger the Tuya scene from Homey.

However, that might not be possible. I have Tuya bulbs that don’t let me create a scene to change their colour even though Tuya’s interface does allow me to set a colour, and I can set the colour from Homey. Bizarre.

Anyhow, if you can’t use a scene to change your device’s ‘scene’ all might not be lost. The ‘devices’ section of Homey developer tools exposes all the capabilities you can change for a device and allows you to modify them directly. That way you can experiment with what is possible through Homey.

Andy

These are the LED strip (or ceiling light) scenes. Do you also get this screen?

Unfortunately, you can’t control those from Tap to Run (at least not on my LED strip). You can however set the mode to Scene (which starts the last selected scene)

Thanks for the suggestions. Still no luck, but when I find the solution I will post it here.