This is not for the feint of heart, this device comes with a custom Tuya chip, which is not ESP based. Luckily, the main board has the appropriate footprint for an ESP-12F. Instructions for a similar device can be found [here](https://community.home-assistant.io/t/treatlife-dual-outlet-indoor-dimmer-plug-wb3s-to-esp-12-transplant/256798)
These commands are applied together with the template:
```console backlog SetOption97 1; tuyamcu 11,1; SetOption59 1; SetOption68 0 ``` These commands set the baud rate to 115200, bind the Tasmota software to the appropriate channel for control of the switch, set PWM to a single light, and adds an additional topic for state. More information can be found in the Tasmota TuyaMCU guide.
Set up a rule to report speed state based on information from the TuyaMCU
```console Backlog Rule1 on tuyareceived#dptype4id3 do publish stat/%topic%/speed %value% endon; Rule1 1 ```
This will monitor TuyaMCU messages for changes to the speed of the fan and publish t
Additional Attributes
Device Type
Fan Switch
Electrical Standard
us
Tuya Product Key
qmijt70hk4op6snl
Electric fan design
Ceiling Fan
Special Feature
Timer, Wi-Fi Enabled, LED Light
Room Type
Kids Room, Bedroom, Living Room, Home Office, Study Room