thank you very much it helped, I have only copied required part.
Since you seem to be a proffessional I have another question.
There are only two HVAC Actions the valve accepts: Off & Heat, but when I send “Off” it goes in Eco mode, “Heat” action makes it Comfort mode. What I would need is ability to Off the thermostat. I tried to manipulate the:
class TuyaPresetMode(t.enum8):
"""Tuya preset mode."""
Eco = 0x00
Auto = 0x01
Off = 0x02
Heat = 0x03
with no success