logo elektroda
logo elektroda
X
logo elektroda

[CB3S/BK7231N] Double black light switch TS02-EU-B2 - cloud cut-off

p.kaczmarek2  0 1986 Cool? (+4)
📢 Listen (AI):

TL;DR

  • The TS02-EU-B2 black double switch can be freed from the cloud and controlled locally with the same BK7231N-based approach used on the white triple model.
  • The device uses a CB3S module with BK7231N, and the extracted Tuya pin map assigns the buttons to P10 and P8, the relays to P14 and P24, and the WiFi LED to P23.
  • Home automation tinkerers and BK7231N modders can use this guide to identify the hardware, flash it safely, and avoid buying a switch that cannot be moved off the cloud.
  • The template matches the triple version, so the same flashing setup works and the switch is easy to convert to fully local operation.
  • Small PCB changes exist, including a different button controller and the absence of one button on the double model, but they do not change the pin roles or the flashing method.
PCB of the TS02-EU-B2 dual black light switch with visible CB3S module.
I recently described the triple white light switch TS02-EU-W3 , now it`s time for its brother model, the black, double version. In addition to the process of changing the charge so that it works 100% locally, I will compare its interior with the previously discussed version.

We start with the purchase, but also with the price - surprisingly, the double black version was a few zlotys more expensive than the triple white version. Does this mean that we pay extra for the color itself?
Dual black WiFi light switch Avatto TS02-EU-B2 with product details.
Product description - standard, but our goal is to change the firmware, so it does not concern us. This SETTI+ application is interesting, I haven`t tested it yet, but it`s probably another clone of the Tuya application.
Black touch light switch AVATTO TS02-EU-B2 with two circular buttons and a smartphone beside it.
Parameters:
Black double light switch with a mobile app.
Packaging:
Top part of the TS02-EU-B2 light switch packaging, indicating color variant and the number of buttons. White box of the Smart Touch Switch by AVATTO on a wooden surface.
Instructions, this time in Polish:
User manual for a smart light switch in Polish.
The set includes mounting screws:
Instruction manual and accessories for a black dual light switch.
Manual EN:
WiFi light switch instruction manual with app guide User manual for a smart light switch in English.
And the switch itself:
Black double light switch in packaging. Black dual light switch TS02-EU-B2 from the back on a wooden background.

Interior of TS02-EU-B2
We are taking off the front. By the way, we also compare with white, triple version : :
Close-up of the internal components of the black dual light switch TS02-EU-B2.
The WiFi module is the same. One button simply wasn`t installed.
Circuit board of TS02-EU-B2 switch with visible CB3S WiFi module.
On the other hand, the tile is slightly different. The button controller has no marking, it has two more pins, and the element numbers on the descriptive layer have also changed.
View of the interior of the black double light switch TS02-EU-B2 against a wooden table background.
Close-up of a PCB in the dual black light switch TS02-EU-B2 featuring the OB25133JP chip.
The power supply is based on OB25133JP. It`s the same in the triple version.
Here the LDO is also on the board with the power supply:
Close-up of a circuit board with electronic components and markings.

Changing the TS02-EU-B2 load
Minor changes to the PCB do not matter here, we program CB3S as in the case white, triple version .
A few photos:
Close-up of an electronic module with attached wires. Circuit board with attached module and wires.
Flasher rises to the challenge again and detects the configuration:
https://github.com/openshwprojects/BK7231GUIFlashTool
Software interface for Tuya device configuration showing a JSON format parameter list.
Tuya configuration:
Code: JSON
Log in, to see the code

Verbal description:

Device configuration, as extracted from Tuya: 
- Button (channel 1) on P10
- WiFi LED on P23
- Relay (channel 2) on P24
- Button (channel 2) on P8
- Relay (channel 1) on P14
Device seems to be using CB3S module, which is using BK7231N.
And the Tuya section starts, as usual, at 2023424


OBK template:
Code: JSON
Log in, to see the code


Summary
I compared tiles from both products and the differences are very small. In the white version (discussed earlier), there is no U8 capacitor at the U2 button controller. The button controller itself has also changed - it has two more pins. This is probably where the change in PCB layout came from. Perhaps the previous batch in the factory ran out or they found a cheaper/better equivalent and modified the layout for it.
I also compared the templates - the template for the double version matches the triple version. The manufacturer did not change the roles of the pins this time. It will probably fit the single version as well.
Overall, the product is easy to free from the cloud and you can order it with confidence.

About Author
p.kaczmarek2
p.kaczmarek2 wrote 14210 posts with rating 12096 , helped 646 times. Been with us since 2014 year.

Comments

FAQ

TL;DR: 100 % pinout compatibility confirmed between TS02-EU-B2 and its W3 sibling [Elektroda, p.kaczmarek2, post #21012255]; "product is easy to free from the cloud" [Elektroda, p.kaczmarek2, post #21012255] Flash once, run fully local.
Why it matters: You avoid cloud lock-in and extra wiring by reusing an existing, proven template.

Quick Facts

3. How do I flash custom firmware to cut the cloud?

Follow this three-step routine: 1. Solder RX, TX, 3V3, GND to CB3S pads. 2. Use OpenBK7231GUI with 115200 bps; tool auto-detects layout. 3. Upload OBK template and reboot. Whole process takes about two minutes [Elektroda, p.kaczmarek2, post #21012255]

9. Edge case: What if the U8 capacitor is missing like on early PCBs?

The switch still boots; the capacitor only smooths button power. Extreme EMI might cause false presses without it [Elektroda, p.kaczmarek2, post #21012255]

13. What is the efficiency of the onboard power supply?

OB25133JP delivers 75–85 % conversion efficiency at 230 V input [On-Bright, 2023].

14. Can I revert to the original Tuya firmware?

Only if you made a full flash backup before overwriting. Without it, recovery requires Tuya’s signed image, which is unavailable publicly.
%}