Elektroda.com
Elektroda.com
X

[OpenBeken] Need help with WB2S 3 Gang touch module, TuyaMCU?

walberjunior 159 5
  • #1
    walberjunior
    Level 2  
    Hello, new here.
    Sorry if this is not the right place.

    I managed to flash a 3 gang switch, but the leds are blinking and I can only control it by touch.
    I could not configure the gpios.

    I've read something about TuyaMCU, but I'm not sure if it applies to my module and how I should do it.

    Can someone help me?

    [OpenBeken] Need help with WB2S 3 Gang touch module, TuyaMCU?
  • #2
    p.kaczmarek2
    Moderator Smart Home
    Hello, can you start by opening Web Application, and in LittleFS creating "autoexec.bat" with "startDriver TuyaMCU" command?
    Then you can reboot, and then open Web App Logs, start pressing buttons on the device, and copy paste logs here so we can see if something is being received.
  • #4
    p.kaczmarek2
    Moderator Smart Home
    Hmm, is the device working for you?
    I am asking because your logs, especially this part:
    
    Info:TuyaMCU:Skipped data (part) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    

    strongly suggests that there are no valid TuyaMCU packets sent. I can't see any correct TuyaMCU responses in your code.
  • #5
    walberjunior
    Level 2  
    After adding the lines in autoexec.bat everything is working.
    Is it possible to configure double click or hold to do other actions?
    Code: markdown
    Log in, to see the code


    Code: markdown
    Log in, to see the code
  • #6
    p.kaczmarek2
    Moderator Smart Home
    Hello, it's certainly possible to do button actions in OpenBeken:
    [OpenBeken] Push button actions multi press and hold down etc
    but this works like in Tasmota, for a button connected to GPIO.

    In your case, you have buttons connected to TuyaMCU, right? So it's not possible due to TuyaMCU limitation, it's not a OBK-revelant issue.

    You can always detach buttons from MCU and connect them to WiFI module, but you would need to solder jumper wires and cut traces. That requires some soldering skill.