devices.esphome.io

Duux Whisper Flex Smart Fan (DXCF10)

Duux Whisper Flex Smart Fan (DXCF10)

Device Type: misc
Electrical Standard: eu
Board: esp8266
Difficulty: Disassembly required, 3/5

Duux Whisper Flex Smart Fan

GPIO Pinout

PinFunction
GPIO00Nono
GPIO01None
GPIO02None
GPIO03None
GPIO04None
GPIO05None
GPIO09None
GPIO10None
GPIO12None
GPIO13Tuya Rx
GPIO14None
GPIO15Tuya Tx
GPIO16None
FLAGNone

Basic Configuration

substitutions:
devicename: "smart-fan"
esphome:
name: $devicename
comment: "Duux Whisper Flex Smart Fan (DXCF10)"
friendly_name: "Duux Whisper Flex Smart Fan"
project:
name: "Duux.Whisper-Flex-Smart-Fan"
version: "1.0.0"
esp8266:
board: esp07
restore_from_flash: true
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
password:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid:
password:
captive_portal:
time:
- platform: homeassistant
id: homeassistant_time
# Enable Web server
web_server:
port: 80
uart:
tx_pin: GPIO15
rx_pin: GPIO13
baud_rate: 9600
# Register the Tuya MCU connection
tuya:
fan:
- platform: "tuya"
name: None
switch_datapoint: 1
speed_datapoint: 3
speed_count: 26
switch:
- platform: template
name: "Oscillate horizontally"
icon: mdi:arrow-left-right
turn_on_action:
then:
- select.set:
id: "horizontally"
option: "on"
turn_off_action:
then:
- select.set:
id: "horizontally"
option: "off"
lambda: |-
if (id(horizontally).state == "on") {
return true;
} else {
return false;
}
- platform: template
name: "Oscillate vertically"
icon: mdi:arrow-up-down
turn_on_action:
then:
- select.set:
id: "vertically"
option: "on"
turn_off_action:
then:
- select.set:
id: "vertically"
option: "off"
lambda: |-
if (id(vertically).state == "on") {
return true;
} else {
return false;
}
select:
- platform: "tuya"
id: "horizontally"
internal: true
name: "Oscillate horizontally"
enum_datapoint: 4
optimistic: true
options:
0: "off"
1: "on"
- platform: "tuya"
id: "vertically"
internal: true
name: "Oscillate vertically"
enum_datapoint: 5
optimistic: true
options:
0: "off"
1: "on"
- 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
Edit this page on GitHub