Tuya integration: modes are interpreted wrong

I have a Tuya room thermostat that supports the modes “off” and “heat”. Since Home Assistant 2025.12, the Tuya integration only lets me select “off” and “heat_cool”. If I set the thermostat to “heat” in the Tuya app, Home Assistant immediately turns it into “off”.

In the log I found this message:

Found invalid enum value heat for datapoint mode in product id sqkxklkleeasfk8w, expected one of ['auto']; please report this defect to Tuya support

The suggestion to contact Tuya support in China is unrealistic. I’m not going to do that. Instead, I’d like to fix the code myself. The thermostat worked correctly before 2025.12.

Is there any documentation that explains how these datapoints are mapped to Home Assistant enums? Are there any “quirks” or device-specific overrides where I can correct the behaviour for my thermostat?

I can report the same problem.

Tuya _TZE200_cwnjrr72 TS0601 Thermostat

State shown as unknown, because the real state (preset) of the thermostat is Temporary

enum_out_range|mode|temporary

In the Tuya IO integration webpage, on the device debug session, this is what i can see. For some reason it doesnt see the presets.

Looking at the bug reports this seems to be quite a misery and there can be lots of affected users me involved. I wonder would Xtend Tuya be the solution GitHub - azerty9971/xtend_tuya: eXtend Tuya's integration ? Any experience or thoughts?