Tessan 3-way smart dimmer switch

Anybody got Tessan STD02 working with ESPHome (or tasmota).

Thank you!

@quest07, did you ever get this working in any capacity? There’s a TYWE3S in the “(Master)” unit and virtually nothing in the “(Add-On)” box that accompanies it. Seems like you could easily get the device with the brains to take Tasmota or ESPHome and control at least a 1-way light with it, but I don’t know if connecting the add-on unit would emulate the functionality. I just got my hands on one recently and might tinker with it soon…

This 3-way dimmer uses a STC15W408AS microcontroller (STC15W408AS Info) that does the work for the dimmer. It works as designed even when flashed with ESPHome on the TYWE3S chip. I’m not the one who’s going to reverse engineer this thing, but would love for it to work with ESPHome/Tasmota and Home Assistant.

If anyone has any info on possibly getting the ESP chip to send TX/RX info back and forth to control the actual “brain” of this device, that would be awesome. Picture for reference:

I was able to make this tessan 3way switch work with Tasmota (v11). It is a TuyaMCU generic type, and the baud rate is 115200.

It works great via the default TuyaMCU(54) module with the following settings (started with Tasmota 11.1.0 via serial download…tuya-convert OTA will not work)…

{“NAME”:“Tessan-STD02”,“GPIO”:[0,2272,0,2304,0,0,0,0,0,0,0,0,0,0],“FLAG”:0,“BASE”:54}

Tessan STD02 3-way dimmer with second MCU settings:

TuyaMCU (54) module - no GPIO changes

SetOption97 1
TuyaMCU 11,1
TuyaMCU 21,2
DimmerRange 20,255

Loaded Tasmota 11.1.0 via serial (TuyaConvert OTA would not work, May 1, 2022)

I submitted a formal template to tasmota.blakadder.com today.

GPIO0 connection (connected to secondary MCU, likely for reset)
GPIO2 (connected, used for module TxD to print internal info, likely for manufacturing/debug)
These are the only ones connected to anything from the TYWE3S ESP8266 module. It is only a UART pass through to the secondary MCU.

For those who (like me) have only just stumbled across this after purchasing the Tessan STD02:

Here is the pinout for flashing (Tasmota Github)

I will try this soon and see if I can make it work. Thanks to @fway for the template.

There are two templates on Blakadder’s site for this and previous similar devices.
This is for the Tessan MJ-SD02 Dimmer (FCC ID 2ANJ7-SD01) (not what I have).
This is for the STD02 (what I have) which differs from Franks.

My desoldering skills were not up to the task of removing theTYWE3S so I could flash it. I should have found the reset line of the MCU and grounded it or cut the TX/RX lines from the MCU to theTYWE3S but I got impatient and my hot air station is in a box in my office at work (grrr).
The TYWE3S is ruined but I think I can salvage the board and solder an ESP into its place.

Now it gets interesting, right?

I was able to clean up the board and add some 30ga wires to bridge the gap between the new, pre-programmed ESP12-F, which, accoding to Blakadder, is compatible. I soldered the ESP into place but wifi didn’t come up. Hmmm… So I carefully removed the ESP, cleaned everything up again and popped it into my programmer. It came right up (blue LED solid on). Then I realized I had programmed it with the wrong module and template. So I followed the example from @fway and set the right module and template and added all the extra commands from the console. Upon reset, the wifi came up but the blue LED stayed off. Turns out the blue LED is on GPIO2 (?) and that pin is used for something else when set to TuyaMCU(54).

After much searching, the answer was right under my nose:

Ground GPIO15 with a teensy jumper wire and the ESP12-F will boot.
I read about this in a post on Blakadder’s site.
Problem solved.

Final Addendum for anyone who comes here looking for info on this product: Tessan is no longer in the wifi/smarthome products business. They are now making chargers and travel adapters.
I came back to this after relocating and needing to move all my smarthome dimmers into the new house. Not so simple like you might think, especially when the products are discontinued. sigh

[edit: spelling and closing comment]