Treatlife Dual Indoor Dimmable Smart Plug (DP-20) ESP Transplant

Treatlife Dual Indoor Dimmable Smart Plug (DP-20) ESP Transplant


M.J. Wydra
https://github.com/Tediore


Treatlife released an indoor dual outlet dimmable smart plug in Q4 2020. It ships with a WB3S module which is not compatible with Tasmota but is pin-compatible with the ESP-12 (see the end of this document for a pinout comparison). This means the WB3S can be removed and replaced with an ESP-12 flashed with Tasmota.


The plug is held together with four screws and some internal clips. Remove the informational sticker on the back to access the four screws. Remove the screws and pry in the gap on the longer sides of the plug to open the plug up.




Unfortunately the plug is equipped with a secondary TuyaMCU (Nuvoton M031EC1AE, pictured to the left of the WB3S). This means the plug will use the Tasmota TuyaMCU module (Module 54) once the WB3S is replaced with an ESP.

Take care not to remove any of the pads when desoldering the WB3S. I accidentally removed the RX pad on the board when removing the chip (oops). This is a bad situation since this device has a TuyaMCU and relies on a connection between the ESP’s RX TX and the TuyaMCU’s TX RX. If this occurs you can either attempt to repair the connection or solder a wire from RX on the ESP to TX on the Nuvoton MCU. I moved the trace back into its place before soldering the ESP down and miraculously it works, but at some point I might need to open it up to fix it properly.




Picture of the final product with an ESP-12 in place of the WB3S. Note the red wire connecting GPIO15 to GND on the ESP. Without this connection the ESP will not boot to normal mode since there’s no pad on the PCB for GPIO15.

The commands required to make the device work properly with Tasmota are similar to Treatlife’s DP-10 outdoor dimmer plug:

Module 54

Backlog TuyaMCU 21,2; SetOption20 1; SetOption54 1

Backlog TuyaSend2 3,100; DimmerRange 10,1000


Depending on the light bulbs you use with this device, you might need to modify the DimmerRange command with a different low value. Both outlets are controlled at the same time (no independent control), and the lights gradually fade when turned on or off. Unfortunately it does not fade between brightness levels.

Pinout comparison (WB3S on the left, ESP-12 on the right):


Comments

  1. I purchased Treatlife's fan only controller and have removed the WB3S and replaced it with a ESP-12S last night. I have not tested it yet, but I am curious as to why you had to connect the red wire from GPIO15 to GND. On mine there was a pad there. Did the pad get ripped up when you removed the WB3S?

    Thanks!

    ReplyDelete
    Replies
    1. There was no actual pad for IO15, there was just a rectangle that was the size of a pad (you can see that in the third photo)

      Delete

Post a Comment

Popular posts from this blog

How to use the Sonoff Zigbee Bridge with Home Assistant - Tasmota

Tuya Convert 2.3 Update | Flash Tuya Smartlife Devices | No Soldering! | Remove the cloud | Custom Firmware

Tuya Convert 2 - Flash Tuya Smartlife Devices - No Soldering - Remove the cloud with Tasmota ESPHome