Since ESPHome doesn't actually support the vacuum
entity type, much less creating one in Home Assistant, we have to make due with the TuyaMCU features offered.
We create a few buttons, a switch, and sensors, as well as selects for setting mode and speed. Then there's a vacuum template file for Home Assistant to take advantage of this.
In the end, you'll have a vacuum
entity in Home Assistant that's fully local, fully ESPHome, but not perfectly-so.
Of note: ESPHome team, 115200 is a valid baudrate for (some) TuyaMCUs. The one in the vacuum does not support 9600 baud. Please stop alerting me to this. Tasmota has figured this out already.