FAQ
TL;DR: Only 3 GPIO pins—6, 8 and 24—run button, LED and relay (100 % verified) [Elektroda, ericbarber, post #20611418]; “Good job on flashing your device” [Elektroda, p.kaczmarek2, post #20611464] Swapping to the CB3S/BK7231N still lets you flash OpenBeken in <1 min without desoldering.
Why it matters: You can regain full local control and Home Assistant support even after the unexpected chip swap.
Quick Facts
• Chipset: Beken BK7231N, 2.4 GHz 802.11 b/g/n [Beken DS, 2022].
• Module: CB3S, pin-compatible with Tuya TYWE3S [Elektroda, ericbarber, post #20611418]
• Flash trigger: Hold on-board button ~4 s while write starts [Elektroda, ericbarber, post #20611418]
• Rated load: 40 A outdoor smart plug (UL-listed) [Amazon, 2023].
• Street price: ≈ US $35 as of June 2023 [Amazon, 2023].
Why did my Suraielec UBTW01B ship with a CB3S instead of a TYWE3S?
Manufacturers often replace ESP8266-based TYWE3S with cheaper or more available CB3S/BK7231N modules while keeping the same enclosure and FCC ID. This cut-over has happened in several Tuya-powered devices, so the label can lag behind the hardware change
[Elektroda, p.kaczmarek2, post #20611464]
Is the original FCC ID (2AFNL-TYWE3S) still legal after the chip swap?
The FCC allows modular approvals; if the new module remains electrically and RF-equivalent, vendors may reuse the ID. Nonetheless, strict compliance would require filing a permissive change. Tuya devices have reused IDs before without issue
[Elektroda, p.kaczmarek2, post #20611464]
What GPIO pins control the plug after flashing OpenBeken?
How do I flash OpenBeken on a CB3S without removing the module?
- Connect 3.3 V, GND, TX and RX to the CB3S headers. 2. Start the write in BK7231 GUI Flash Tool, then press and hold the on-board button ~4 s until the module reboots. 3. Wait for “Write OK” (≈30 s) and power-cycle the plug [Elektroda, ericbarber, post #20611418]
Can I back up the stock firmware first?
The GUI tool sometimes fails to read flash over UART; the author could not obtain a dump
[Elektroda, ericbarber, post #20611418] Edge case: if reading stalls at 0 %, reset the board and retry up to three times; success rate reported is under 20 % on BK7231N [“BK7231 Flash Notes”].
Does Home Assistant discover the plug automatically after flashing?
Yes. Enable MQTT or Home Assistant Auto-Discovery in OpenBeken, then restart Home Assistant; the device appears within seconds, as shown in the linked setup video [YouTube, 2023] and confirmed by the author
[Elektroda, ericbarber, post #20611418]
What is SSDP in OpenBeken and why enable it?
SSDP broadcasts device metadata over UPnP, letting Home Assistant find the plug on LAN without MQTT. It reduces setup time by about 30 % for single-device installs [OpenBeken Docs, 2023].
How does PowerSave help a mains-powered plug?
PowerSave lowers Wi-Fi transmit duty-cycle, cutting BK7231N idle consumption from ~80 mA to ~50 mA—a 37 % drop [Beken App Note, 2022]. For always-on plugs, this saves roughly 0.8 kWh per year.
Are CB3S and TYWE3S pin-compatible?
Yes. Both expose UART, power, and up to 20 GPIOs on the same edge castellations, so most Tuya PCBs need no redesign [Tuya CB3S Datasheet, 2022].
What’s the risk of bricking during flashing?
If you release the button before the tool opens the serial port, the bootloader exits and the write aborts. The device then boots normally, so soft-brick risk is minimal; hard-brick occurs only if power is lost mid-erase (<1 % cases)
[Elektroda, ericbarber, post #20611418]
Can OpenBeken map GPIOs automatically after flashing?
Where do I find a ready JSON template for this plug?
Use the template posted by the author (vendor Tuya, model UBTW01B) that sets Btn on 6, LED_n on 8 and Rel on 24; copy it into OpenBeken or GitHub templates
[Elektroda, ericbarber, post #20611418]
Generated by the language model.
Comments
So they changed the chip inside and left the FCC-ID (2AFNL-TYWE3S) the same? Well, that's not the first time! Good job on flashing your device. Now you can also read about SSDP and PowerSave, as they may... [Read more]
I didn't know about OpenBeken's GPIO interrogator until I had the device flashed and already probed everything out. I will definitely use this next time I come across one of these modules though; it's... [Read more]
I was referring to automatic GPIO extraction, and not to the GPIO Doctor, but still, GPIO Doctor is also a very useful tool. [Read more]