Flashing Tasmota

The Treatlife DS01 uses a TYWE3S Chip (ESP8266):

This dimmer has an MCU connected to the TYWE3S over the RX/TX pins.


MCU

BYD - BF7612AM28T W9He

BF7612AMXXE-CN-MCU-Datasheet


Flashing Notes from Net

It seems that some people have had luck flashing by:


Flashing - Disabling the MCU

To boot the TYWE3S in flashing mode, GPIO0 needs to be connected to GND while powering up. It can be left grounded for the entire process. Flashing a TYWE3S connected to a MCU is a bit trickier than one without MCU. This is due the same Rx Tx pins used by MCU and serial programmer for flashing. The TYWE3S cannot be booted to flash mode with MCU sending data over the same pins. To be able to do that, we need to disable MCU from sending data over Rx and Tx pins. There are few ways to do it:

Keep MCU disabled is by identifying the NRST/RST (Reset) pin of the MCU from its datasheet and connect it to GND for the entire flashing process. This will keep MCU disabled while you flash TYWE3S. If there are some contacts or test points in switches that connect to the MCU, you might be lucky to find contacts for RST that you can easily solder onto.



Cutting the Rx/TX pin on MCU


Pictures



Tracing


Flashing

This chip is essentially an ESP8266. The ESP-12 Chip has the same pinout. 

We can desolder the TYWE3S board and flash it just like we would an ESP-12.

To flash the ESP-12, you would need to connect it up as follows:


Configuring

https://templates.blakadder.com/treatlife_DS01.html


References

ReferenceURL
Tasmota - Tuya MCU Deviceshttps://tasmota.github.io/docs/TuyaMCU-Devices/
Tasmota - TuyaMCUhttps://tasmota.github.io/docs/TuyaMCU/
Tasmota - TuyaMCU Protocolhttps://tasmota.github.io/docs/TuyaMCU/#tuya-protocols
Tasmota Ruleshttps://tasmota.github.io/docs/Rules/

Trying to flash tasmota on TYWE3S #5377

https://github.com/arendst/Tasmota/issues/5377
Configuring Tasmota on DS01https://templates.blakadder.com/treatlife_DS01.html