logo elektroda
logo elektroda
X
logo elektroda

[BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104

spln 2811 6
ADVERTISEMENT
  • Module name: Moes Smart Switch Module MS-104
    Protocol: WiFi 2,4GHz
    Input Voltage: 90 - 250V AC 50/60Hz
    Max Current: 10A
    Wifi module: Tuya CB2S (BK7231N) datasheet

    This is the 1 gang vesion of the module there is also a 2 gang version available (obviously with the same PCB based on tear-down).
    Bought it on aliexpress from MOES Online store. It has also Zigbee, Zigbee+RF, WiFi+RF versions.
    4 gang version has different internals, see tear-down in other topic: Link
    Flashed latest release with python flasher: hid_download_py

    Pictures of the module:
    [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104 [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104 [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104 [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104 [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104


    Tear-down of the module:
    [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104 [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104 [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104 [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104 [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104

    Pin config:
    [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104

    Pin23: Button1
    Pin24: Relay1
    Pin26: Buzzer (works as PWM)

    Edit:
    One easy way I have found to put CB2S into programming mode to put a solder blob between CSN pad and the cooling pad next to it to ground it:
    [BK7231N CB2S] Moes Smart Switch 1 gang WiFi - MS-104

    Cool? Ranking DIY
    About Author
    spln
    Level 5  
    Offline 
    spln wrote 7 posts with rating 9, helped 1 times. Been with us since 2023 year.
  • ADVERTISEMENT
  • #2 20409374
    p.kaczmarek2
    Moderator Smart Home
    Thanks! I haven't seen a device with buzzer on configurable pin yet. Do you think it would be useful to add some scriptable commands for playing tunes with buzzer?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20410068
    spln
    Level 5  
    Well, I don't have a use case in mind for the buzzer in my setup.
    But some people might want to play around with it for like an alarm or smart doorbell.
  • ADVERTISEMENT
  • #4 20410122
    p.kaczmarek2
    Moderator Smart Home
    How was it working with original Tuya firmware?
    Helpful post? Buy me a coffee.
  • #5 20411399
    spln
    Level 5  
    Well I haven't tried it with Tuya fw. My guess is that it's the same as the dimmer version with the Tuya MCU: Link
    Perhaps the idea was to notify connection issues by sound when the module is installed in a wall box behind the switch.
    Also this one doesn't have any LEDs, they have added the buzzer instead. In the linked thread it's mentioned that the beeps correspond the LED blinks on that module.
  • ADVERTISEMENT
  • #6 20726105
    spln
    Level 5  
    I have created a PIR motion sensor mod of this sensor. See pictures below.

    Used the place of the second relay for this. Checked the PCB and found out that one of the holes for the relay has 5V. There is also a ground pad nearby, and the other whole is not connected anywhere, so that became the PIR sensor output to easily get to the back of the PCB to connect to the CB2S.
    Used this sensor from Ali: aliexpress.com

    Pin config is the following:
      "pins": {
        "7": "dInput_NoPullUp;0",
        "23": "Btn;0",
        "24": "Rel;0"
      },
    


    Moes smart switch module with PIR sensor
    Close-up of a modified PCB with a yellow wire soldered on the surface.
    Modified PIR motion sensor mounted on a PCB with a relay and other electronic components.
    Close-up of a modified PCB with a PIR motion sensor, relay, and CB2S module.
  • #7 20726469
    p.kaczmarek2
    Moderator Smart Home
    Very nice mod. Given enough free GPIOs, you can still connect more sensors, like a DHT11 which requires just one GPIO and can give you temperature and humidity measurements.
    Helpful post? Buy me a coffee.

Topic summary

The Moes Smart Switch Module MS-104 is a 1 gang WiFi-enabled device utilizing the Tuya CB2S (BK7231N) module, supporting a voltage range of 90-250V AC and a maximum current of 10A. Users have discussed the potential utility of a buzzer on a configurable pin, suggesting it could be used for alarms or smart doorbells, although some users do not have specific use cases in mind. The original Tuya firmware's performance remains untested by some users, but it is speculated to function similarly to other Tuya devices. Additionally, a user has modified the switch to integrate a PIR motion sensor, utilizing available GPIOs for further sensor connections, such as a DHT11 for temperature and humidity measurements.
Summary generated by the language model.
ADVERTISEMENT