logo elektroda
logo elektroda
X
logo elektroda

Capture Button Events on Moes Dimmer with TuyaMCU for IR Blaster Control

nacxoffw 222 2
ADVERTISEMENT
  • #1 21335569
    nacxoffw
    Level 5  
    Good day,

    I have this Moes Dimmer
    View of the interior of a Moes smart dimmer showing a circuit board and module.

    and after a original Tuya .bin backup and OpenBeken flash its working with the next /autoexec.bat
    startDriver TuyaMCU
    setChannelType 1 toggle
    setChannelType 2 dimmer
    //tuyaMcu_defWifiState 5
    tuyaMcu_setDimmerRange 0 1000
    linkTuyaMCUOutputToChannel 1 1 1
    linkTuyaMCUOutputToChannel 2 2 2


    Now my scene... the new bulb is not dimmable through voltage, instead, has IR blaster.
    I have a working IR Module and the desired workaround is, capture low/high brightness button press in the MOES dimmer and send a command.

    After a while reading I don't know how to block dimmer flow in TuyaMCU to ignore buttons... and capture its onPush button events.


    Someone can help me please?
  • ADVERTISEMENT
  • #2 21335673
    p.kaczmarek2
    Moderator Smart Home
    If I understand correctly, it is not possible without hardware modification.

    The three buttons on the photo are connected to TuyaMCU, not to WiFi module. TuyaMCU handles the touches and adjusts the dimming. WiFi module doesn't know anything about buttons.

    If you want to have button events in the WiFi module, you need most likely disconnect the touch buttons controller from the MCU and connect it to WiFi module.

    Then, once you make sure that OBK can read buttons correctly, you can use Btn_ScriptOnly role and assign OnClick, OnDblClick, etc, etc, events.
    Helpful post? Buy me a coffee.
  • #3 21335697
    nacxoffw
    Level 5  
    >>21335673

    Oh, thanks for the info.
    And any tutorial on how to do that?
ADVERTISEMENT