Are you aware that you can connect to Tuya devices over MQTT? It’s a bit of a chore, but lots of folks here have done it.
By the same token, if you get this working and it’s much simpler than MQTT, I think a lot of people would be interested in a tutorial. I know I would be.