Elektroda.com
Elektroda.com
X

[BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W

riskorja 2082 6
  • This is a short teardown of the DIY Mini Smart Switch 2-way from UNSH model SS8839-16A-W based on BK7231N.
    It uses custom PCB, so no Tuya module to replace, already bought one :-)

    Basic Information


    Brand: UNSH - Tuya
    Model: DIY Smart Switch SS8839-16A-W
    Chip: BK7231N on board
    Seller: AliExpress 16A Tuya WiFi Smart Switch 2-way

    Photos


    The switch is very easy to open so i wont go into details, but remember, this device it's using high voltage, so make sure it's not connected to the mains.

    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W

    Flashing-Uploading OpenBeken firmware


    Used tuya-cloudcutter to flash OpenBK (had to setup in SmartLife/Tuya app - after first flash device did not connect to cloudcutterflash AP)
    Followed this instructions tuya-cloudcutter INSTRUCTIONS.md
    and video Flash OTA using tuya-cloudcutter
    > By firmware version and name
    > ~ Mini Smart Switch
    > 1.2.1 - BK7231N / oem_bk7231n_control_switch
    OpenBK7231N_UG_1.15.648.bin (CCtr flash)

    Requirements:

    RPi to install GitHub tuya-cloudcutter
    Firmware OpenBK7231N_UG_1.15.648.bin
    Router/AccesPoint for temporary local cloudcutterfalsh AP
    some patience and persistence :-)

    Device could not connect to cloudcutterflash AP after reboot,
    so I needed to create a "second" cloudcutterflash AP on spare Router with internet connection as stated in Note: of INSTRUCTIONS.md.
    Had to disable WiFi on RPi - tuya-cloudcutter
    After that it was possible to enter WiFi credentials thru Tuya app.
    Turned off "second AP", enabled tuya-cloudcutter and the process of flashing OpenBeken continued.

    Pin settings for this device.

    TglChanOnTgl - 6 - PWM0 - ch0
    Rel - 8 - PWM1 - ch0
    Btn - 23 - ADC3 - ch0
    LED - 26 - PWM5 - ch0

    Simple test environment
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W

    ! This smart switch connects power line N-out and S1 together that makes it unsafe for use other than with the classic wall switch !


    I would like to thank everyone who enabled this to work
    Elektroda and OpenBeken Team
    tuya-cloudcutter Team
    and all of enthusiast who are posting and filming their work


    Payed 3,63 € For UNSH Tuya 16A Tuya WiFi Smart Switch 2-way and 2,18 € form ESP-02S module witch I could not use.
    with alternatives
    ~12 € is the price for Athom 3 Way Relay for ESPHome if buying 3 pieces with shipping
    or
    9~13€ Sonoff MiniR2 from local store

    It was worth for the experience, tinkering, flashing, rebooting

    Cool? Ranking DIY
    About Author
    riskorja
    Level 7  
    Offline 
    riskorja wrote 5 posts with rating 3, helped 3 times. Been with us since 2023 year.
  • #2
    p.kaczmarek2
    Moderator Smart Home
    Thank you for submitting the teardown.
    As usually with this kind of the device, I would like you to enable the BK-specific power save function: PowerSave 1 in startup command (use backlog for multiple commands).
    Otherwise you'll have to do that repair soon:
    https://www.elektroda.pl/rtvforum/topic3898805.html
  • Helpful post
    #3
    riskorja
    Level 7  
    >>20524167

    This is a short teardown of the same seller and the same order and the same package
    DIY Mini Smart Switch 2-way from UNSH model SS8839-16A-W based on BK7231N.

    Basic Information


    Brand: UNSH - Tuya
    Model: DIY Smart Switch SS8839-16A-W
    Chip: BK7231N on board
    Seller: AliExpress 16A Tuya WiFi Smart Switch 2-way

    Photos


    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W

    but different pins

    Pin settings for this device.

    TglChanOnTgl - 6 - PWM0 - ch0
    Rel - 7 - PWM1 - ch0
    Btn - 23 - ADC3 - ch0
    LED - 26 - PWM5 - ch0

    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W

    Flashing-Uploading OpenBeken firmware


    Used tuya-cloudcutter to flash OpenBK (had to repeat)
    Followed this instructions tuya-cloudcutter INSTRUCTIONS.md
    and video Flash OTA using tuya-cloudcutter
    OpenBK7231N_UG_1.15.673.bin (CCtr flash)
    > By firmware version and name
    > 1.2.1 - BK7231N / oem_bk7231n_control_switch
    > Tuya generic
    > Mini Smart Switch

    Requirements:

    Acer E3-111 netbook with Debian 11 on external disk (disabled SmartBoot to enable Linux to boot )
    with docker on debian
    to install GitHub tuya-cloudcutter
    Firmware latest ...UG...

    Had to repeat procedure after that the AP of mini switch was recognized and upgraded.

    ! This smart switch connects power line N-out and S1 together that makes it unsafe for use other than with the classic wall switch !


    I would like to thank everyone who enabled this to work
    Elektroda and OpenBeken Team
    tuya-cloudcutter Team
    and all of enthusiast who are posting and filming their work
  • Helpful post
    #4
    riskorja
    Level 7  
    >>20524167

    This is a short teardown of the same seller and the same order and the different package
    Smart Mini Switch 2-way from UNSH model EZB-WBZS1H16N-A V1.0 based on BK7231N.

    Basic Information


    Brand: UNSH - Tuya
    Model: EZB-WBZS1H16N-A V1.0
    Chip: BK7231N on board
    Seller: AliExpress 16A Tuya WiFi Smart Switch 2-way

    Photos


    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W

    but different board layout and pins
    Relay has marking but should be 16A
    and soldering space for 433 MHz chip and antenna

    Pin settings for this device.

    LED_n - 6 - PWM0 - ch0
    Btn - 8 - PWM2 - ch0
    TglChanOnTgl - 14 - - ch0
    Rel - 15 - - ch0

    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W

    Flashing-Uploading OpenBeken firmware


    Used tuya-cloudcutter to flash OpenBK
    Followed this instructions tuya-cloudcutter INSTRUCTIONS.md
    and video Flash OTA using tuya-cloudcutter
    OpenBK7231N_UG_1.15.673.bin (CCtr flash)
    > By firmware version and name
    > 1.2.1 - BK7231N / oem_bk7231n_control_switch
    > Tuya generic
    > Mini Smart Switch

    Requirements:

    Acer E3-111 netbook with Debian 11 on external disk (disabled SmartBoot to enable Linux to boot )
    with docker on debian
    to install GitHub tuya-cloudcutter
    Firmware latest ...UG...

    ! This smart switch connects power line N-out and S1 together that makes it unsafe for use other than with the classic wall switch !


    I would like to thank everyone who enabled this to work
    Elektroda and OpenBeken Team
    tuya-cloudcutter Team
    and all of enthusiast who are posting and filming their work
  • #5
    fot201113
    Level 2  
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W
    I opened 2 new Mini Smart Switches and they seem to be this version here. Can anyone help me locate the flashing pins?
  • #6
    p.kaczmarek2
    Moderator Smart Home
    So you have the same board as me?
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W
    Here is GND (black) and 3.3V (white):
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W
    Here is RX and TX:
    [BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W
    It's a small world.
  • #7
    fot201113
    Level 2  
    hahah that was blazing fast!!
    thanks a lot!!!