Support for devices with the Smartlife/Tuya app

Managed by Gladys, compatible Smartlife/Tuya devices, I found them on Aliexpress, but also in Action stores. (inter roller shutters, RGB bulbs, connected plugs).

Hello,
They are also available on Amazon…
I have a few from different brands (AISIRER, BAWOO, MAXCIO, etc.).
Thanks in advance :slight_smile: :blush:

Hello everyone,

I was surprised to see a whole range of connected objects in the ACTION store, working with Tuya.

My question is, is it possible to make the entire LSC range work with Gladys 4 without going through different clouds, a bit like zigbee2mqtt? It’s so great when everything stays local.

Well, I still gave in to a 220V plug from the range ^^, if I can help with any testing :blush:

It does not seem possible to operate Tuya devices without going through the cloud.
The problem is that since the last firmware version, their protocol is encrypted in order to limit piracy, and as a result, it makes reverse engineering more difficult (if not impossible).

Another method is to flash (if possible) with alternative firmware, but then you have to get your hands dirty with the hardware and it is often irreversible and makes the device inoperable via the application.

I voted, guys :joy::grin:

This feature is the second most requested, out of the 15 people who voted, no one has development skills? :slight_smile:

If it’s just On/Off, it’s not a very big integration, we already have a TP-Link integration, the two will be very similar…

Given the demand, I’m sure we can get the material if someone wants to volunteer to work on the integration :wink:

Hello Pierre Gilles
I am interested in the subject, but I do not have the skills to develop at this level :frowning_face:

I understand :slight_smile: Anyway, I think it’s better to go the other way: find someone with the skills and who would be motivated to help, even if we have to pay them in Tuyas :stuck_out_tongue:

I think so too
Have a nice day :wink:

Hello, I don’t have a Tuya, but I can try to develop something if you give me the requirements. I don’t know this brand. But if there is an API or something like that, I should be able to do something :slight_smile:

Hello @Lokkye
What do you mean by the need? I have an RGB bulb and roller shutter switches. I’d be happy to help you test, but I’m not an expert in development. I can manage in C Arduino. I tried to install a Tuya node on Node Red, but I didn’t understand everything, so I gave up a bit ([NODE-RED] Besoin d'aide sur une configuration de device tuya)
So if I can help you, I’d be delighted :smiley:

For info, just by the way, I’ve started to look at and develop the service… just started.

Great :+1:
Thanks for your work.

If you need help, don’t hesitate :slight_smile:

@AlexTrovato do you have Tuya devices at home or do you need hardware? If so, I’m sure we can find some gear for you — it’s the most requested integration, so it’s exactly the kind of integration where we could set up a small fundraiser to pay for equipment :wink:

I don’t have any real hardware, but their developer mode is pretty well done, you can create

I think @Lokkye is hyped :grin:

@AlexTrovato , @VonOx : Yes, I’m up for it :stuck_out_tongue:

Hey @Lokkye
I’ll give you some pointers.

My branch: https://github.com/atrovato/Gladys/tree/tuya-service
Some useful info: https://github.com/atrovato/Gladys/blob/tuya-service/server/services/tuya/README.md

What I recommend:

  • you won’t be able to fork my repo, because you already have the official fork
  • so I’ve added you as a contributor to my GitHub repo
  • I trust you to work only on the tuya-service branch, or to make PRs against that branch (please don’t destroy my work on other topics / but regarding tuya, it’s a POC, so feel free, I backed up the branch)
  • I assume you’re proficient on GitHub :smiley:
  • I won’t make much progress on this in the coming days, so you’re free to review everything
  • to know what’s been done and what needs to be done, it’s also advisable to maintain the README at the root of the service (high-level tasks, to be sure we’re not duplicating work)
  • in that README, there are IN PROGRESS items on mapping devices/features to the Gladys format; I don’t think I’ll have time to continue, and these steps are essential for the next stages, so you can take over these points
  • I’ll of course answer your questions
  • I haven’t tested any integration with the cloud IRL yet (validation by tests only)
  • the branch is up to date as of this morning; in case of git rebase or git push --force, we absolutely must keep each other informed to avoid wasting time (this may be resolved with a git fetch \u0026\u0026 git rebase origin/tuya-service but we’ll see at that time)

If you don’t agree:

  • fork the branch onto your repo and figure it out :smiley: (with git add remote url...)

Good luck!
Don’t hesitate if you have any questions, I’ll tell you what I don’t know :wink:

@AlexTrovato Thank you for everything, I’ll follow your recommendations, it seems great to me.
Don’t worry, I won’t touch the other PR/Branch.
I’ll read the README carefully before making any changes.
Thanks for your trust.