devices.esphome.io
TreatLife DS03 Fan Controller
TreatLife DS03 Fan Controller
Device Type: dimmerElectrical Standard: usBoard: esp8266
Notes
This TuyaMCU requires a baud rate of 115200. This will generate a error in the log saying 9600 is requested. This is to be expected and will be ignored. Setting baud rate to 9600 will cause boot issues
GPIO Pinout
| Pin | Function |
|---|---|
| GPIO1 | Tuya Tx |
| GPIO3 | Tuya Rx |
Basic Configuration
substitutions: devicename: fan_switch friendly_name: Fan Switch
esphome: name: ${devicename} board: esp01_1m # OTA flashingota: - platform: esphome
wifi: # Your Wifi network details # Enable fallback hotspot in case wifi connection fails ap:
# Enabling the logging componentlogger:
# Enable Home Assistant APIapi:
# Enable the captive portalcaptive_portal:
uart: rx_pin: GPIO3 tx_pin: GPIO1 baud_rate: 115200
tuya:
sensor:
- platform: uptime name: $friendly_name uptime
light: - platform: "tuya" name: $friendly_name Light dimmer_datapoint: 10 switch_datapoint: 9 min_value: 100 max_value: 1000
fan: - platform: "tuya" name: $friendly_name Speed switch_datapoint: 1 speed_datapoint: 3 speed_count: 4