I have had one of these fans running with an esp32-c6 for a long time but since esphome 2026.6.2 I have not been able to update my device because of a build error.
My configuration is lifted directly from this page Duux Whisper Flex Smart Fan (DXCF10) - ESPHome Devices
The error is
FAILED: esp-idf/src/CMakeFiles/__idf_src.dir/main.cpp.obj
ccache /cache/idf/tools/riscv32-esp-elf/esp-14.2.0_20260121/riscv32-esp-elf/bin/riscv32-esp-elf-g++ @esp-idf/src/CMakeFiles/__idf_src.dir/main.cpp.obj.rsp -MD -MT esp-idf/src/CMakeFiles/__idf_src.dir/main.cpp.obj -MF esp-idf/src/CMakeFiles/__idf_src.dir/main.cpp.obj.d -o esp-idf/src/CMakeFiles/__idf_src.dir/main.cpp.obj -c /data/build/espfanc6/src/main.cpp
/config/espfanc6.yaml: In lambda function:
/config/espfanc6.yaml:94:25: error: 'class esphome::tuya::TuyaSelect' has no member named 'state'
94 | if (id(horizontally).state == "on") {
| ^~~~~
I think that this relates to the lambda but I have no idea how to fix it.
lambda: |-
if (id(vertically).state == "on") {
return true;
} else {
return false;
}
Any advice or pointers for how to fix this would be appreciated.
I can share the full log or config if required.