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

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

[BK7231N/CB3S] Shawader Smart WiFi Wall Socket Teardown And Flashing Tasmota/Esphome like OBK

theslydog 2463 1

TL;DR

  • A Shawader Tuya-based Smart WiFi Wall Socket using a BK7231N [CB3S] board gets torn down as an Au-type generic Tuya 2 Gang GPO.
  • The unit flashes directly with a jig, and mapping P6 and P24 as Btn inputs restores the blue off LEDs.
  • The Tuya app reported module version V1.1.15, and the suggested OpenBeken pinout uses P8 for WifiLED_n, P14/P26 for relays, and P6/P7/P9/P24 for buttons.
  • OpenBeken shows power monitoring, but it only ever displays zero, so the author suspects there is no BL0942.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • This is a short teardown of Au type Generic Tuya 2 Gang GPO

    Basic information:
    Brand: Shawader (Tuya based)
    Model: Smart WiFi Wall Socket
    Chip: BK7231N [CB3S]
    Local Vendor: https://shawader.aliexpress.com/store/4884178
    These switches look a lot like Makegood GPOs

    Front and internal parts of a Wi-Fi smart wall socket Au 2 Gang type. Interior view of Shawader smart Wi-Fi wall socket.
    Rear view of a smart Wi-Fi wall socket with N, L, E labels. Packaging of Shawader Smart WiFi Wall Socket.

    Main Module version in the Tuya app was V1.1.15 (I couldn't find a match in Tuya-Cloudcutter).
    However, these can be flashed directly fairly easily. I used a jig so I didn't need to solder anything.

    This is the Au GPO but I would think the EU and US ones would be similar.
    The OpenBeken firmware shows power monitoring but I am not sure if that is correct or actually works. It only ever shows zero. I do not think it has a BL0942.

    This is what worked for me, I found the Blue Off LEDs did not come on after flashing only the Red On LEDs. However, by adding Btn to P6 and P24 then the Blue Off LEDs returned. So if you do not want Blue LEDs for Off leave P6 and P24 blank.

    Pinout for Au 2 Gang GPO:
    P6 Btn 2*
    P7 Btn 2
    P8 WifiLED_n
    P9 Btn 1
    P14 Rel 2
    P24 Btn 1*
    P26 Rel 1


    JSON for Au 2 Gang GPO:
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Shawader Smart WiFi Wall Socket",
      "model": "2 Gang GPO",
      "chip": "BK7231N",
      "board": "CB3S",
      "flags": "1024",
      "keywords": [
        "GPO"
      ],
      "pins": {
        "6": "Btn;2",
        "7": "Btn;2",
        "8": "WifiLED_n;0",
        "9": "Btn;1",
        "14": "Rel;2",
        "24": "Btn;1",
        "26": "Rel;1"
      },
      "command": "backlog startDriver CSE7766; SetupEnergyStats 1 30 120 0",
      "image": "https://obrazki.elektroda.pl/6590760200_1698396978.jpg",
      "wiki": ""
    }

    Cool? Ranking DIY
    About Author
    theslydog
    Level 4  
    Offline 
    theslydog wrote 7 posts with rating 2. Been with us since 2023 year.
  • ADVERTISEMENT
  • #2 20793076
    theslydog
    Level 4  
    Posts: 7
    Rate: 2

    Update on this Shawader Smart WiFi Wall Socket
    The above Shawader Smart Switch is actually imported into Australia under the name of Trojan.
    Name: Trojan
    Model No: RY-WS02F
    Au Cert is SAA-2200058-EA

    The only difference is the switch plate has a single ring for on/off rather than double. Everything else is identical and all parts are interchangeable.

    In the below image the Shawader PCB (with less glue marks) is below the Trojan one.

    View of Shawader Smart WiFi switch PCB and packaging with Trojan logo. PCB of Shawader smart socket located under Trojan board.
    Shawader Smart Wall Socket module with electrical markings and certification. Two black PCBs lying on a white background, differing only in the amount of adhesive traces.
📢 Listen (AI):

FAQ

