logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] 16A Mini Smart Switch from aliexpress - configuration

anthonythomas 4764 21
ADVERTISEMENT
  • Helpful post
    #1 20512325
    anthonythomas
    Level 9  
    Another AliExpress Choice Day purchase.

    Not been able to do a teardown as I feel like I'll destroy the device. Not easy to open.

    Case is different to other similar mini smart switches.
    Rear button tab is rotated
    Case is a matt PC finish - rather than the others I have which are a gloss finish.

    Different config also

    Used tuya-cloudcutter to flash OpenBK (didn't even set up in SmartLife app - just went straight to cloudcutter)
    These cloudcutter settings allowed the exploit
    > By firmware version and name
    > 1.2.1 - BK7231N / oem_bk7231n_control_switch
    > Aubess
    > 16A Mini Smart Switch

    LED_n 8
    Rel 26
    Btn 10
    TglChanOnTgl 23

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration
  • ADVERTISEMENT
  • #2 20512463
    p.kaczmarek2
    Moderator Smart Home
    Please don't forget to set the PowerSave 1 in short startup command or autoexec.bat, I have been already fixing one piece of this device with a low quality power supply:
    https://www.elektroda.pl/rtvforum/topic3898805.html
    Helpful post? Buy me a coffee.
  • #3 20557284
    ratseahr34
    Level 5  
    I think I have just bought the same device and eventually managed to flash with the BK7231App tools. It was very fussy about the cable. I did unsolder the CB2 board and connected a FTDI adapter and have now done an OTA update to the latest Version: 1.17.54.

    I was struggling with the Pin assignments so the above helped, but I used TglChanOnTgl 24 as 23 isn't connected. I don't know what it does and either option seems to work. The device packaging mentions model M-K601, so it is the same as the picture above.

    The device has S1 and Neutral connected so it can only be used in proper mains power situations, but it was only £1.50 so I didn't expect too much. It would be useful if the configuration was added to the master database as the Pins are unique.

    Thanks for all the excellent work here, this is all new to me!
  • #4 20557469
    spin55
    Level 17  
    In case it's useful:

    MINI SMART SWITCH (BK7321N)

    P6 --> LED_n
    P15 --> Rel
    P8 --> Btn
    P14 --> Btn_n S2

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration
  • #5 20557480
    anthonythomas
    Level 9  
    Whilst the box states MK601, the switch inside the box doesn't reference that product code or look like the switch on the box.
  • ADVERTISEMENT
  • #6 20557594
    ratseahr34
    Level 5  
    anthonythomas wrote:
    Whilst the box states MK601 the switch inside the box doesn't reference that product code or look like the switch on the box.


    I have tested the M-K601 pin settings above and they trigger the relay but not the LED from the webpage button, whereas these do work as expected.
    "pins": {
    "8": "LED_n;1",
    "10": "Btn;1",
    "24": "TglChanOnTgl;1",
    "26": "Rel;1"
    }
  • #7 20557635
    p.kaczmarek2
    Moderator Smart Home
    Can anyone post MK601 image so I can add it to the list with this new pinout? Thanks
    Helpful post? Buy me a coffee.
  • #8 20557806
    spin55
    Level 17  
    p.kaczmarek2 wrote:
    Can anyone post MK601 image so I can add it to the list with this new pinout? Thanks


    In his day I already mentioned it. I replaced CB2S with TYWE2S because OpenBeken was very slow in the CB2S module, even feeding the separate module with 3.3V.

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration

    I no longer remembered that I had changed the wifi module

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration

    P26 --> LED
    P6 --> Rel
    P7 --> Btn
    P10 --> Btn_n S2
  • #9 20558685
    spin55
    Level 17  
    It seems that there are two versions of the MK601.

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration

    P26 --> LED
    P6 --> Rel
    P7 --> Btn
    P10 --> Btn_n S2
  • #10 20559021
    ratseahr34
    Level 5  
    I think this is going to cause a lot of confusion as I have a different version/conf. I don't have a mini transformer, and looking at Spin55's pictures the pin connections are different too. My version is the same on the inboard (VCC/GRD) side, but the outboard side is only soldered across ADC and Pin 8, whereas Spin55's is CEN. P7 and P6. This would explain the Setting difference, For ref, the setting that work for my board are:
    "8": "LED_n;1",
    "10": "Btn;1",
    "24": "TglChanOnTgl;1", (I don't know what this does!)
    "26": "Rel;1"

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration
  • ADVERTISEMENT
  • Helpful post
    #11 20559214
    spin55
    Level 17  
    Definitely, although there are two packages for MK601, the pinouts do match.
    I have reviewed the YAML configuration of TYWE2S and taking into account the correspondence of pins with the CB2S board, it can be seen that the configuration is the same, despite having different external packaging:

    Pinout TYWE2S:

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration

    Pinout CB2S:

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration

    Esphome configuration:

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration

    TYWE2S --> CB2S mapping:

    IO04 --> Btn --> P7
    IO03 --> S2 --> P10 (Rx1)
    IO05 --> Relay --> P6
    IO14 --> LED --> P26

    MK601 configuration (two packages):

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration [BK7231N] 16A Mini Smart Switch from aliexpress - configuration

    P26 --> LED
    P6 --> Rel
    P7 --> Btn
    P10 --> Btn_n S2

    Added after 13 [minutes]:

    MINI SMART SWITCH (BK7321N)

    P6 --> LED_n
    P15 --> Rel
    P8 --> Btn
    P14 --> Btn_n S2

    [BK7231N] 16A Mini Smart Switch from aliexpress - configuration
  • #12 20559534
    ratseahr34
    Level 5  
    Yes, I agree the Pinouts match, but my unit does not have P6 or P7 connected - there is no soldered link. So the settings that show P6 and P7 don't work. I don't know how to see the Yaml file, but I have loaded your suggested settings and they don't work. I can control the switch with HA. I think I must have a third version. It was an AliExpress Choice as well.
  • #13 20559707
    spin55
    Level 17  
    https://obrazki.elektroda.pl/9226450300_1682687538.jpg

    Seeing the photograph of the board, it seems that you have connected ADC, P8, P24 and P26 (although it does not look good). I think I remember that ADC corresponds to P23 (I'm saying this from memory, now I can't confirm).

    Added after 1 [minutes]:

    ratseahr34 wrote:
    "8": "LED_n;1",
    "10": "Btn;1",
    "24": "TglChanOnTgl;1", (I don't know what this does!)
    "26": "Rel;1"
  • #14 20559835
    ratseahr34
    Level 5  
    You are right, ADC is P23, so I have changed my settings "23": "TglChanOnTgl;1", and this now enables the S1/S2 terminals.
    Thanks
    This, by the way, is what was stated in the original post.
    P8 --> LED_n on 1
    P10 --> Btn on 1
    P23/ADC --> TglChanOnTgl on 1
    P26 --> Rel on 1
  • #15 20720181
    Dzieju
    Level 15  
    Gentlemen I am looking for help with the mk601 randomly turns on by itself or randomly sir off:/ help . help .

    I have several of them and from an old order they work fine and the last ones I got just work how they want:/ .
  • #16 20720191
    p.kaczmarek2
    Moderator Smart Home
    If it's on OpenBeken then you need to set PowerSave 1 to give the power supply a bit of a rest and probably also replace the electrolytic capacitor (with a new, low ESR one):
    https://www.elektroda.pl/rtvforum/topic3898805.html
    Helpful post? Buy me a coffee.
  • #17 20720198
    Dzieju
    Level 15  
    I have them on gwr. I thought maybe something could be done without taking them apart :/.
  • #18 20720238
    p.kaczmarek2
    Moderator Smart Home
    So still without changing the firmware? You haven't uploaded OpenBeken

    That's as far as you can return them....
    Helpful post? Buy me a coffee.
  • #19 20720294
    Dzieju
    Level 15  

    Ok, thank you.
    I can dedicate one, how rooms it in your project?
  • #20 20720480
    p.kaczmarek2
    Moderator Smart Home
    Which rooms? You can group devices in OpenBeken using Tasmota Device Groups
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #21 21292131
    leonardocapone
    Level 4  
    Hi there,

    I just bought a MINI Smart Switch and here's the config I used....a bit different compared to those I see posted...
    chipset didn't change.

    configure pin 26 as you wish...I do like it as wifi led.
    ...in case you want a quick reference:

    pins": {
    "7": "Rel;0",
    "23": "Btn;0",
    "26": "WifiLED_n;0"
    }
  • #22 21453843
    ratseahr34
    Level 5  
    This set up has worked fine till now. I updated the firmware to 18.4, and rebooted, which it did. However it powered up in the OFF state. I tried to change this and set both Toggle Channels to 1 (had been 0) thinking this was the problem, but now it fails to connect.
    Am I going to have to start again - I have tried switching 6 times to enable hotspot mode but it doesn't work.
    Any suggestions?

    I have sorted it - it eventually reset and enabled the hotspot

Topic summary

The discussion revolves around the configuration and issues related to the BK7231N-based 16A Mini Smart Switch purchased from AliExpress. Users share their experiences with flashing the device using tuya-cloudcutter and BK7231App tools, noting variations in pin assignments and configurations. Some users report difficulties with different versions of the MK601 model, highlighting discrepancies in pin connections and functionality. Solutions include setting PowerSave in the firmware and replacing capacitors to address random activation issues. Users also discuss the importance of accurate pin mapping for successful operation and configuration in home automation systems.
Summary generated by the language model.
ADVERTISEMENT