Any clue on pinout this device? (tuya)

Hi!
Any idea about pinout for this device? It’s a RGB+W ceiling light from tuya and I would like to convert to ESPHome.
I know that this chip is supported using libretiny, but I have no ideia about pinout for converting (looks like pinout are exposed at right side of wifi chip) and, most important, the configuration for after conversion (I’m not sure if this is PWM for each RGB+W color or tuya serial chip and correcponding address).
Any tip/idea is welcome!


The screen resolution on the first picture is just a little too smeared on my screen to be able to directly read the numbers off the white SOC module.

Using Google translate on the documentation, it would appear it uses the Tuya WL2H-U module, using the LN882H chip, and the vendor specification and pinouts for that module can be found at https://developer.tuya.com/en/docs/iot/WL2H-U-Module-Datasheet?id=Kbohlj8eg19u5

I’m not sure ESPHome supports the LN882H chip yet. You may have to adapt the Tuya compatible cloud integrations for various ecosystems to be able to control it from HomeAssistant, or look at Elektrodata where they do a lot of groundwork to reverse engineer firmware for new Tuya chipsets to make them OpenBeken compatible. See https://www.elektroda.com/rtvforum/find.php?q=LN882H

Ain’t reverse engineering fun? ! :wink:

This reminds me of some past events, some very exciting ones.

I connected an LED light to an ESP32, and it boom

I experienced the boom up close.

The link you provided contains information.

I think pins 8, 9, 10, 11, and 12 can be tested using the ESP8266’s PWM.

Remember to connect the ESP8266’s GND and the Tuya module’s GND.