I'm looking at flashing all my tuya devices and before I do this I want to know if a few things are possible, I have read through docs etc all the commands and GPIO options. I have a few old Tasmota switch devices I use with Home Assistant and want to create same functions with the new Tuya one's, they have the CBU module containing the BK7231N
In Tasmota I can use Multi press buttons and adjusted to suit my needs. For example I use quick press to switch lights on and off ( physical group of lights connected to the relay ) Now in HA if the lights are on and connected to wifi I use double press for max brightness and triple press for min brightness and if I hold down the button the brightness increases, if it reaches the max then it will decrease the brightness and vice versa in a loop. Note: The lights are grouped in HA also since HA is adjusting the brightness levels etc
If I remember correctly Tasmota had to be configured so lights switched off on falling edge, but an update fixed this issue, was quite some time ago. There were also some custom rules, but all of these events were sent back to HA so they could be used with Automations etc
1x press = lights on rising edge/lights switch off falling edge ( I think )
2x press = max brightness
3x press = min brightness
hold press = adjust brightness
I have added some links to some Tasmota vids containing multi press buttons, hope it helps to understand, I could not find any information about multi button presses with your integration of Tasmota or does it work in the exact same way?
Here is an example of some of the Tasmota rules:
Tasmota Dimming Rules
In Tasmota I can use Multi press buttons and adjusted to suit my needs. For example I use quick press to switch lights on and off ( physical group of lights connected to the relay ) Now in HA if the lights are on and connected to wifi I use double press for max brightness and triple press for min brightness and if I hold down the button the brightness increases, if it reaches the max then it will decrease the brightness and vice versa in a loop. Note: The lights are grouped in HA also since HA is adjusting the brightness levels etc
If I remember correctly Tasmota had to be configured so lights switched off on falling edge, but an update fixed this issue, was quite some time ago. There were also some custom rules, but all of these events were sent back to HA so they could be used with Automations etc
1x press = lights on rising edge/lights switch off falling edge ( I think )
2x press = max brightness
3x press = min brightness
hold press = adjust brightness
I have added some links to some Tasmota vids containing multi press buttons, hope it helps to understand, I could not find any information about multi button presses with your integration of Tasmota or does it work in the exact same way?
Here is an example of some of the Tasmota rules:
Tasmota Dimming Rules