Cloud Free All The Things!

This is one of my favorite IOT switches because it has a light and fan dimmer all in one gang slot. I swap out there Tuya SOC with an ESPHome flashed ESP8266. They have since changes their design, so I have been having issues finding more.

esphome:
  name: our-bedroom-ceiling-fan
  friendly_name: "Our Bedroom Ceiling Fan"

esp8266:
  board: esp01_1m

# Enable Home Assistant API
api:
  encryption:
    key: ""
ota:
  platform: esphome
  password: ""

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: !secret AP_ssid
    password: !secret AP_password

captive_portal:

# Enable logging
logger:
  baud_rate: 0

uart:
  rx_pin: GPIO3
  tx_pin: GPIO1
  baud_rate: 115200

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 Light
    dimmer_datapoint: 10
    switch_datapoint: 9
    min_value: 1000
    max_value: 1000

fan:
  - platform: "tuya"
    name: $friendly_name Speed
    switch_datapoint: 1
    speed_datapoint: 3
    speed_count: 4