Tuya Device Help

I propose that the entire tuya component be rewritten. See my comment here for the reason and for links to code that someone has created that allows for all devices to be controlled locally and without the cloud.