Hey there,
I am the original author of: Duux Whisper Flex Smart Fan (DXCF10) - ESPHome Devices
Now it's hot again and I am using the fan. I noticed a bug that I have noticed before, buit never got around to ask about.
Whenever you turn the fan on, it does it. I beeps and the display turns on. After a while you want to turn it off again. But when you turn it off, it beeps and the display turns on, but it doesn't turn off. I need to press the button again to turn it it off. I am suspecting, that the Tuya MCU needs to be "awake" or something to accept commands...
Any ideas?
So here is the UART debugging log:
[13:16:56.218][D][uart_debug:157]: [MODBUS] <<< "U\xAA\x03\a\x00\x05\x01\x01\x00\x01\x01\x12U\xAA\x03\a\x00\x05\x02\x04\x00\x01\x02\x17U\xAA\x03\a\x00\b\x03\x04\x00\x01\t\x00\x00\x00\"U\xAA\x03\a\x00\x05\x04\x04\x00\x01\x00\x17U\xAA\x03\a\x00\x05\x05\x04\x00\x01\x00\x18U\xAA\x03\a\x00\b\x06\x04\x00\x01\x00\x00\x00\x00\x1C"
[13:17:05.049][D][uart_debug:157]: [MODBUS] >>> "U\xAA\x00\x00\x00\x00\xFF"
[13:17:05.049][D][uart_debug:157]: [MODBUS] <<< "U\xAA\x03\x00\x00\x01\x01\x04"
[13:17:14.877][D][tuya:672]: Setting datapoint 1 to 0
[13:17:14.877][D][uart_debug:157]: [MODBUS] >>> "U\xAA\x00\x06\x00\x05\x01\x01\x00\x01\x00\r"
[13:17:14.878][D][tuya:380]: Datapoint 1 update to ON
[13:17:14.918][D][tuya:400]: Datapoint 2 update to 2
[13:17:14.919][D][tuya:400]: Datapoint 3 update to 9
[13:17:14.919][D][tuya:400]: Datapoint 4 update to 0
[13:17:14.922][D][tuya:400]: Datapoint 5 update to 0
[13:17:14.922][D][tuya:400]: Datapoint 6 update to 0
[13:17:14.958][S][fan]: '' >> ON
[13:17:14.958][S][fan]: Speed: 10
[13:17:14.958][S][select]: 'Mode' >> Sleep Mode
[13:17:14.958][S][select]: 'Timer' >> off
[13:17:15.390][D][uart_debug:157]: [MODBUS] <<< "U\xAA\x03\a\x00\x05\x01\x01\x00\x01\x01\x12U\xAA\x03\a\x00\x05\x02\x04\x00\x01\x02\x17U\xAA\x03\a\x00\b\x03\x04\x00\x01\t\x00\x00\x00\"U\xAA\x03\a\x00\x05\x04\x04\x00\x01\x00\x17U\xAA\x03\a\x00\x05\x05\x04\x00\x01\x00\x18U\xAA\x03\a\x00\b\x06\x04\x00\x01\x00\x00\x00\x00\x1C"
[13:17:17.261][D][tuya:672]: Setting datapoint 1 to 0
[13:17:17.261][D][uart_debug:157]: [MODBUS] >>> "U\xAA\x00\x06\x00\x05\x01\x01\x00\x01\x00\r"
[13:17:17.325][D][tuya:380]: Datapoint 1 update to OFF
[13:17:17.325][D][tuya:400]: Datapoint 2 update to 2
[13:17:17.325][D][tuya:400]: Datapoint 3 update to 9
[13:17:17.333][D][tuya:400]: Datapoint 4 update to 0
[13:17:17.333][D][tuya:400]: Datapoint 5 update to 0
[13:17:17.333][D][tuya:400]: Datapoint 6 update to 0
[13:17:17.399][S][fan]: '' >> OFF
[13:17:17.399][S][fan]: Speed: 10
[13:17:17.399][S][select]: 'Mode' >> Sleep Mode
[13:17:17.399][S][select]: 'Timer' >> off
You can see that I set the datapoint 1 to 0 twice. But the first time, the datapoint isn't updated.