I am using OpenBeken firmware version 1.18.289 on a BK7238/T1 (Tuya) board, sold by Aziot as Smart Switch 4 Node.
The input GPIOs are P1, P8, P22 and P26 with corresponding channels 1-4, driven by 3.3 V, therefore need an internal PULL DOWN workaround that "TglChanOnTgl_pd" role provides.
The relays are connected as "Rel" role to P6, P9, P23 and P24 with corresponding channels 1-4.
Is it possible for OpenBeken to expose the state of a switch or button connected to a GPIO as a separate MQTT/Home Assistant entity, independent of the associated relay state?
My use case is that the physical switch position carries useful information beyond simply controlling the relay. For example:
* Physical Switch 1 ON -> Relay 1 ON
* Home Assistant detects that Physical Switch 1 is ON and triggers an automation (for example, turning off the kitchen lights)
I would like Home Assistant to be able to read the actual state of the physical switch, even though the switch itself cannot be controlled remotely.
Having separate entities for:
* Relay state
* Physical switch/button state
would make it easier to:
* Create automations based on the physical switch position rather than the relay state
* Synchronize relay and switch states when they become out of sync
* Decouple switches/buttons from relays entirely, for example:
* Switch 1 on Module A is turned ON
* Home Assistant detects the switch state and turns ON Relay 2 on Module B
Is this currently possible, or could it be added as a feature?
The input GPIOs are P1, P8, P22 and P26 with corresponding channels 1-4, driven by 3.3 V, therefore need an internal PULL DOWN workaround that "TglChanOnTgl_pd" role provides.
The relays are connected as "Rel" role to P6, P9, P23 and P24 with corresponding channels 1-4.
Is it possible for OpenBeken to expose the state of a switch or button connected to a GPIO as a separate MQTT/Home Assistant entity, independent of the associated relay state?
My use case is that the physical switch position carries useful information beyond simply controlling the relay. For example:
* Physical Switch 1 ON -> Relay 1 ON
* Home Assistant detects that Physical Switch 1 is ON and triggers an automation (for example, turning off the kitchen lights)
I would like Home Assistant to be able to read the actual state of the physical switch, even though the switch itself cannot be controlled remotely.
Having separate entities for:
* Relay state
* Physical switch/button state
would make it easier to:
* Create automations based on the physical switch position rather than the relay state
* Synchronize relay and switch states when they become out of sync
* Decouple switches/buttons from relays entirely, for example:
* Switch 1 on Module A is turned ON
* Home Assistant detects the switch state and turns ON Relay 2 on Module B
Is this currently possible, or could it be added as a feature?