Depending on the version of the firmware shipped on the device, you may be able to flash it using the Tuya-Convert OTA flashing tool. This tutorial shows how that tool works.
If the OTA flash method does not work, you will have to solder leads to flash the device. Except for GPIO0, the programming pins are not broken out on the PCB. The module has the usual ESP-12 pin layout, so carefully solder right to the chip's pins. The device button is connected to GPIO0. You do not need to solder onto GPIO0. Just hold the button down when booting the device to get it into flash mode.
Once you get the device flashed, set up the Wi-Fi configuration and connect to the device using a browser using its IP address. To keep the device from constantly rebooting, the first configuration step you should perform is to set the module type to Generic (18).
Configuration:
- Digiblur's Tasmota forked firmware
- Generic (18)
- GPIO0: Button1
- GPIO13: Led1i
- GPIO14: Relay1
When the blue LED on GPIO 13 is set to LED1i the white light shines when the relay is off and the blue light illuminates then the relay is on.
Further configuration and setup may be required as the blue LED constantly flashes.
Wiki has moved to link on the left.