New integration for Tuya (Tuya CE)

Created new integration for Tuya - ha-tuya-ce
Named it Tuya CE (Community Edition),
Main reason for refactoring the official integration is due to the slow response to new devices (no complaints just stating a fact).

in this custom component I moved all the device / countries and unit of measurements to a JSON available in GitHub, so adding new devices doesn’t require new version and as result of that, faster time to market.

At this stage, configuration file identical to the official integration, but soon will add few of the devices that are not supported.

the main feature I’m going to add (soon after adding the missing devices) is new service to add / update devices by using a dedicated service to update the main configuration

Configuration JSON file available here

Although in the README stated that you can use HACS to download and install, didn’t get to it yet

please let me know you thoughts about it.

thanks

3 Likes

Will it support tuya protocol 3.4?

If it will be available through out that open api, don’t see reason why not,
It is basically the same integration as the official but with device’s configuration defined out of the code

Thanks for the answer… anyway dunno if already made the experience…but my two channel switch did act on its own for me…means I have a door opener attached to it and it opened and closed the door itself without interacting with the tuya device nor with an Automation. I’ll step back from those devices for the time being as the motor almost caught fire :fire: when it was blocked because the door was already closed

Repo is available in elad-bar/ha-tuya-ce,
adding new devices to that inegration is pretty simple (a tool is available for that in repo),
Below is a manual of how to add unsupported devices of Tuya to get supported (devices without insturctions / entities):

How to add support for unsupported Tuya devices

Tuya Developer Portal

  • Login to Developer Portal
  • Open Cloud menu and click on DevelopmentDeveloper Portal
  • Open the relevant project from the listProject list
  • In the upper navigation menu, click on Devicesimg.png
  • From the product navigation menu (View devices by product) find the relevant product you would like to add supportimg_1.png
  • Click on the Change control instruction modeimg_2.png
  • Select DP Instructions instead of Standard instructionsimg_3.png
  • List of supported DP codes with their names will appear
  • Click on Save configuration button
  • You will get redirected to the device list again
  • Find (again) the product ou have changed in the product navigation menu
  • Click on Instruction details button next the nameimg_4.png
  • On the right side will be opened Details view on the right sideimg_5.png
  • Click on Refresh configuration button
  • Close the Details view
  • Click on Debug device link related to one of the devices of the product
  • DP Instructions should appear in new format, if not, refresh the screen using F5![img_6.png](https://github.com/elad-bar/ha-tuya-ce/raw/main/docs/images/Device DP Instructions.png)

Home Assistant

  • In HA, Open Settings → Device & Services

  • Find Tuya integration

  • Click on the 3 dots menu and then on the reload menu item

    HA Menu

  • Once reloaded message appeared, open the menu again and this time click on Download diagnostics

  • In the downloaded file, you should find the additional JSON related to the device (functions and status list)

  • If the support for the device already added, you will see also the entities within the device

  • If no support available yet, please report in GitHub to add support with the JSON of the device

1 Like

This intergration seems to be everything I need to try and get some data from my Tuya wifi energy monitor.
The device is shown in HA, but as an unsupported device with no entities. Yet in my Smartlife app I can see all the energy readings.

So back to HA-TUYA-CE, I’ve got HACS installed, but when I come to try and add the custom repository, nothing seems to happen.

I have the latest HA running on a PI:

  • Core 2024.10.1
  • Supervisor 2024.09.1
  • Operating System 13.1
  • Frontend 20241002.2

Any help in getting the repository to load would be great.

It requires more efforts than I can currently can invest, if someone can assist with that it would be helpful

Hi! I’m a student in a digital systems department, working on a project to connect an unsupported IR Tuya-based device to Home Assistant. I initially considered using LocalTuya or forking the official Tuya integration for a custom solution, but then I found your project, which looks like a great fit. However, as the last commenter noted, it seems that the integration can’t currently be added to Home Assistant via HACS.

With this being my first attempt to a project like this and, with very basic programming skills, I’d love to assist in any way I can to help get it working again!

P.S.: I don’t know if my professor would agree to overcomplicate my project to this level, but I’d love to assist also as an individual for the learning experience and to practice my programming.

Is there an alternative to this for enabling unsupported devices in Tuya or Tuya Local?