ESPHome-Devices

TreatLife DS02S Single Pole Dimmer

TreatLife DS02S Single Pole Dimmer

Treatlife DS02S Switch image

Amazon Link

Notes

This TuyaMCU requires a baud rate of 9600, unlike the DS03 dimmer.

GPIO Pinout

PinFunction
GPIO1Tuya Tx
GPIO3Tuya Rx

Basic Configuration

substitutions:
device_name: familyroom_light_1 #change
friendly_name: Family Room Light #change
icon: "mdi:light-switch"
esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
ap:
ssid: ${device_name}
password: !secret esphome_ap_password
logger:
baud_rate: 0
api:
password: !secret esphome_api_password
ota:
password: !secret esphome_ota_password
web_server:
port: 80
uart:
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 9600
tuya:
sensor:
- platform: wifi_signal
name: ${friendly_name} WiFi Signal
update_interval: 60s
- platform: uptime
name: ${friendly_name} Uptime
light:
- platform: "tuya"
name: ${friendly_name}
dimmer_datapoint: 2
switch_datapoint: 1
min_value: 100
max_value: 1000
Edit this page on GitHub