Tuya fan configuration

Ok first I’m assuming you have the Tuya local security key for the fan. If you don’t, follow the directions here - https://github.com/codetheweb/tuyapi/blob/ab60e0d11fef6e9c4d73cd3f46bdda2a71f98f99/docs/SETUP.md

Once the local key is obtained, go to the integrations screen in Home Assistant, click “add integration”, then search for “local tuya”. Your device should appear in the next screen under a dropdown as a code with an IP address. The ID will match the id obtained from the TUYA developer website
Next, type a name for the device as you want it to be named in Home Assistant
Under “local key” - copy the key from the Tuya website
Next will be a dropdown for “add entity”. We’re going to add 3 entities - a fan, and two switches (one for light, one for the beep)
Add the fan first - see screenshot for mappings. ID 1 for on/off, 3 for speed. Change the speeds to 1, 2, and 3 for low, medium high:

Add switch next, uncheck “do not add more entities” We’re adding the light as a switch, NOT a light, since there is no dimmer and it is just on/off. The light is mapped to ID 9. Click submit when done:
Screenshot from 2021-10-08 09-03-59

This is optional to turn the beep on and off. If you want to control the beep, after you hit submit for the light, uncheck “do not add more entities”. Add as a switch mapped to id 17 for the beep:
Screenshot from 2021-10-08 09-04-16

When the 3 entities are added, leave the box for “do not add more entities” checked and hit submit. It will exit the configuration screen at that point and you will now have 3 entities - a fan to control the 3 speeds and on/off, a toggle for light on/off, and a toggle for beep on/off