logo elektroda
logo elektroda
X
logo elektroda

[Solved] [BK7238] OpenBeken 1.18.289 - Feature request- add "Switch_pd" roles for latching inputs.

MotoHolic 48 1
ADVERTISEMENT
  • #1 21915218
    MotoHolic
    Level 3  
    Posts: 7
    I am using a BK7238-based 4-relay switch board with 4 physical latching wall switches and OpenBeken 1.18.289.

    The hardware drives the switch GPIOs HIGH (3.3 V) when idle, and the physical switches also apply 3.3 V when activated. To make the inputs usable, the GPIOs need to be configured with an internal pull-down resistor so that a switch activation can be detected as a HIGH signal.

    I tested the following input roles:

    * Btn
    * Btn_n
    * Btn_pd
    * Btn_pd_n

    However, none of them appear to enable a pull-down resistor on this BK7238 board. The only role that successfully pulls the GPIO LOW and detects the switch activation is
    TglChanOnTgl_pd
    .

    Unfortunately,
    TglChanOnTgl_pd
    is designed for toggle-button operation, while my hardware uses latching wall switches that should directly reflect their physical ON/OFF position.

    Would it be possible to:

    1. Add pull-down support to the standard switch/button roles on BK7238 devices?
    2. Add dedicated switch roles with pull-down variants, for example
    Switch_pd
    and
    Switch_pd_n
    , that preserve latching switch behavior while enabling the internal pull-down resistor in the same manner as
    TglChanOnTgl_pd
    does?

    This would help with boards where the hardware requires a pull-down input configuration and no external resistors are present.
    Which exact input role is the one that successfully pulls the GPIO LOW and detects the switch activation? In your post the role name seems to be missing.
    TglChanOnTgl_pd
    Can you provide the exact board/module name and the GPIO number(s) used for the 4 latching wall switches?
    BK7238/T1 (Tuya) Sold as "Aziot Smart Switch 4Node"

    P1, P8, P22 and P26
  • ADVERTISEMENT
  • #2 21915224
    MotoHolic
    Level 3  
    Posts: 7
    Sorry, I posted in the wrong forum, please close and delete.
ADVERTISEMENT