logo elektroda
logo elektroda
X
logo elektroda

Configuring RF Function on [CB3S] Tuya 2CH Smart Switch with RF433 Remote

Kirk_Elektroda 2886 3
ADVERTISEMENT
  • #1 20936016
    Kirk_Elektroda
    Level 1  

    Hi guys,

    I bought a 2CH switch that supports remote function for RF433. I found it difficult to configure or find something similar to it.
    However, I managed to make controllable relays using the GUI or buttons. I am unsure what to do next.

    pins:
    "6": "Rel_n;1",
    "8": "Btn;0",
    "9": "Btn;2",
    "14": "Rel_n;2",
    "24": "Btn;1",
    "26": "WifiLED_n;0"

    I need help figuring out how to use the reset button ("8") and programming/using the RF function. Can someone please assist me?

    Here is the link to the product:
    https://fr.aliexpress.com/item/10050056510908..._main.127.16535e5biyqm4R&gatewayAdapt=glo2fra
    Configuring RF Function on [CB3S] Tuya 2CH Smart Switch with RF433 Remote

    Regards,
    Kirk
  • ADVERTISEMENT
  • #2 20941237
    p.kaczmarek2
    Moderator Smart Home
    How is RF on your device implemented? Is it done via separate IC that handles buttons, or is RF receiver connected directly to WiFi module?

    If the external IC is handling RF, then it should still work after firmware change. On the other hand, if RF receiver is connected directly to WiFi module, then you have to wait a bit, we don't have a driver for that yet, there is some initiative to do some porting: https://www.elektroda.com/rtvforum/topic3983995.html#20940597
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20942556
    Kirk_Elektroda
    Level 1  

    Thanks for the response.

    I suspect that it is wired on the IC in the photo. If you can confirm this, I would appreciate it if you could tell me how to create channels to learn the remote. Previously, I was able to do this through the Tuya app, but after the firmware change, I'm having trouble figuring out how to do it.

    Added after 1 [minutes]:

    Close-up of an integrated circuit on a circuit board with visible electronic components.
  • #4 21219677
    jahara
    Level 2  
    The 433 MHz remote signal is available on P7. I was able to get access to it using Esphome Libretiny.
    
    status_led:
      pin:
        number: P26
        inverted: true
    
    binary_sensor:
      - platform: gpio
        pin: P9
        id: button1
        name: "Button 1"
        on_press:
          - switch.toggle: relay1
        internal: true
    
      - platform: gpio
        pin: P24
        id: button2
        name: "Button 2"
        on_press:
          - switch.toggle: relay2
        internal: true
    
      - platform: gpio
        pin: P8
        id: button3
        name: "Button All"
        on_press:
          - switch.toggle: relay1
          - switch.toggle: relay2
        internal: true
    
    switch:
      - platform: gpio
        pin: P14
        id: relay1
        name: "Relay 1"
        restore_mode: ALWAYS_OFF
    
      - platform: gpio
        pin: P6
        id: relay2
        name: "Relay 2"
        restore_mode: ALWAYS_OFF
    
    remote_receiver:
      pin:
        number: P7
        mode:
          input: true
          pullup: true
      tolerance: 50%
      filter: 10us
      idle: 4ms
      buffer_size: 2kb
      dump: rc_switch
    
ADVERTISEMENT