logo elektroda
logo elektroda
X
logo elektroda

OpenBeken Button Configuration Issue on AliExpress Smart Circuit Breaker (1005009843409337)

belveder79 633 6
ADVERTISEMENT
  • Button mapping issue causing repeated long-press events

    #1 21821002
    belveder79
    Level 6  
    Posts: 15
    Help: 1
    Rate: 2
    Hi,

    Got this smart circuit breaker from Ali and flashed it with OpenBeken. The Easyflash extracted config and wrote it.

    https://de.aliexpress.com/item/1005009843409337.html

    Switching the relay works from the web, but the problem I have is the button. The button should toggle the relay on/off. As it is configured as "Btn" from the original config, it does not do anything, but gives me tons of

    Info:GEN:17 Button_OnLongPressHold
    Info:GEN:17 Button_OnLongPressHold


    in the log. I tried all the other options, but basically none of the other config options work; the only things that work are "dInput" and "ToggleChanOnTgl", but it does not do what it is supposed to do. Pressing it toggles, but releasing it toggles it back...

    Any help appreciated.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #3 21821007
    belveder79
    Level 6  
    Posts: 15
    Help: 1
    Rate: 2
    >>21821006 No...

    Added after 19 [minutes]:

    This is how it looks like after a restart, configured as input:
    Screenshot of a GPIO interface with pins set as input and output configurations

    Here's how it looks pressing the button:
    GPIO configuration interface showing 16 pins all in Low logic state.

    Toggles, but toggles back on release.
  • #4 21821037
    insmod
    Level 31  
    Posts: 1432
    Help: 168
    Rate: 455
    If dInput works, then Btn should work too...
    If it spams Button_OnLongPressHold, then replace Btn with Btn_n.
  • ADVERTISEMENT
  • #5 21821038
    belveder79
    Level 6  
    Posts: 15
    Help: 1
    Rate: 2
    >>21821037 does not help.

    Added after 1 minute:

    >>21821038 - it does not spam, but it also does not work :-(.
  • ADVERTISEMENT
  • #6 21831453
    divadiow
    Level 38  
    Posts: 5220
    Help: 449
    Rate: 918
    there was a bug introduced in version 1.18.248. Please try 1.18.256+
  • #7 21832734
    belveder79
    Level 6  
    Posts: 15
    Help: 1
    Rate: 2
    >>21831453 Upgraded to 256, still spams LOG with long button press, but works perfectly - thanks a lot.

    Added after 7 minutes:

    >>21832734 Using btn and led_i works to make it work the way it should

    Screenshot of a pin mapping table 0–28 with dropdowns and 0/1 values

Topic summary

LABEL_AI_GENERATED
An AliExpress smart circuit breaker flashed with OpenBeken had a working relay control from the web interface, but the physical button was misconfigured: the original “Btn” setting produced repeated Button_OnLongPressHold log messages and did not toggle the relay correctly. Other input modes such as dInput and ToggleChanOnTgl caused incorrect behavior, including toggling on press and reverting on release. The issue was later traced to a bug in OpenBeken versions up to 1.18.248; upgrading to 1.18.256+ resolved the button handling, and the final working configuration used btn together with led_i.
AI summary based on the discussion. May contain errors.
ADVERTISEMENT