Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.82k stars 1.64k forks source link

Tuya TV02 heating_stop resets temperature preset #14081

Closed voed closed 1 year ago

voed commented 2 years ago

What happened?

After setting heating_stop to on and off again, current_heating_setpoint resets to 20 °C. Not sure if it can be fixed but i tried with tuya hub and it is resetting too, but to 17 °C instead.

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

  1. Set current_heating_setpoint to 19°C
  2. Turn on heating_stop
  3. Turn off heating stop
  4. Now current_heating_setpoint is 20°C

Zigbee2MQTT version

1.27.2

Adapter firmware version

20220219

Adapter

CC2652R

Debug log

No response

voed commented 2 years ago

Guess i should open it in converters repo.

voed commented 2 years ago

Um, or not. Anyways, here's what i found: when heat_stop is enabled, i can click on preset selector(manual, auto etc..), heat stop will be disabled without resetting the temperature. But if i click on heat_stop switch instead, it resets temperature to default state of previous preset(17 for auto or 20 for manual). So i think we can just remove this line to fix the issue. Also maybe try to read current preset instead of just setting 'manual' here? @vladi1234 take a look please

voed commented 2 years ago

Also changing current_heating_setpoint when heating_stop is enabled just resetting current_heating_setpoint to 20 so i guess here we should change mode first and then change heating setpoint.

vladi1234 commented 2 years ago

Hello @voed, it is due to the internal TVR function as soon as the value or parameter has changed, then TVR always changes to Auto_Mode.

I have examined this effect again today and found a solution that can handle these effects.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

hans9t9 commented 1 year ago

Hello @voed, it is due to the internal TVR function as soon as the value or parameter has changed, then TVR always changes to Auto_Mode.

I have examined this effect again today and found a solution that can handle these effects.

Please can you let me know what your solution is? I experience the same behaviour of the TVR.

voed commented 1 year ago

@hans9t9 instead of turning on just set preset mode to manual. It will turn on without resetting the temperature.

hans9t9 commented 1 year ago

Thanks @voed, I tried it out right away and this works!