logo elektroda
logo elektroda
X
logo elektroda

Manhot Store's BK7231N / CB3S Tuya Smart 4 Gang Switch: WiFi not Zigbee, CB3S Chip Inside

celulari 2160 14
ADVERTISEMENT
  • I've bought a wall switch from Manhot Store in aliexpress with 4 "clicky" buttons.

    AliExpress link: https://www.aliexpress.com/item/1005005901971631.html
    Four white wall switches with varying numbers of buttons are shown on an online store page.

    Manhot Store's BK7231N / CB3S Tuya Smart 4 Gang Switch: WiFi not Zigbee, CB3S Chip Inside

    The device is listed as a Zigbee Smart switch, but it's actually a WiFi switch!! with a CB3S chip inside.

    Smart wall switch packaging with Wi-Fi and Zigbee features. Cardboard packaging of a Smart Light Switch with compatibility information for Google Assistant and Amazon Alexa printed on it. Orange box with a QR code and information about app availability on the App Store and Google Play.

    Now the fun part!

    White wall switch with four buttons and an LED indicator.
    Wall switch with four buttons and visible electrical connections. Interior view of a wall switch housing with five buttons and LEDs on a circuit board.

    Circuit board with visible buttons and Made in China labeling. Wall switch module with CB3S chip on a printed circuit board. CB3S module on a circuit board with visible traces and components.

    Regarding functionality, when a button is pressed, the corresponding relay is triggered.
    The button has a light that shows whether the relay is open or closed - it will show up as orange when the relay is ON and blue when the relay is OFF.

    The device is powered by a CB3S chip, although not all of its pins are soldered on the PCB. Upon checking the datasheet for the MCU, we can determine the required pins to flash the device:

    Datasheet: https://developer.tuya.com/en/docs/iot/cb3s?id=Kai94mec0s076

    Soldered a small wire to the CEN pin to put the device into bootloader mode in order to flash a new firmware.
    Pin Name Pin Number
    CEN 3
    VCC 8
    GND 9
    RX1 15
    TX1 16



    Circuit board with a CB3S module connected by wires to an adapter on a computer mat background.
    Close-up of a CB3S module on a circuit board with connected wires. Electronic module with connected wires on a blue background. Back view of a red circuit board with soldered wires.

    I was able to flash OpenBK using the new BK7231GuiFlashTool and the OpenBK7231N_QIO_1.17.308.bin firmware under windows, but no luck using the flash tool under linux (ubuntu).
    I've attached the original .json device template.

    This is the actual OpenBK pin configuration of the module.
    PinTypeChannel
    P6WifiLED_n-
    P7Relay4
    P8Relay3
    P9Relay2
    P10Button4
    P14Relay1
    P23Button3
    P24Button2
    P26Button1

    Now only the orange led turn on when the relay is on, but the blue light doesn't work. it's fine...
    Screenshot of the OpenBK7231N interface with toggle switch buttons.
    Screenshot of OpenBK module pin configuration for a Wi-Fi switch.

    Cool? Ranking DIY
    About Author
    celulari
    Level 2  
    Offline 
    celulari wrote 3 posts with rating 1. Been with us since 2023 year.
  • ADVERTISEMENT
  • Helpful post
    #2 20842494
    p.kaczmarek2
    Moderator Smart Home
    Thanks for the review. That's very strange, you got a WiFi version instead of Zigbee, you should get a refund!

    Regarding the template, can you also add GPIO in a form of OBK template from the Web App?

    EDIT: I converted your attachment from Tuya to OBK format with https://openbekeniot.github.io/webapp/templateImporter.html and I got:
    Code: JSON
    Log in, to see the code


    Added after 55 [minutes]:

    Ok I have all I need, device should be now live at https://openbekeniot.github.io/webapp/devicesList.html , thank you!
    Helpful post? Buy me a coffee.
  • #3 20843825
    celulari
    Level 2  
    Hi!

    Playing a bit with the GPIO finder i've dicovered that PIN 11 controls the BLUE LEDS. Selecting "LED" for pin 11 turns on the blue LEDs when the relay is off. when the relay is on, le blue leds are off and the orange ones are on. Selecting "LED_n" on pin 11 the BLUE LEDs are off al lthe time, the orange ones only turn on when the relay is on. Is better that way so it doesn't looks like a christmas tree :)

    Code: JSON
    Log in, to see the code


    PS: already asked for the refund before tinkering with the switch
  • #4 20843872
    p.kaczmarek2
    Moderator Smart Home
    That's interesting and very useful. By the way, If you want a permanent setting, you can change LED_n to AlwaysHigh or AlwaysAll.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20844726
    celulari
    Level 2  
    p.kaczmarek2 wrote:
    That's interesting and very useful. By the way, If you want a permanent setting, you can change LED_n to AlwaysHigh or AlwaysAll.


    Thanks for the tip!! I'm trying to find the way to get the opposite behaviour of the leds. blue when the relay is on and orange when is off. my other light switches work that way and is more intuitive, because the blue light is brighter than the orange one, so gives the impression that the switch is activated but it's actually off. I don't know if that's even possible.
  • #6 21131603
    chabalalasmike
    Level 6  
    >>20843825
    What about the reset button at the top, what is the pin number?
  • #7 21131676
    p.kaczmarek2
    Moderator Smart Home
    Whoa, very good question! It seems that we've missed one pin:
    Screenshot showing OpenBeken configuration tool with highlighted backlit_io_pin element.
    It seems I need to add backlit_io_pin to our flasher soon.
    Helpful post? Buy me a coffee.
  • #8 21136227
    chabalalasmike
    Level 6  
    >>21131676
    Any progress on finding that missing pin?
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #11 21140242
    p.kaczmarek2
    Moderator Smart Home
    I can't see this particular GPIO in the JSON. Can you try getting Tuya binary (Web App -> Flash tab) and attach it here so I can investigate if it was correctly extracted?
    Helpful post? Buy me a coffee.
  • #12 21310683
    divadiow
    Level 34  
    p.kaczmarek2 wrote:
    It seems I need to add backlit_io_pin to our flasher soon

    yes. I have a Tuya device with 3 LEDs and this in the keys.

    "backlit_io_pin": 23

    Code: Text
    Log in, to see the code
  • #13 21310971
    p.kaczmarek2
    Moderator Smart Home
    Helpful post? Buy me a coffee.
  • #14 21310982
    divadiow
    Level 34  
    ah yes. a few commits not in June 5th build it seems

Topic summary

The discussion revolves around a Tuya Smart 4 Gang Switch purchased from Manhot Store on AliExpress, which was incorrectly labeled as a Zigbee device but is actually a WiFi switch utilizing a CB3S chip. Users express surprise at the mislabeling and suggest seeking a refund. Technical insights are shared regarding GPIO configurations, including the control of LED indicators and relay functions. The conversation also touches on the identification of a reset button pin and the need for further investigation into GPIO settings. Users collaborate to create a device template for better functionality and customization.
Summary generated by the language model.
ADVERTISEMENT