logo elektroda
logo elektroda
X
logo elektroda

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

binchicken 3171 8
ADVERTISEMENT
  • 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
    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  
    p.kaczmarek2 - Apologies about the late reply. My multimeter indicates that pin 4 is TXD2, not CEN.
  • #4 20433584
    p.kaczmarek2
    Moderator Smart Home
    That's as I expected. Anyway... everything works correctly, right? If you need any help, just tell me.
    Helpful post? Buy me a coffee.
  • #5 20559695
    mattmck
    Level 4  
    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
  • ADVERTISEMENT
  • #6 20559698
    p.kaczmarek2
    Moderator Smart Home
    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  
    Spot on, fixed. The issue was using btn_n incorrectly. No fixed and all is responsive. Thank you.
  • #8 20568428
    Dernheart
    Level 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.
  • #9 20568518
    p.kaczmarek2
    Moderator Smart Home
    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.

Topic summary

The discussion revolves around the teardown and modification of the Deta Grid Connect Smart Double Gang Touch Light Switch (6912HA), which utilizes a BK7231T Tuya chip. Users share insights on the installation of OpenBK7231T firmware, troubleshooting button response issues, and the correct GPIO configurations. One user experienced persistent button press signals, which were resolved by correcting the button role assignment. Additional tips include using a bench power supply for 3.3V and the importance of proper grounding connections. The community emphasizes the need for careful handling of the PCB during disassembly and offers various methods for resetting the WiFi module during firmware flashing.
Summary generated by the language model.
ADVERTISEMENT