TL;DR: For owners of 2-gang Shawader or Trojan BK7231N CB3S wall sockets, the working OpenBeken setup uses 7 assigned pins, and “can be flashed directly fairly easily” with a jig, no soldering. This FAQ gives the exact pin map, JSON template, LED fix, and the main limitation: energy readings stay at zero on this board. [#20787727]

Why it matters: This thread turns an undocumented Tuya wall socket into a repeatable OpenBeken setup with known pin mappings and known limits.

Item Shawader Smart WiFi Wall Socket Trojan RY-WS02F
Branding Shawader Trojan
Module BK7231N on CB3S Reported identical hardware
Front plate Different style Single ring for on/off
PCB / parts Reference board Parts reported interchangeable
Market note Tuya-based generic AU GPO Imported into Australia

Key insight: The thread’s most actionable finding is simple: the Shawader and Trojan versions are hardware-identical enough to share the same OpenBeken configuration. The only reported functional caveat is that power monitoring remains at zero. [#20793076]

Quick Facts

  • The tested socket is a Tuya-based Australian 2 Gang GPO branded Shawader, using a BK7231N chip on a CB3S module. [#20787727]
  • The Tuya app reported main module firmware V1.1.15, and that version was not found in the poster’s Tuya-Cloudcutter matches. [#20787727]
  • The working OpenBeken map assigns P26 = Rel 1, P14 = Rel 2, P8 = WifiLED_n, plus button functions on P6, P7, P9, and P24. [#20787727]
  • After flashing, the blue off LEDs returned only when P6 and P24 were also configured as button pins; otherwise only the red on LEDs worked. [#20787727]
  • The Trojan variant is identified as Model RY-WS02F with Australian certification SAA-2200058-EA, and its parts were reported as interchangeable with Shawader. [#20793076]

How do I flash a Shawader Smart WiFi Wall Socket with a BK7231N CB3S module to OpenBeken, Tasmota, or ESPHome without soldering?

You can flash it directly with a jig, without soldering wires to the board. 1. Open the Australian 2 Gang GPO and access the BK7231N CB3S module. 2. Use the referenced Thingiverse jig so the programming contacts touch the board pads. 3. Flash the replacement firmware, then apply the working OpenBeken pin map. The poster states the device “can be flashed directly fairly easily” this way, and used that method on the V1.1.15 unit. [#20787727]

What is the correct OpenBeken pinout for the Shawader Tuya-based 2 Gang GPO wall socket?

The working OpenBeken pinout is P6 Btn 2, P7 Btn 2, P8 WifiLED_n, P9 Btn 1, P14 Rel 2, P24 Btn 1, and P26 Rel 1. That map was tested on the Shawader Smart WiFi Wall Socket 2 Gang GPO with a BK7231N CB3S module. It is the clearest device-specific configuration in the thread and matches the posted JSON template. [#20787727]

Why do the blue off LEDs stop working after flashing the Shawader Smart WiFi Wall Socket, and how do P6 and P24 fix it?

The blue off LEDs stop working because the flashed configuration needs extra button assignments to restore that state logic. The poster reports that after flashing, only the red on LEDs worked. Adding Btn to P6 and P24 brought the blue off LEDs back. If you do not want blue LEDs for the off state, leave P6 and P24 blank. [#20787727]

What does the BK7231N chip with a CB3S board mean in a Tuya smart wall socket?

It means the wall socket uses a BK7231N-based Wi‑Fi control module built on the CB3S board variant. “BK7231N is a Wi‑Fi control chip that runs the socket’s smart functions, while CB3S is the module board carrying that chip inside this Tuya wall socket.” In this thread, that hardware combination is the basis for the posted OpenBeken pin map and JSON template. [#20787727]

Why does power monitoring in OpenBeken show zero on this Shawader wall socket even when the energy driver is configured?

It shows zero because the board likely lacks the power-monitoring hardware expected by the configured driver. The posted JSON starts the CSE7766 energy driver, but the author says OpenBeken only ever shows zero. The same post also says the socket does not appear to have a BL0942, which supports the conclusion that the energy path is missing or unsupported on this PCB. [#20787727]

What is a BL0942, and why does its absence matter for power monitoring in a smart wall socket?

A BL0942 is the energy-measurement chip the author looked for on this board when checking why readings stayed at zero. “BL0942 is a power-monitoring chip that measures energy data for a smart socket, and its absence matters because firmware can show zero even when an energy driver is enabled.” In this teardown, the author does not think the Shawader board has one. [#20787727]

Which JSON template should I use for the Shawader Smart WiFi Wall Socket 2 Gang GPO in OpenBeken?

Use the posted JSON template that names the device as Shawader Smart WiFi Wall Socket, model 2 Gang GPO, chip BK7231N, and board CB3S. Its key values are flags 1024, P6 and P7 as Btn 2, P8 as WifiLED_n;0, P9 and P24 as Btn 1, P14 as Rel 2, and P26 as Rel 1. It also includes the command backlog startDriver CSE7766; SetupEnergyStats 1 30 120 0. [#20787727]

How do the Shawader and Trojan RY-WS02F smart wall sockets compare, and what parts are interchangeable between them?

They compare as the same hardware sold under two names, with only a faceplate styling difference reported. The update says the Australian Trojan unit is Model No. RY-WS02F, certification SAA-2200058-EA, and differs only because the switch plate has a single ring for on/off instead of a double ring. Everything else was described as identical, and all parts were said to be interchangeable. [#20793076]

What is Tuya Cloudcutter, and why might firmware version V1.1.15 not appear in its supported list?

In this thread, Tuya Cloudcutter is the compatibility list the author checked before deciding to flash directly instead. The author says the main module version shown in the Tuya app was V1.1.15 and that no match could be found in Tuya-Cloudcutter. That means this exact firmware build was not present in the list the author consulted, so the jig-based direct flashing route was used instead. [#20787727]

What’s the best way to put a BK7231N CB3S socket into flashing mode using a jig from Thingiverse?

The best documented method here is to use the referenced Thingiverse jig so you can make temporary programming contact without soldering. 1. Disassemble the socket to reach the module. 2. Seat the jig on the programming points carefully. 3. Flash immediately while maintaining stable contact pressure. This method was chosen specifically so the author “didn’t need to solder anything,” which is the main practical advantage. [#20787727]

How should I configure the WifiLED_n, Rel, and Btn pins on a Shawader or Trojan BK7231N wall socket after installing OpenBeken?

Configure WifiLED_n on P8, relays on P14 and P26, and buttons on P6, P7, P9, and P24. The relay map is P26 = Rel 1 and P14 = Rel 2. The button map is split across two pins per gang: P9 and P24 for Btn 1, and P6 and P7 for Btn 2. That exact layout is the working configuration reported for the Shawader 2 Gang GPO and should also fit the interchangeable Trojan version. [#20787727]

Why are Shawader Smart WiFi Wall Sockets said to look similar to Makegood GPOs, and what should I check before reusing a template?

They are said to look similar because the poster noticed the same general product style, not because the internal mapping was confirmed identical. Before reusing any template, check the actual module type, the PCB layout, and the full pin assignment. On this device, the verified combination is BK7231N on CB3S with seven mapped pins, so appearance alone is not enough to guarantee a safe template match. [#20787727]

What safety checks should I do before tearing down and flashing an Australian Tuya-based wall socket like the Shawader or Trojan model?

The thread supports one clear safety check: verify the exact product identity before reusing parts or settings. The Trojan update gives a concrete Australian model number, RY-WS02F, and certification code SAA-2200058-EA, then states its parts are interchangeable with the Shawader version. That makes model and certification matching the safest thread-backed check before teardown, comparison, or firmware work. [#20793076]

How can I tell whether the EU or US versions of this Tuya wall socket use the same hardware layout as the Australian 2 Gang GPO?

You cannot confirm that from this thread alone; you can only treat similarity as a starting point. The author says the unit shown is the AU GPO and thinks the EU and US ones “would be similar,” but gives no teardown proof for those variants. To tell, compare the module type, PCB layout, and pin functions against the verified AU map before applying the same template. [#20787727]

What does the OpenBeken command 'backlog startDriver CSE7766; SetupEnergyStats 1 30 120 0' do on this Shawader wall socket?

It attempts to start the energy driver and apply energy-stat settings, but on this board it does not produce useful readings. The command appears in the posted JSON template for the Shawader 2 Gang GPO. The important failure case is that OpenBeken still showed only zero afterward, which is why the author doubted the presence of compatible metering hardware on this socket. [#20787727]
Generated by the language model.
ADVERTISEMENT