logo elektroda
logo elektroda
X
logo elektroda

(T34) (BK7231N) try to change the SwitchMode of Tuya DIY Mini Switch

flamel7ramond 384 2
ADVERTISEMENT
  • #1 21420853
    flamel7ramond
    Level 2  
    Hi everyone, I'm such a newbie on this OpenBeken things.
    btw I just flashed my Tuya DIY mini switch (T34) with OpenBK7231N and it's working now.
    One thing that I want to change is something like "SwitchMode" of Tasmota console command ( I want to make the physical switch that connects to S1-S2 act as a Master switch. Equal to 'SwitchMode1' console command of Tasmota).
    May anyone suggest me how to do it?
    thanks for helping me.

    Added after 44 [minutes]:

    Ok I found it
    because I set the P14 to momentary switch ( which is 'ToggleChannelOnToggle' ). that's why the switch mode of this equal to 'edge mode' of tuya setting.
    Now changing it to 'dInput_n', the switch mode equal to 'follow-invert' of the tuya setting.
  • ADVERTISEMENT
  • #2 21422207
    p.kaczmarek2
    Moderator Smart Home
    That's right, maybe we need to add it to our FAQ... anyway, is now everything working good for you, or can we still help you somehow?
    Helpful post? Buy me a coffee.
  • #3 21520237
    flamel7ramond
    Level 2  
    >>21422207
    Everything works. But sometimes when the electricity is down, the switch gonna be forgotten from the MQTT and I need to click update HomeAssistant Discovery. And this problem is solved by the startup command (as I recall, I insert the command to wait around 3 sec after booting and update the HA discovery command).
ADVERTISEMENT