Closed maforshaw closed 4 years ago
Yes, that's a bug, due to the state update done in the Tuya library, This piece of code is indentical to original version, but in original version both conditions could never be true! It will be fixed with next realese.
Can you confirm that with last release issue is solved?
Hi, I just updated and can confirm it works perfectly, thank you.
I switched from the official Tuya integration to this custom integration to fix the various well known issues seen in the logs. That fixed the log errors but introduced a new problem - climate devices now cannot be switched off.
There are two ways to turn off a climate device, either set "hvac_mode" to "off" via service climate.set_hvac_mode or use service "climate.turn_off". Both of those fail. What actually happens is the device turns off and then back on.
I have tracked it down to a missing ELSE in the file "climate.py". See below.
Notice how it turns if off and then back on! The fix is as follows:
The above fix means it now can be turned off using either service climate.set_hvac_mode or climate.turn_off.