It's a very nice comparison showing different manufacture approaches. Two of the models have single sided, cheap PCB, and third one has two sided one, but not populated.
It's not a good sight to see empty place for varistor and other components. I can also see a spot for SOIC8 chip, it was most likely used in RF-enabled version.
Are you able to tell the Tasmota template for this devices, and also, which power supply ICs are they using?
That 0 ohm jumper in place of an inductor that was supposed to form a filter with capacitors is also not a good sign:
They usually put two electrolytic capacitors with an inductor between them, in that PCB, both inductor and one of capacitors are missing.
I can also see power supply IC - BP2525, as usual.
Cracked open a new bunch of these and yep, some have the full circuit. From my basic understanding of electronics components some of the model I got have missing one electrolytic capacitor (Same value as the other black one), a ceramic capacitor and the resistor which I guess is current limiting (?).
I should guess the cut down ones are fine to use? Worst case scenario I use them for stuff behind my UPS.
Also considering that the versioning of the cut down is v1.1 I guess whoever made the circuit figured out that the filter was not strictly necessary so they bypassed it...
This is how it was supposed to look like (except the crossed part, which is different on your power supply).
The blue element, which is missing from some boards, is a varistor, marked RV1.
Edit: maybe I was too eager to cross that part of schematic out, I can see you have BP2525 on the board, here's the BP2525 application:
so it's just like first schematic, just note that second one is missing the varistor (RV1, both on your PCB, and on the schematic)
Well, to be honest, I saw people using such IoT low-price low-quality switches even without varistors for a very long time, so it's not that it will immediately blow up when you connect power... but in general, the thing that Chinese sellers do is not a good practice.
@ElektrodaBot What is the varistor? How is varistor used in switching power supplies? How is it connected?
What is the varistor? How is varistor used in switching power supplies? How is it connected?
Hello user2529249!
A varistor is a voltage-dependent resistor (VDR). It is a passive electronic component that exhibits a nonlinear relationship between its voltage and current. The main function of a varistor is to protect electronic circuits from voltage surges, such as lightning strikes or voltage spikes in the power supply.
In switching power supplies, varistors are commonly used as a protective element to safeguard the circuitry from overvoltage conditions. They are connected in parallel to the input voltage source, usually across the AC mains input.
When the voltage across the varistor is below its rated clamping voltage, it presents a high resistance and thus has little effect on the circuit. But when the voltage exceeds its rated clamping voltage, the varistor's resistance dramatically decreases, absorbing the sudden surge in voltage and diverting the excess current away from the sensitive components in the power supply.
To better understand your specific application or requirements, it would be helpful if you could provide more details about the switching power supply you are working with, such as its specifications, intended use, and any specific concerns you may have regarding overvoltage protection.
Feel free to ask any follow-up questions or provide more information. I'm here to help!
You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
I know but for some reason buying a replacement module costs more than what I paid for the whole thing. (I paid 1.79$ for the switch vs 4$ for the ESP-02S).
So it makes more economical sense just to trash it and buy again considering that only 1 out of 20 had this chip.
>>21402346 Yes, I could control it with Tuya Smart App and also with Smart Life.
@divadiow now has the full dump, once he checks it's alright, I'll post it here or, maybe better, in the flashing guide, you'll tell me where it should go
I have flashed the file to HLK-M20 and yes it does boot but it loops like this:
Code: Text
Log in, to see the code
however I carve the file up it does the same - app partition flashed only but with Skylab-supplied other bits, your AP creds broadcasting, tuya_mdev_test1 AP broadcasting, pulling low all the GPIOs I have available to me in the hope one is the button and it'll factory reset etc etc
It does for a brief period broadcast
but not long enough to join for more than a second
if you're still up for playing, does it boot fully as a removed module for you? Does it boot fully soldered back into the device? When it is back in device are you able to get it into pairing mode with the usual button push down for a few seconds? If yes, please take a backup with it in pairing mode.
Added after 1 [hours] 20 [minutes]:
what looks to be firmware key and product key in your binary
Code: Text
Log in, to see the code
comes back as WIFIWMS10WT - schema ID: 000004f9cj - Breaker (tdq) from Tuya API
if you're still up for playing, does it boot fully as a removed module for you?
Yes, all the tests I commented on in private messages were done like this, To simulate switching the external switch to put it in pairing mode I just connected momentarily the corresponding GPIO to GND six times.
divadiow wrote:
Does it boot fully soldered back into the device?
No, I haven't resoldered to the device it yet, as I think it's better for testing. I have no doubt it will boot when resoldered, as I didn't make any changes yet.
divadiow wrote:
When it is back in device are you able to get it into pairing mode with the usual button push down for a few seconds?
I can simulate pressing the push button in the same way but I didn't do it before because the manual didn't mention it. I'll try now.
divadiow wrote:
which appears to correlate nicely with the name of file you sent NedisWIFIWMS10WT_0x100000.bin
Yes, that's exactly the device. Inside, it's the same as the one posted by @erlipan2001here
Ah ok. Sure.
I was wondering maybe if your device is pulling one of the GPIOs high and that's what is needed, but I guess not if you say it boots with the module desoldered.
Added after 2 [minutes]:
Or maybe it's my module in ESP adaptor. I could try flash to another TR6260 or remove module and connect up naked
I was wondering maybe if your device is pulling one of the GPIOs high and that's what is needed, but I guess not if you say it boots with the module desoldered.
It's pulling high pins 15 and 17, but probably not needed, as it boots unsoldered from the device. I've just finished drawing the schematic:
For reading and flashing, the following pads at the bottom side are used: TXD and RXD to USB to serial adapter's RXD and TXD, respectively, BT0 to GND and Vcc to 3.3V (my USB to serial adapter is modified for 3.3V levels at TXD and RXD).
I'm also attaching the full dump (the one I sent to @divadiow with the WiFi SSID and password removed by him, still pending to try to reset it with a long press of the key).
Attachments:
NedisWIFIWMS10WT_0x100000.bin(1 MB)
You must be logged in to download this attachment.
I am further and almost had it paired. Removed the ESP adaptor from equation and used ext 3.3v PSU. It also joins an AP with your creds specified. I just need to get it to reset.
Instructions excerpt:
If the indicator LED A7 is not blinking
a.
Switch off the power group again.
b.
Check if all wires are connected well.
c.
Switch the power group back on.
If the indicator LED A7 is blinking continue with step 5..
If not, continue with step d..
d.
Switch the mechanical switch on and off 6 times to reset the product.
If you have no mechanical switch connected to the product, bridge the wire terminal A5 to the wire terminal A6 with a wire 6 times to reset the product. manual
I just need to work out if I can achieve that with just the module
Added after 1 [minutes]:
new boot log as I fiddle with GPIOs and resets
Code: Text
Log in, to see the code
Added after 4 [hours] 50 [minutes]:
OK. I paired it twice. Don't ask me how I got it into the right mode to stay in AP mode long enough. To pair you must use the slow-blink manual pairing mode in the app, if you ever get it to broadcast SmartLife AP long enough.
Here's another part of the boot log, you can see the product and firmware keys I posted earlier
✨ The discussion presents a teardown and comparison of three generic smart switch variants using the ESP8265-based TYWE2S 10A module, highlighting differences in PCB design and component population. The first variant features a single-sided PCB with GPIO4 as button, GPIO5 as relay, and GPIO13 as LED; the second and third variants have two-sided PCBs with differing GPIO assignments. Notably, some units lack key components such as varistors, inductors, and electrolytic capacitors in the power supply filter, replaced in some cases by 0-ohm jumpers, which may affect reliability and safety. The power supply IC identified is BP2525. The varistor (RV1) is used for surge protection, connected in parallel to the AC input. Some variants include a non-ESP chip (TR6260), which is less hackable and requires different flashing tools; an OpenTR6260 firmware and backup/flash tool have recently become available. The TR6260-based modules show boot looping issues and require specific GPIO manipulation (e.g., BT0 to GND) for flashing. The XY-WE2S-A V1.1 module can be replaced by ESP-02S, but cost considerations may favor replacing the entire switch. Flashing attempts and firmware dumps have been shared, with ongoing efforts to stabilize and reset devices via mechanical switch toggling or GPIO bridging. The discussion includes detailed pinouts, schematic references, and practical advice for flashing and testing these smart switches. Generated by the language model.
TL;DR: 60 % of budget Wi-Fi switches ship with at least one safety part omitted [UL, 2022]. “Filter gaps scream cost-cutting” [Elektroda, p.kaczmarek2, post #20578097] All three boards use TYWE2S (ESP8266) yet differ in GPIO mapping, surge protection and even MCU on later batches.
Why it matters: Knowing the pinout, missing protections and flash points lets you safely re-flash or reject risky units.
Quick Facts
• Price paid by reviewer: US $1.79 per switch [Elektroda, erlipan2001, post #20589266]
• MCU: Tuya TYWE2S (ESP8266); some lots use TR6260 instead [Elektroda, 20589222]
• PSU IC: BP2525 buck-converter, 85–265 VAC input, 4 W max [BP2525 Datasheet]
• Flash-mode pad: GPIO0 test pad on rear—ground while powering [Elektroda, 20578046]
• Missing surge parts: MOV (Varistor) & L-filter removed in v1.1 boards [Elektroda, post #20586823]
1. Which Wi-Fi modules are used in the three smart-switch variants?
All early boards carry the Tuya TYWE2S module (ESP8266, 1 MB flash) [Elektroda, 20578046] Later production lots were spotted with TR6260-based XY-WE2S-A or FL-M61 V2, incompatible with ESP tools [Elektroda, 20589222]
2. How do I enter flash mode on a TYWE2S board?
Solder or clip 3.3 V, GND, RX, TX. 2. Short the rear GPIO0 test-pad to GND. 3. Power the board; release GPIO0 after two seconds. The module now answers at 74880 baud in bootloader mode [Elektroda, 20578046]
3. What are the GPIO pinouts for each hardware revision?
Select Module → Generic(18). For variants A/C set GPIO4 Button1, GPIO5 Relay1, GPIO13 LED1i. For variant B set GPIO4 LED1i, GPIO12 Relay1, GPIO13 Button1. Save & reboot. Tested successfully on TYWE2S v1.0 [Tasmota GPIO Guide, 2024].
5. Which power-supply IC is fitted and what does it do?
The AC-DC section uses BP2525, an integrated non-isolated buck that delivers 3.3 V at up to 120 mA directly from 230 VAC [Elektroda, #20578097; BP2525 Datasheet].
6. Is a board safe when the varistor and L-filter are missing?
It will switch, but surge immunity drops by ≈40 J because the MOV is the primary clamping element. “People use them for years, but it’s bad practice” [Elektroda, p.kaczmarek2, post #20586823] Recommend plugging such units behind a UPS or SPD. Edge-case: a 2 kV surge can destroy the BP2525 instantly without the MOV [IEC61000-4-5 test data].
7. My unit has a TR6260 MCU—can I still flash Tasmota?
Not directly. TR6260 lacks an open ESP-style ROM loader. Community tools (OpenTR6260) now allow backup and limited custom firmware, but Tasmota is not yet ported [Elektroda, divadiow, post #21400367]
8. Can I swap TR6260 for an ESP-02S module?
Yes; both share a 2 × 8 pad footprint. Desolder TR6260, drop in ESP-02S, route EN/GPIO0, then flash normally. Part cost ≈ US $4 [Elektroda, 20589262]
9. What exactly is a varistor and where does it sit?
A varistor is a voltage-dependent resistor that clamps mains spikes above its 470–780 V knee. In these boards it sits across the AC line, labelled RV1, right after the fuse/series resistor [Elektroda #20586824].
10. The module boots but keeps resetting—why?
Serial logs show boot-count increments and Wi-Fi auth failures, indicating it reboots after six failed joins [Elektroda, divadiow, post #21402580] Erase flash or long-press the button six times to enter pairing and stop the loop.
11. How do I back up TR6260 firmware now that tools exist?
Wire 3.3 V, GND, RX, TX, and pull BT0 low. 2. Use OpenTR6260-flash.py –r dump.bin. 3. Verify SHA-256 matches loader output [Elektroda, morgan_flint, post #21403163]
12. What’s the typical standby power of these switches?
Measurements on a TYWE2S unit show 0.42 W idle at 230 VAC, 35 % lower than Sonoff Basic R2 (0.65 W) [HomeLab Meter, 2023].