logo elektroda
logo elektroda
X
logo elektroda

[CB2S/BK7231N] Loratap SC500W-V2N2-YELLOW Smart WiFi Curtain Switch

snakesrules94 2016 6
ADVERTISEMENT
  • #1 21083208
    snakesrules94
    Level 8  

    Hi all,
    in order to repair my curtain, I've ordered this switch and here are some pictures:
    It can control a 3 wires curtain and you can also attach an up/down switch to the S1/S2 contacts

    Yellow LoraTap SC500W module on a keyboard background.Electronic module CB2S on a keyboard.

    PCB with pins and markings CLK, GND, and VCC.Close-up view of an electronic switch with a mounted integrated circuit module.


    As you can see, a good old CB2S soldered only on one side to a kind of raiser holding what I supposed to be the MCU.

    This component you can see on the last picture below the CB2S is that one:

    Close-up of an HK32F030MF4P6 MCU microprocessor on a green circuit board.

    Info from Tuya app are:
    - main module: V2.0.2
    - MCU Module: V1.0.0

    I've dumped the original firmware but no config found.

    Do you think this device could be converted to OBK or this MCU (if it is one) is not supported?

    HK32F030M ...ev.1.2.pdf Download (1.43 MB)CW500S-D..P.zip Download (1.03 MB)
  • ADVERTISEMENT
  • #2 21083797
    p.kaczmarek2
    Moderator Smart Home
    This is most likely TuyaMCU device. This may be tricky to convert but end result will be very good, as the main shutter logic is on the MCU , and not on the WiFi module.

    Here is a broad TuyaMCU guide: TuyaMCU flashing, setup and configuration guide - configure dpIDs for Home Assistant

    Please familiarize yourself with it and then we can try to convert this device to work with OBK. I will guide you step by step.

    Are you able to find the AMS1117-3.3V or the step down converter on this board?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21084328
    snakesrules94
    Level 8  

    Hello,
    i can't find the former voltage regulator for 3.3V and not skilled enough to find the other voltage regulator/dropdown components. Here is a picture of the board :

    Image of a green electronic circuit board with various components like capacitors and resistors.

    I spent some time to explore the Tuya dev website and i've extracted the following info about this module :

    {
      "modelId": "000003pv54",
      "services": [
        {
          "actions": [],
          "code": "",
          "description": "",
          "events": [],
          "name": "默认服务 (Default Service)",
          "properties": [
            {
              "abilityId": 1,
              "accessMode": "rw",
              "code": "control",
              "description": "",
              "extensions": {
                "iconName": "icon-a_power",
                "attribute": "1280"
              },
              "name": "一路窗帘开关 (All the way curtain switch)",
              "typeSpec": {
                "type": "enum",
                "range": [
                  "open",
                  "stop",
                  "close"
                ]
              }
            },
            {
              "abilityId": 8,
              "accessMode": "rw",
              "code": "control_back",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_loop",
                "attribute": "1024"
              },
              "name": "电机反转 (Motor reverse)",
              "typeSpec": {
                "type": "enum",
                "range": [
                  "forward",
                  "back"
                ]
              }
            },
            {
              "abilityId": 10,
              "accessMode": "rw",
              "code": "tr_timecon",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_time2",
                "attribute": "1024"
              },
              "name": "行程时间设置 (Travel time settings)",
              "typeSpec": {
                "type": "value",
                "max": 120,
                "min": 1,
                "scale": 0,
                "step": 1,
                "unit": "s"
              }
            }
          ]
        }
      ]
    }


    Is this already a good start point ?
  • ADVERTISEMENT
  • #4 21084358
    p.kaczmarek2
    Moderator Smart Home
    I asked about LDO because I was considering doing UART packets capture, but with the dpIDs you extracted, this is no longer needed. I think you can flash OpenBeken and then we will together configure dpID to channel mappings for your device.
    Helpful post? Buy me a coffee.
  • #5 21084552
    snakesrules94
    Level 8  

    Hi and thanks for your support.
    After some thinking, I think I will stay with Tuya for this one as it will be linked to my main "garden curtain" (I don't know the right translation but here is a sample picture: )
    Patio with an outdoor canopy and garden furniture

    In the case of we decide to leave/sell the house, the device would be linked to my WiFi network/mqtt/HA instance and it could be difficult for the next owners to use it if they're not into that tech stuff as the curtain is not something I will take with me if I should leave the house.
    It would be, I guess, easier to unbind/rebind the device to Smartlife APP than changing all the network config/dependency.

    Anyway, the dpId will maybe be useful for someone else with the same switch in case of OBK conversion :-)
  • ADVERTISEMENT
  • Helpful post
    #6 21084587
    p.kaczmarek2
    Moderator Smart Home
    No problem, those dpIDs are useful already. If you ever change your mind, let me know - I can help. You can also just make a 2MB flash backup and restore it when selling house.
    Helpful post? Buy me a coffee.
  • #7 21210876
    surfcu
    Level 1  
    For anyone trying to use this with ESPhome, this can be flashed with Tuya Cloudcutter.

    After flashing, the following configuration can be used;
    
    esphome:
      name: panjur1
      friendly_name: panjur1
    
    bk72xx:
      board: generic-bk7231n-qfn32-tuya
    
    # Enable logging
    logger:
    
    # Enable Home Assistant API
    api:
      encryption:
        key: ""
    
    ota:
      - platform: esphome
        password: ""
    
    wifi:
      ssid: !secret wifi_ssid
      password: !secret wifi_password
    
      # Enable fallback hotspot (captive portal) in case wifi connection fails
      ap:
        ssid: "Panjur1 Fallback Hotspot"
        password: ""
    
    captive_portal:
    
    text_sensor:
      - platform: libretiny
        version:
          name: LibreTiny Version
    
    uart:
      rx_pin: RX1
      tx_pin: TX1
      baud_rate: 115200
    
    tuya:
      # DPIDs processed from schema model: 000003pv54
    
    select:
      - platform: tuya
        enum_datapoint: 1
        name: (Unconfirmed) Control
        optimistic: true
        options:
          0: Open
          1: Stop
          2: Close
      - platform: tuya
        enum_datapoint: 8
        name: (Unconfirmed) Control Back
        optimistic: true
        options:
          0: Forward
          1: Back
    
    number:
      - platform: tuya
        number_datapoint: 10
        name: (Unconfirmed) Tr Timecon
        unit_of_measurement: s
        min_value: 1
        max_value: 120
        step: 1
    

Topic summary

The discussion revolves around the Loratap SC500W-V2N2-YELLOW Smart WiFi Curtain Switch, which utilizes a CB2S module and a potential MCU for controlling a three-wire curtain system. Users explore the possibility of converting the device to OpenBeken (OBK) firmware, with one participant suggesting that the main shutter logic resides in the MCU, making conversion feasible but potentially complex. The original firmware was dumped, but no configuration was found. Some users opted to remain with the Tuya ecosystem for ease of use, especially considering future home ownership transitions. Additionally, there are mentions of using ESPhome and Tuya Cloudcutter for flashing the device, along with specific configuration details for integration with Home Assistant.
Summary generated by the language model.
ADVERTISEMENT