Hello
Yes I found the way to TUYA but not with B4R but with TUYA modules directly
That was a project for a window manufacturer that wanted to sell its windows with integrated home automation
My intention was to use an ESP32 with B4R, but instead I ended up using some specific modules from TUYA that they sell at a reasonable price and that have some GPIO pins. They provide the integration part with TUYA, you only have to do the part of your signals and integrate it into their core, so to speak.
They have everything closed and controlled, but you have to follow the rules and you can do things with them
In my case they gave me support from TUYA CHINA directly by email and WHATSAPP in a very friendly and fast way.
The experience was average since they did the business more than me but in the end it is another job.
Today it is also very fashionable to use HOME ASSISTANT to domotize things, it is different from TUYA in that the total platform is from TUYA and it is turned on and run, but in HOME ASSISTANT you can also integrate the ESP32 or TUYA modules in the application and it is something More open
If you need anything else, don't hesitate to ask.
Thank you