devices.esphome.io

TreatLife DS03 Fan Controller

TreatLife DS03 Fan Controller

Device Type: dimmer
Electrical Standard: us
Board: esp8266

Amazon Link

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

PinFunction
GPIO1Tuya Tx
GPIO3Tuya Rx

Basic Configuration

substitutions:
devicename: fan_switch
friendly_name: Fan Switch
esphome:
name: ${devicename}
board: esp01_1m
# OTA flashing
ota:
- platform: esphome
wifi: # Your Wifi network details
# Enable fallback hotspot in case wifi connection fails
ap:
# Enabling the logging component
logger:
# Enable Home Assistant API
api:
# Enable the captive portal
captive_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
Edit this page on GitHub