logo elektroda
logo elektroda
X
logo elektroda

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

belveder79 285 6
ADVERTISEMENT
  • #1 21821002
    belveder79
    Level 6  
    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  
    >>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  
    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  
    >>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  
    there was a bug introduced in version 1.18.248. Please try 1.18.256+
  • #7 21832734
    belveder79
    Level 6  
    >>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

A smart circuit breaker purchased from AliExpress (item 1005009843409337) was flashed with OpenBeken firmware using Easyflash to extract and write the original configuration. While relay switching via the web interface functions correctly, the physical button intended to toggle the relay on/off does not operate as expected. Configured as "Btn" per the original settings, the button generates repeated "Info:GEN:17 Button_OnLongPressHold" log messages without toggling the relay. Alternative configurations such as "dInput" and "ToggleChanOnTgl" cause the relay to toggle on button press but immediately toggle back on release, failing to maintain state. Suggestions included trying "Btn_pd" and replacing "Btn" with "Btn_n" to address the long press hold spam, but these did not resolve the issue. The problem remains that the button cannot reliably toggle the relay state as intended.
Summary generated by the language model.
ADVERTISEMENT