hi , i created a c# wrapper for tuya api…
https://bitbucket.org/serkanp/smg.tuyaapi/src/TuyaApi/
you can control any infrared hubs and devices added with it, switches, bulbs, air conditioners, plugs, receivers…
i will add implementation for netDaemon for HA…
while i do it… you may check the source code…