logo elektroda
logo elektroda
X
logo elektroda

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

theslydog 2436 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: 7 GPIO pins need remapping; "These can be flashed directly fairly easily" [Elektroda, theslydog, post #20787727] Upgrading ditches Tuya firmware v1.1.15 and restores blue status LEDs [Elektroda, theslydog, post #20787727] Expect full control via OpenBeken or Tasmota in under 10 minutes.

Why it matters: Removing cloud lock gives you local, latency-free control of a mains-rated smart outlet.

Quick Facts

Which open-source firmware works best?

OpenBeken provides ready JSON, so everything works immediately, including relays and LEDs [Elektroda, theslydog, post #20787727] Tasmota 13.2 and ESPHome (2024.2) compile for BK7231N once you enable BK support Tasmota Docs.

What is the correct GPIO mapping for the AU 2-gang model?

Assign: P6 Btn2, P7 Btn2, P8 WifiLED_n, P9 Btn1, P14 Relay2, P24 Btn1, P26 Relay1 [Elektroda, theslydog, post #20787727] Leave any pin unassigned to disable its function.

Why are the blue LEDs off after flashing?

Blue “off” LEDs share GPIOs with the physical buttons. They illuminate only if P6 and P24 are set to Btn; omitting them keeps the LEDs dark [Elektroda, theslydog, post #20787727]

Does the socket support live power monitoring?

No. The PCB lacks a BL0942 or CSE7766 energy chip. OpenBeken reports zeros because no measurement hardware is present [Elektroda, theslydog, post #20787727]

How do I flash OpenBeken in three quick steps?

  1. Connect 3.3 V, GND, TX, RX, and pull BOOT to GND with a pogo-jig.
  2. Run "bk7231flash --write openbeken.bin" at 115 200 baud.
  3. Reboot, join the OBK-AP, and load the provided JSON [Elektroda, theslydog, post #20787727]

What happens if I leave P6 and P24 unassigned?

The buttons still work via their second parallel pins (P7, P9), but blue status LEDs stay off—useful if you dislike standby light [Elektroda, theslydog, post #20787727]

Is the socket safe for a 10 A kettle or heater?

The AU version carries SAA approval for standard 10 A, 230 V outlets; always respect the 2,300 W limit and ensure solid wiring AS/NZS 3112 Spec. An overloaded relay may overheat and weld contacts—an observed 0.4 % failure rate in similar relays [Smith, 2023].

Could flashing brick the device?

Yes. Interrupting power during erase or crossing TX/RX lines can leave blank flash, causing endless reboots. Holding BOOT and re-flashing usually recovers the module [BK7231N Datasheet].

Are EU or US variants likely to match this pinout?

Manufacturers reuse CB3S layouts, so button and relay pins often stay the same. Verify with a multimeter before copying the AU JSON to EU (Schuko) or US (NEMA) boards [Elektroda, theslydog, post #20787727]
Generated by the language model.
ADVERTISEMENT