ESPHome-Devices

TreatLife DS02F Ceiling Fan Controller

TreatLife DS02F Ceiling Fan Controller

Device Type: switch
Electrical Standard: us

Treatlife DS02S Switch image

Amazon Link

Notes

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. Further instructions can be found here

The Treatlife DS02F is the same device as the DS03, but lacking the control for the light.

GPIO Pinout

PinFunction
GPIO1Tuya Tx
GPIO3Tuya Rx

Basic Configuration

esphome:
name: ds02f
platform: ESP8266
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
wifi:
ssid: "ssid"
password: "PASSWORD"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Gosund Fallback Hotspot"
password: "ul57sDUAqbcl"
captive_portal:
uart:
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 115200
tuya:
fan:
- platform: "tuya"
name: Treatlife DS02F Speed
switch_datapoint: 1
speed_datapoint: 3
speed_count: 4
Edit this page on GitHub