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
Unfortunately,
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
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
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_pdis 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_pdand
Switch_pd_n, that preserve latching switch behavior while enabling the internal pull-down resistor in the same manner as
TglChanOnTgl_pddoes?
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