I am using a BK7238-based 4-relay switch board with 4 physical latching wall switches running OpenBeken 1.18.289.
The board is sold as "Aziot Smart Switch 4Node" and uses a BK7238/T1 (Tuya) module. The wall switches are connected to GPIOs P1, P8, P22, and P26.
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 switch activation is:
* TglChanOnTgl_pd
Unfortunately, TglChanOnTgl_pd is intended 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 way that TglChanOnTgl_pd does?
This would help support boards that require a pull-down input configuration and do not have external pull-down resistors fitted.
The board is sold as "Aziot Smart Switch 4Node" and uses a BK7238/T1 (Tuya) module. The wall switches are connected to GPIOs P1, P8, P22, and P26.
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 switch activation is:
* TglChanOnTgl_pd
Unfortunately, TglChanOnTgl_pd is intended 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 way that TglChanOnTgl_pd does?
This would help support boards that require a pull-down input configuration and do not have external pull-down resistors fitted.