logo elektroda
logo elektroda
X
logo elektroda

[BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA)

binchicken 4335 9

TL;DR

  • The Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA) is a $60 AUD Australian smart wall switch built around a BK7231T Tuya chip.
  • Removing the faceplate and four cover screws exposes the PCB, which can be pulled out for flashing after inserting a 5-pin header strip into the pin holes.
  • The header pins map top to bottom as 3.3V, TXD1, RXD1, TXD2, and Ground, with OpenBK7231T flashing triggered through the WB3S CEN pin.
  • OpenBK7231T booted normally, WiFi configuration succeeded, and the relay, button, and WiFi LED pins were assigned as P6, P9, P14, P24, and P26.
  • Prying the PCB out requires care because the contact bins in the lower left can bend, and the ground harness on the chip is optional.
AI summary based on the discussion. May contain errors.
ADVERTISEMENT
📢 Listen (AI voice):
  • This is a short teardown of the Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA). It is sold in Australia and costs approximately $60 AUD from Bunnings.

    The switch uses a BK7231T Tuya chip.

    Pull off the faceplate and remove the cover by unscrewing the four screws shown. A tool is useful to pry away the cover.
    [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA) [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA) [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA)

    Delicately pull out the PCB, being careful not to bend the contact bins in the lower left-hand side. A tool such as a knife is useful to do this.
    [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA) [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA)

    Installing OpenBK7231T:

    I inserted a 5-pin header terminal strip into the pin holes shown. From top to bottom (with the WB3S chip shown upright in the top right corner of the PCB) these correspond to:
    1. 3.3V
    2. TXD1
    3. RXD1
    4. TXD2
    5. Ground

    I connected 1-3 via female Dupont wires to the corresponding pins on an ESP flashing tool. I inserted a jig/harness on top of the WB3S chip that made direct contact with the ground pin as shown, and connected this also to a ground pin on the flashing tool. The harness is optional; I could also have just soldered it directly to the chip.

    [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA) [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA) [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA) [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA) [BK7231T] Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA)

    Lastly I connected a female Dupont wire to the RESET pin on the flashing tool and made contact with the WB3S CEN pin to trigger flashing mode during the flashing process.

    Web App Configuration:
    The chip started up fine with no issues. I configured WiFi and added the pin configuration below. This was adapted from Tasmota device information found here.

    - P6: Relay 1
    - P9: WiFiLed
    - P14: Btn 1
    - P24: Btn 2
    - P26: Relay 2

    Cool? Ranking DIY
    About Author
    binchicken
    Level 2  
    Offline 
    binchicken wrote 2 posts with rating 10. Been with us since 2022 year.
  • ADVERTISEMENT
  • #2 20326571
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14717
    Help: 659
    Rate: 12795
    Thank you for presentation. Btw, isn't the "4.???" pin CEN? Altough I am not sure...
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20433420
    binchicken
    Level 2  
    Posts: 2
    Rate: 10
    p.kaczmarek2 - Apologies about the late reply. My multimeter indicates that pin 4 is TXD2, not CEN.
  • #4 20433584
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14717
    Help: 659
    Rate: 12795
    That's as I expected. Anyway... everything works correctly, right? If you need any help, just tell me.
    Helpful post? Buy me a coffee.
  • Button inputs spamming repeated long-press events

    #5 20559695
    mattmck
    Level 4  
    Posts: 5
    I've managed to use cloudcutter to pull one of these switches out of the cloud, and I have openbeken installed at the moment.

    What's strange is that via Home Assistant or the openbeken web interface button responses are perfect, but if I go to the switch and physically toggle the buttons they often don't work. In looking in the log file I am seeing a lot of the below, which looks like the buttons are somehow spamming data - hence often not working.

    Does anyone know how to fix this?

    The logs are showing repeatedly showing this, updating with new lines every second:
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:14 Button_OnLongPressHold
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:14 Button_OnLongPressHold
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:14 Button_OnLongPressHold
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:14 Button_OnLongPressHold
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:14 Button_OnLongPressHold
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:14 Button_OnLongPressHold
    Info:GEN:24 Button_OnLongPressHold
  • #6 20559698
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14717
    Help: 659
    Rate: 12795
    It means that software thinks that button is pressed by the user all the time. It may mean that you have chosen wrong GPIO for the button (one that has no button in reality) or that the Tuya is using inversed standard for this button and you have to use Btn_n instead of Btn role.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 20559756
    mattmck
    Level 4  
    Posts: 5
    Spot on, fixed. The issue was using btn_n incorrectly. No fixed and all is responsive. Thank you.
  • ADVERTISEMENT
  • CEN hardwired high, power-cycle to enter flash mode

    #8 20568428
    Dernheart
    Level 1  
    Posts: 1
    Thanks for the fantastic write up. It worked perfectly for me!

    A couple of points of interest I found:
    - I am wondering why you opted to connect ground directly to the module instead of pin 5? I have inspected the board closely and can confirm pin 5 is ground. It seemed easier to connect here :)
    - My USB to Serial only came with a 5v power output (3.3v option for TX/RX only). I used a bench power supply for the 3.3v.
    - I did not need the CEN line at all. In my revision of the board this seems to have been hard wired to +3.3v (effectively shorting my power supply).
    - In lieu of the CEN line, once BK7231Flasher was waiting for the reset at the start, I turned the 3.3v power supply off then on did the trick.
  • Power cycling with VDD grounding to force reset

    #9 20568518
    p.kaczmarek2
    Moderator Smart Home
    Posts: 14717
    Help: 659
    Rate: 12795
    I am using power supply (turn off and on the power) trick all the time and it works very well.

    In some cases, while disconnecting the power from WiFi module, I sometimes have to temporarily connect VDD of WiFi module (the one that is disconnected from power supply) to ground, and then connect it back to VDD of power supply. This seems to be the case because there must be some little current flowing through RX/TX that keeps WiFi module not reset somehow.
    Helpful post? Buy me a coffee.
  • #10 21780647
    rohanb
    Level 4  
    Posts: 17
    Rate: 1
    Hi Everyone
    There is a new series 3 version of these that uses a BK7231N

    Pins are

    Code: JSON
    Log in, to see the code
