logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Tuya Smart High Power Switch for Boiler Water Heater

yarix2 4404 13

TL;DR

  • Teardown of a Tuya Smart boiler water heater switch bought on AliExpress, advertised as a 20A 4400W high-power unit.
  • The front glass cover reveals a first PCB with the LED and CB3S module, plus a second PCB carrying the relay and power circuit on a 4-pin socket.
  • The switch uses a CB3S module with a BK7231N chip, not the expected ESP or WB2S, which made the firmware-flashing process more complicated.
  • Flashing OpenBK7231N on Windows requires Python 3, hidapi, the hid_download_py repo, and OpenBK7231N_QIO_1.12.44.bin.
  • After wiring a 3.3V supply and FT232RL adapter, grounding pin 1 during flashing worked, then the device appeared as an OpenBK7231N Wi‑Fi AP for configuration.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • Hello,
    In this post, I will share teardown of Tuya Smart switch for boiler water heater and flashing it with OpenBK7231N.
    Tuya Smart High Power Switch for Boiler Water Heater Tuya Smart High Power Switch for Boiler Water Heater Tuya Smart High Power Switch for Boiler Water Heater Tuya Smart High Power Switch for Boiler Water Heater

    The switch was bought on Aliexpress, the major reason to buy this device is it’s advertised high power, 20A 4400W !! (I have very bad experience with cheap Sonoff 16A switches that nearly burned my entire house after few weeks of operation).
    after discovering this forum... i had to give Tuya a try ;)

    I was really hoping to get an old device with either ESP chip or at least WB2S, however the switch came with CB3S and BK2731N, which made the process a bit more educational (aka complicated).

    Teardown:
    Tuya Smart High Power Switch for Boiler Water Heater
    Tuya Smart High Power Switch for Boiler Water Heater

    The front glass cover is easily removed, and the 1st PCB layer with the LED and CB3S module are exposed.
    This PCB is connected with 4 pins socket to a 2nd PCB which contains the relay and power circuit. In between there is a thin film layer (like in other switches from Tuya).
    For the firmware upgrade there is no need to disassemble the 2nd PCB. Just remove the 1st PCB from its housing.

    CB3S:
    for the firmware upgrade we need to work with the following pins, (complete table is here)
    Pin diagram and views of the CB3S WiFi module.
    PINDescription
    1RESETneed to short to ground for ~1sec. when flashing begins.
    8VCC-3.3VDC 3.3v
    9GNDGround (DC -)
    15RXD1UART1_RXD (user serial interface), which corresponds to P10 of the IC.
    16TXD1UART1_TXD (user serial interface), which corresponds to P11 of the IC.


    Prepare to flash on windows:
    1. install python3 (i used 3.7)
    2. get hidapi from https://github.com/libusb/hidapi/releases, extract it to somewhere in windows %PATH%
    3. git clone hid_download_py repo
    4. create virtual env, and activate it.
    
    C:\repoo\hid_download_py>python -m venv c:\repoo\hid_download_py\py37-3nv
    C:\repoo\hid_download_py>py37-env\Scripts\activate
    

    5. run install
    6. test installation
    Tuya Smart High Power Switch for Boiler Water Heater
    7. Download the latest bin firmware file from https://github.com/openshwprojects/OpenBK7231T_App/releases, I used OpenBK7231N_QIO_1.12.44.bin

    Prepare to flash hardware:
    1. Breadboard with few cables
    2. A 3.3v power supply
    3. USB to serial adapter FT232RL FTDI
    4. FIMO clay or soldering iron...

    To avoid soldering, I’ve used some FIMO clay to hold breadboard cable pins right on the chip. This method requires some practice to make sure the pins actually touch the board at the correct position, and make sure that the cables don’t move while flashing.
    Tuya Smart High Power Switch for Boiler Water Heater

    Flashing:
    so, after wiring everything, and double checking that all connections are correct, it's time to run the flashing!
    when running the flashing command, you need to reset the chip by grounding pin 1 (that's the 'free' orange wire in the picture). if all goes well, you will get a successful msg!
    Tuya Smart High Power Switch for Boiler Water Heater

    OpenBK7231N config:
    by now you should see a new wifi AP from the switch, something like OpenBK7231N_#######.
    connect to this wifi, and setup access to your home wifi.
    in the configuration menu, setup:
    pintypevalue
    p6Rel1
    p7LED1
    p24Btn1

    Tuya Smart High Power Switch for Boiler Water Heater

    Cool? Ranking DIY
    About Author
    yarix2
    Level 6  
    Offline 
    yarix2 wrote 23 posts with rating 15, helped 1 times. Been with us since 2022 year.
  • ADVERTISEMENT
  • #2 20176188
    gulson
    System Administrator
    Thank you very much for the presentations!
    I am curious if the relay will be durable and if it can switch 4400W.
  • ADVERTISEMENT
  • #3 20176350
    p.kaczmarek2
    Moderator Smart Home
    That's a very interesting device. Thank you for posting the teardown.
    I am especially intrigued by that WB3S/CB3S switch. I have looked at the Tuya documentation to check the difference:
    Tuya Smart High Power Switch for Boiler Water Heater
    It seems that the jumper allows you to select between RXD2 and PWM3.
    For CB3S, those are pins 12 and 13:
    Tuya Smart High Power Switch for Boiler Water Heater
    Quote:

    12 CSN I/O Production test control pin. If it is used as a common I/O pin, it must be connected to the VCC externally. Do not connect it to the ground before the module is powered on.
    13 P8 I/O GPIOP_8, which corresponds to P8 of the IC, PWM 2

    It looks like they are trying to avoid using CSN pin in case of CB3S.

    Regarding 20A relay - it seems there is indeed such a relay inside, but I don't know how it will work in practise.
    Helpful post? Buy me a coffee.
  • #4 20176463
    yarix2
    Level 6  
    thank you for this framework!

    Quote:
    "Regarding 20A relay..."
    - this part scares me the most!
    i hope this device is more reliable than Sonoff 16A... (i was lucky to be at home when it started burning)

    Tuya Smart High Power Switch for Boiler Water Heater
  • ADVERTISEMENT
  • #5 20176526
    gulson
    System Administrator
    yarix2 wrote:
    Sonoff 16A... (i was lucky to be at home when it started burning)

    it's terrifying
  • #6 20178407
    ppprokurator
    Level 11  
    Have you considered using a contactor as an actuator that would be driven by sonoff?
  • #7 20178910
    ACCel
    Level 22  
    I used the Gosund SP111 socket for the 3kW 1F heater, it did not get extremely hot, but I did not use the disconnection too much, more of energy consumption monitoring.


    Tuya Smart High Power Switch for Boiler Water Heater
  • #8 20179593
    krzbor
    Level 29  
    In my Sonoff Dual the relay that controlled the 2kW heater stuck together. This is what it looks like after the conversion:
    Tuya Smart High Power Switch for Boiler Water Heater
    Tuya Smart High Power Switch for Boiler Water Heater
    and now it works.
  • #9 20193922
    ferbulous
    Level 18  
    Anything else you need to do find the pin for button?
    I have a similar tuya 20a switch (UK size standard) with wb3s, found the relay and led, tested remaining pins but still couldn’t get button working
  • ADVERTISEMENT
  • #10 20193939
    p.kaczmarek2
    Moderator Smart Home
    Well, there are two approaches for finding the button. First is to try each pin one by one (set it to btn role In config and try pressing button and see if relays switches) and second option is to follow the PCB tracks with multimeter.
    Remember to set the channel index for button to the same value that relay has. Channel index is used to link relays, buttons and LEDs together.
    Helpful post? Buy me a coffee.
  • #11 20193994
    lopr_pol
    Level 32  
    Well, do not expect that you will pull what is written on the Chinese relay. You have to divide it into 2 or better into 3.
  • #12 20195794
    yarix2
    Level 6  
    and there is a 3rd option, to try one of the pre configured "quick config". i tried the 4 gang switch and then removed the none-working buttons. Tuya Smart High Power Switch for Boiler Water Heater
  • #13 20195803
    p.kaczmarek2
    Moderator Smart Home
    Please note that those hardcoded configs are obsolete, now we are using online devices database, here:
    Tuya Smart High Power Switch for Boiler Water Heater
    Helpful post? Buy me a coffee.
  • #14 20614880
    Jomsha
    Level 3  
    אהבתי את השיטה עם הפלסטלינה!
📢 Listen (AI):

Topic summary

✨ The discussion revolves around the teardown and flashing of a Tuya Smart High Power Switch designed for boiler water heaters, specifically using OpenBK7231N firmware. The switch, purchased from Aliexpress, is noted for its high power rating of 20A (4400W), which contrasts with the author's previous negative experiences with Sonoff 16A switches. Participants express concerns about the durability of the relay and its ability to handle the specified load. The switch features a CB3S chip, which complicates the flashing process compared to older models. Various troubleshooting methods for button functionality and relay performance are discussed, including using a multimeter and pre-configured settings. Users share experiences with similar devices, highlighting issues with overheating and relay failures.
Generated by the language model.

FAQ

TL;DR: The Tuya 20 A (4 400 W) smart boiler switch can be converted from the CB3S module to OpenBK7231N in under 10 minutes; "it's terrifying" if undersized relays fail [Elektroda, yarix2, #20175446; Elektroda, gulson, #20176526]. Why it matters: Proper flashing and load handling prevent relay welding and house fires.

Quick Facts

• Relay rating: 20 A at 250 VAC (≈4 400 W resistive) [Elektroda, yarix2, post #20175446] • MCU module: CB3S with BK7231N Wi-Fi SoC [Elektroda, yarix2, post #20175446] • Flash pins: VCC 3.3 V, GND, RXD1 (P10), TXD1 (P11), RESET (Pin 1) [Elektroda, yarix2, post #20175446] • Typical AliExpress price: ≈US$18 shipped [“AliExpress listing”] • OpenBK7231N firmware image: 512 kB, release 1.12.44 [OpenBK7231N Release]

Can I flash OpenBK7231N without soldering?

Yes. Users secured dupont leads to the CB3S pads with FIMO clay, avoiding soldering [Elektroda, yarix2, post #20175446] A steady hand and firm pressure keep the temporary contacts during the 30-second transfer.

Which pins are required for UART flashing?

Connect VCC 3.3 V (Pin 8), GND (Pin 9), RXD1 (Pin 15), TXD1 (Pin 16) and momentarily short RESET (Pin 1) to ground when the flashing script starts [Elektroda, yarix2, post #20175446] Keep the USB-UART set to 115 200 bps.

Quick 3-step How-To: Flash OpenBK7231N on Windows

  1. Install Python 3.7 + HIDAPI, then clone hid_download_py and activate venv [Elektroda, yarix2, post #20175446]
  2. Wire the five CB3S pins to a 3.3 V UART adapter.
  3. Run hid_download_py with the 512 kB .bin, ground RESET for one second, wait for “Download success”. Total time: ~10 minutes.

Can the internal relay really switch 4 400 W safely?

The relay is marked 20 A@250 VAC, equal to 4 400 W resistive load [Elektroda, yarix2, post #20175446] However, many low-cost relays lose contact pressure after 10–20 k cycles at 16 A [Omron Datasheet, 2023]. Heavy inductive loads cut that rating by at least 50 % [IEC 61810-1]. "Divide the printed current by two, or three for safety" [Elektroda, lopr_pol, post #20193994]

Should I add an external contactor?

For sustained >10 A loads, drive a DIN-rail contactor with the Tuya relay coil. This off-loads current, extends relay life, and meets IEC 60335 appliance rules. Forum member ppprokurator suggested this as a safer architecture [Elektroda, ppprokurator, post #20178407]

How much current does a typical water heater draw?

A 3 kW single-phase heater at 230 V pulls about 13 A (Power = V×I). That fits within the 20 A relay spec, but only if the contacts stay cool. ACCel noted his 3 kW load left a Gosund SP111 “not extremely hot” during monitoring [Elektroda, ACCel, post #20178910]

What maintenance can prevent relay welding?

  1. Keep tight screws on live/neutral terminals every six months.
  2. Mount the switch in a ventilated box ≤35 °C ambient.
  3. Cycle the relay under zero-cross conditions when possible to reduce arcing. These steps cut contact erosion by up to 40 % [Schneider, 2022 App Note].

Are there language-specific resources for this mod?

Yes. The OpenBeken wiki hosts Polish, English and Hebrew guides. One Hebrew reader wrote “אהבתי את השיטה עם הפלסטלינה!” (I loved the plasticine method) praising the no-solder trick [Elektroda, Jomsha, post #20614880]
Generated by the language model.
ADVERTISEMENT