substitutions:
  devicename: "smart-fan"
esphome:
  name: $devicename
  comment: "Duux Whisper Flex Ultimate Smart Fan (DXCF14)"
  friendly_name: "Duux Whisper Flex Ultimate Smart Fan"
  project:
    name: "Duux.Whisper-Flex-Ultimate-Smart-Fan"
    version: "1.0.0"
esp8266:
  board: esp07
  restore_from_flash: true
logger:
api:
  encryption:
    key:
ota:
  password:
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  
  ap:
    ssid:
    password:
captive_portal:
time:
  - platform: homeassistant
    id: homeassistant_time
web_server:
  port: 80
uart:
  tx_pin: GPIO15
  rx_pin: GPIO13
  baud_rate: 9600
tuya:
fan:
  - platform: "tuya"
    name: None
    switch_datapoint: 1
    speed_datapoint: 3
    speed_count: 30
select:
  - platform: "tuya"
    id: "horizontally"
    name: "Oscillate horizontally"
    enum_datapoint: 4
    optimistic: true
    options:
      0: "off"
      1: "30"
      2: "60"
      3: "90"
  - platform: "tuya"
    id: "vertically"
    name: "Oscillate vertically"
    enum_datapoint: 5
    optimistic: true
    options:
      0: "off"
      1: "90"
      2: "105"
  - platform: "tuya"
    name: "Mode"
    enum_datapoint: 2
    optimistic: true
    options:
      0: "Manual Mode"
      1: "Natural Mode"
      2: "Sleep Mode"
  - platform: "tuya"
    name: "Timer"
    icon: mdi:fan-clock
    enum_datapoint: 6
    optimistic: true
    options:
      0: "off"
      1: "1h"
      2: "2h"
      3: "3h"
      4: "4h"
      5: "5h"
      6: "6h"
      7: "7h"
      8: "8h"
      9: "9h"
      10: "10h"
      11: "11h"
      12: "12h"
sensor:
  - platform: wifi_signal
    name: "Wifi Signal"
    update_interval: 60s
    icon: mdi:wifi
  - platform: uptime
    name: "Uptime"
    update_interval: 60s
    icon: mdi:clock-outline
text_sensor:
  - platform: wifi_info
    ip_address:
      name: "IP Address"
    ssid:
      name: "Wi-Fi SSID"
    bssid:
      name: "Wi-Fi BSSID"
  - platform: version
    name: "ESPHome Version"
    hide_timestamp: true