logo elektroda
logo elektroda
X
logo elektroda

Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed

Diymcu 2709 16
ADVERTISEMENT
  • #1 20360591
    Diymcu
    Level 3  
    I buy a switch for roller shutter
    There’s a WB2S I flash it but I don’t understand how to configure it. There’s another mcu in the board and I don’t know what it does.
    Could you help me to configure it ?
    Thanks
    Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed
  • ADVERTISEMENT
  • #2 20360871
    p.kaczmarek2
    Moderator Smart Home
    Hello, can you provide more information? First of all, you need to determine the IO roles of WB2S module. Which signals are used for switches, for relay, etc? Can you also attach here some photos from the inside (also show how you connect programmer - for future users) and the connections instruction from the manufacturer?

    That "another mcu" may be a TuyaMCU, but again, without a good quality photos from the inside it's hard to tell. It might be just a power supply controller, who knows. Please provide more information and I will try to help.

    If that's really a TuyaMCU, then most likely we will be figuring out the dpIDs instead of WB2S IO roles, because in TuyaMCU devices, the relays, buttons, etc are connected to TuyaMCU and not to the WiFi module.

    Don't worry, I'm obk developer, I can write you a driver if something is currently missing from codebase, I just need solid information what's going on in your device.
    Helpful post? Buy me a coffee.
  • #3 20360917
    Diymcu
    Level 3  
    Thanks
    I try to understand how it’s connected but it’s not so easy. It’s a roller shutter 2 buttons, 2 relays a buzzer, Wifi led and push button.

    There’s nothing on the “MCU” I don’t think it’s tuyamcu because there are only 16 pins

    I don’t have all photos because after flash I solder it again but if it works I have another one and I can do it.

    I configure as attached. The relay 2 works but the first one no Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed
  • #4 20360946
    p.kaczmarek2
    Moderator Smart Home
    Let's first get IO working, then we will worry about the driver. I may write one for you if that's needed.

    Quote:

    The relay 2 works but the first one no

    Do you have two buttons, each for each relay, on main page?
    Are you sure that you got the pin mapping right? Maybe relay is on the another pin?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20361047
    Diymcu
    Level 3  
    Hi
    Thanks for the support

    Yes I have 2 buttons
    I’m not sure about anything. I’m just trying to figure it out
    I tried with the tester and I see that when buttons are on on the app pwm4 and pwm5 are on but it could be that it’s the wrong map
    It’s difficult to follow the paths on the circuit
  • #6 20361077
    p.kaczmarek2
    Moderator Smart Home
    Okay then can you just check each pin one by one in OpenBeken? Just set Relay role and see if it clicks? Then set relay role for next pin, etc etc.... easy to do.

    Here are the pins that are routed on the WB2S:
    Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed
    Thats not much, just a few pins, you can try them one by one
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 20361987
    Diymcu
    Level 3  
    Hi
    Happy new year

    I try to find the pins as you suggested
    Wifi is on P10(RXD1) because I set it as relay 1 and when I press button 1 the led was on.
    I try all other pins but relay 1 never toggles.
    As soon as I set relay 1 as P0 TXD2 the module doesn’t work properly. It loses all settings and after few seconds exits from AP mode and it’s not reachable anymore.
    I try to set it very fast. Now it connects to the network but after few seconds is not reachable any more
  • ADVERTISEMENT
  • #8 20362089
    p.kaczmarek2
    Moderator Smart Home
    Please provide more information and I will try to help.
    Are you saying that setting P0 TXD2 as relay breaks stability? Otherwise, device is stable?

    First of all, take a look here:
    Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed
    TXD2, also called 2TX, is on the back of the module. It's a test pad. It is most certainly NOT used for any IO control in your device.

    Why are you trying to change role for a pin that's clearly not used in your device?
    Helpful post? Buy me a coffee.
  • #9 20362306
    Diymcu
    Level 3  
    When I go back home I will provide more info
    The problem is that I removed WB2S from the board because TX or RX was not connected and it was inaccessible so I just disordered flash and soldered again. Now it’s difficult to see the pads

    I tried P0 because I tried other pins and relay 1 never triggered. It could be also that the device doesn’t work properly otherwise I don’t understand why it never triggers.

    As soon as I configured P0 it became unstable. Many times it goes AP mode.
    It seems that it works only for a few seconds and freezes

    When I go back home I will send as much info as I can

    Thanks
  • #10 20362335
    p.kaczmarek2
    Moderator Smart Home
    Diymcu wrote:

    As soon as I configure P0 it became unstable. Many times it goes AP mode.
    It seems that it works only for few seconds and freezes

    This is indeed a bug and a useful information, I will check that, thanks, but my point still stands - I don't think that P0 is used in your device. It's only a test pad, I never seen it being soldered to relay.

    Apart from that - yes, you must check where that problematic relay is connected. Which pin is used for that.

    Maybe first check with multimeter (investigate the PCB) and them we will try to figure out why the given IO doesn't work?
    Helpful post? Buy me a coffee.
  • #11 20362867
    Diymcu
    Level 3  
    I try to investigate the module
    I start from relay but there’s something that I don’t understand
    The relay is W11-1A2STLE-H
    One of the pins of the coil is connected to main (line). The coil is 12v (I look at the data sheet) so why one of the pins of the coil is attached to the main ?
    Look : Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed Moes MS-108WR WB2S Curtain Switch Configuration: Roller Shutter MCU Help Needed

    Added after 23 [minutes]:

    Connected pins are : Rx PW1 PW2 PW0 and Vbat GND PW5 PW4
  • #12 20383555
    spin55
    Level 17  
    Can you provide support to integrate blinds via MQTT in Home Assistant?
    Something like:

    - platform: mqtt
    
        name: Alex Roller
    
        state_topic: "obk8C01E9A6/roller/0"
    
        command_topic: "obk8C01E9A6/roller/0/command"
    
        position_topic: "obk8C01E9A6/roller/0/pos"
    
        set_position_topic: "obk8C01E9A6/roller/0/command/pos"
    
        payload_available: "true"
    
        payload_not_available: "false"
    
        qos: 1
    
        retain: false
    
        optimistic: false
    
        payload_open: "open"
    
        payload_close: "close"
    
        payload_stop: "stop"
    
        position_open: 100
    
        position_closed: 0
  • #13 21331109
    GAAD
    Level 17  
    Hello
    Did you manage to do anything with this roller shutter controller?
    I am changing the software in my Tuya devices one by one. The relays went without a problem but the temperature sensors and roller shutter controllers did not.

    I have two types of roller shutter controllers, the first one is the MS-108 Wi-Fi Curtain Module. I am attaching a photo and the content downloaded from bk7231t via bk7231flasher.
    Wojtek
    MS-108 Wi-Fi Curtain Module and electronic circuit board. MS-108 Wi-Fi curtain control module with exposed circuit board and casing. MS-108 Wi-Fi curtain control module with circuit board and electronic module. Close-up of a circuit board showing an electronic component labeled U4.
  • #15 21332217
    p.kaczmarek2
    Moderator Smart Home
    GAAD wrote:
    The relays went without a problem but the temperature sensors and roller shutter controllers did not.

    Can you specify more details what exactly went wrong? Are you saying that you have trouble with flashing this device?
    Helpful post? Buy me a coffee.
  • #16 21336395
    GAAD
    Level 17  
    Now I read the descriptions and watch your videos with instructions. I will ask about the thermometer, probably in the appropriate thread, it is already working. As for the curtain switch - my UART converter is damaged, I am waiting for a new one and I am reading about cloudcutter. After the curtain switch I will deal with the thermostats, I also have two types. Another question about communication with Home Assistant, the first switches after replacing them with ESP I converted to Tasmota and HA sees their status, the next ones I have on OPB and HA after some time shows their status as "unknown", I guess I have to configure something in them so that they send their status to HA from time to time.
    Wojtek
  • #17 21345840
    GAAD
    Level 17  
    Hi
    Cloudcutter as I read it is pulling the configuration and key from the Tuya devices and then disconnecting from the Tuya cloud. As HA warns that they will soon end support for Local Tuya so I am converting what I can to MQTT.
    1 I initially replaced the WB2S with an ESP-02S from Tasmota. It works but in HA it shows up as a normal dual relay module. It has the ability to switch on both relays at the same time and I don't really know how to calibrate the motor timing.

    2 The UART converters have arrived and I have reprogrammed the WB2S to OBK. I copied the json from cloudcutter and imported via the WEB application. It works in a similar way to Tasmota i.e. I have three buttons first and third for control - I can control the operation of the relays independently with them. The second is probably reset but it doesn't work as the LED doesn't light up either.

    Configuration after import:
    
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Full Device Name Here",
      "model": "enter short model name here",
      "chip": "BK7231T",
      "board": "TODO",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "6": "Btn;2",
        "7": "Btn;1",
        "8": "Btn;3",
        "10": "WifiLED_n;0",
        "24": "Rel;3",
        "26": "Rel;1"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }
    
    .

    What do I need to do to exclude both relays switching on at the same time? Buttons cannot be used because the roller shutter switches exclude the possibility of both relays being switched on even if they are pressed at the same time - but in HA this is already possible. How do I configure the operating time? And how do I make the HA see the roller shutter controller and not the double relay?
    Greetings
    Wojtek

    edit.
    A lot of searching around OBK topics but I managed thanks to the description and advice from this topic:
    https://www.elektroda.com/rtvforum/topic4015497.html#20910126
    - this controller I already have reprogrammed you can see it in HA the only problem is the double click of the relay when controlling the buttons - this will double exploit the contacts themselves. Unfortunately it is still possible to switch on both relays at the same time from the web as well as the HA. It's a shame that there isn't a feature like in Tasmota that secures this when configured as a roller shutter controller. It is also a problem when editing autoexec via WebApplication after clicking "Save, run file...". also both relays switch on. It is safer to save the file and do a restart.
    I still just need to figure out the calibration.

Topic summary

The discussion centers on configuring the Moes MS-108WR WB2S curtain switch module for roller shutter control. The user flashed the WB2S module but struggles to identify correct IO pin mappings and the function of an additional MCU on the board, suspected but not confirmed as a TuyaMCU. Attempts to assign relay roles to pins such as P0 (TXD2) caused device instability, indicating some pins are test pads not used for control. The relay coil (W11-1A2STLE-H) is powered by 12V with one coil pin connected to mains, raising questions about the circuit design. Suggestions include methodical pin testing using OpenBeken firmware to identify relay control pins and PCB tracing with a multimeter. Later contributions mention integration with Home Assistant via MQTT and the use of Cloudcutter profiles for Tuya devices, including the MS-108 curtain module. The Cloudcutter project provides pin assignments and JSON configurations imported into OpenBeken, enabling relay control and partial functionality. The user also compares replacing WB2S with ESP-02S running Tasmota firmware but notes limitations in motor timing calibration and device status reporting in Home Assistant. Overall, the thread provides practical guidance on hardware investigation, firmware configuration, and software integration for the Moes MS-108WB2S roller shutter switch.
Summary generated by the language model.
ADVERTISEMENT