📢 Listen (AI voice):

Topic summary

✨ Discussion of a teardown and OpenBK7231T/OpenBeken flashing procedure for the Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA), sold in Australia. The switch is based on a BK7231T Tuya module, and the post describes opening the enclosure, accessing the PCB, identifying header pins, and installing firmware. Follow-up replies clarify pin mapping, including that pin 4 is TXD2 rather than CEN, and note that some board revisions have CEN tied to 3.3 V so power-cycling is used instead of a reset line during flashing. Later messages cover a button input issue where physical switches repeatedly reported long-press events; the fix was selecting the correct inverted button role (Btn_n). A later update mentions a newer Series 3 version using a BK7231N with a different pin map.
AI summary based on the discussion. May contain errors.

FAQ

TL;DR: 60 AUD smart double-gang touch switch (BK7231T) is flashable in under 10 minutes; "pin 5 is ground" [Elektroda, Dernheart, post #20568428], enabling cloud-free control [Elektroda, binchicken, post #20309029]

Why it matters: Local firmware means no vendor lock-in and faster button response.

Quick Facts

• Price at Bunnings: Approx. 60 AUD / 40 USD [Elektroda, binchicken, post #20309029] • MCU: Beken BK7231T Wi-Fi SoC [Elektroda, binchicken, post #20309029] • Flash voltage: 3.3 V DC (do not exceed) [Elektroda, Dernheart, post #20568428] • Load rating: 240 V AC, 10 A max per gang [Bunnings, 2023] • Typical flash time with BK7231Flasher: <10 min [Elektroda, binchicken, post #20309029]

How do I safely open the switch for flashing?

  1. Pull off the plastic faceplate.
  2. Unscrew the four corner screws and pry the cover.
  3. Gently lever out the PCB, avoiding the spring contacts in the lower-left corner [Elektroda, binchicken, post #20309029]

My log shows endless “Button_OnLongPressHold”. What’s wrong?

The firmware sees a constant key press. You likely assigned the wrong GPIO role. Use Btn for active-high or Btn_n for active-low inputs [Elektroda, p.kaczmarek2, post #20559698]

Can I power the board from a 5 V-only USB-to-Serial adapter?

No. Feed the module a regulated 3.3 V; use a bench supply if the adapter lacks 3.3 V on VCC [Elektroda, Dernheart, post #20568428] Over-voltage risks permanent damage.

What load can each gang handle?

The retail listing states 240 V AC at 10 A per channel, equal to 2.4 kW resistive load [Bunnings, 2023].

Edge case: why does power cycling sometimes fail to reset the module?

Residual current via RX/TX can latch the BK7231T. Briefly short VDD to GND during the power-off phase, then reconnect VDD and power up [Elektroda, p.kaczmarek2, post #20568518]

Quick 3-step method to flash without soldering CEN

  1. Connect 3.3 V, GND, TX, RX to header.
  2. Start BK7231Flasher; when prompted, cut power.
  3. Restore power after one second; the bootloader enters flashing mode [Elektroda, Dernheart, post #20568428]

How responsive is the switch after moving off the cloud?

Users report instant web and Home Assistant actions (<100 ms), equal to native Tuya response [Elektroda, mattmck, post #20559695]

What’s the most common flashing mistake?

Selecting incorrect button polarity. This causes ghost presses and unreliable toggling until Btn/Btn_n roles match the hardware [Elektroda, p.kaczmarek2, post #20559698]
AI summary based on the discussion. May contain errors.
ADVERTISEMENT