I’ve been fighting with this for several days and I can’t work out the conversion. It seems like it keeps changing.
The default values (with a stock Tuya installation) are
Set Temp = 32.6F
The actual temps are:
Set Temp = 38.3F
This gives a conversion of: 32.6-32 = 0.6 0.6*10 = 6 6+32 = 38
Close Enough…
However, if I change the climate.py file to this:
@property
def current_temperature(self):
"""Return the current temperature."""
return (((self._tuya.current_temperature()-32)*10)+32)
I get -480.5F…
EDIT: I think I finally got it. I had to force the units to Celsius even though my InkBird is set to Fahrenheit. Then I had to change climate.py to this:
@property
def current_temperature(self):
"""Return the current temperature."""
return (((self._tuya.current_temperature() * 10) * (9/5)) + 32)
When I create cataloge in custom and copy files after restart Tuya component dosn’t work at all.
I’m using Celcius. I have radiators valves witch shows 198 degrees and thermostate for electric heater witch show 48 degrees. In the same time one climate show temperature x10 and second x2. How should be climate.py modified in this case?
After some fiddling around, I’ve found out that the tuya integration does not work for zigbee trv. Tuya api simply does not provide the necessary information and the temp is off by 10 times. People had find solution with cc2531 and zigbee2mqqt. I have ordered one and try it out. I suggest the same.
I bought this kit:
HUF 4,153.15 16% Off | CC Debugger CC2531 Zigbee CC2540 Sniffer Wireless Bluetooth 4.0 Dongle Capture Board USB Programmer Module Downloader Cable BXV
Ciao,
Scusa ma a te funziona ancora? Anche con i nuovi aggiornamenti? Poi tu come fai? Scarichi da GitHub la cartella components/tuya e poi modifichi climate.py?
Hello all,
Good news for bht-6000 tuta/Beca thermostat.
With last update of home assistant 0.118.1 is possible to configure temperature type (centigrade or farenheit) and most important the divided factor for correct the problem like doubled temperature or 10x. Also is possible to set the polling time of update states. So finally is not necessary anymore to edit any line of climate.py.
All info there https://www.home-assistant.io/integrations/tuya
when I change climat.py file line: @property
def current_temperature(self):
temp = float(self.tuya.current_temperature())/10
return temp
“”“Return the current temperature.”""
The sensor have a status unavailabe in HA and wen I click on it I have an error " Faild to call service climate/set_havac_mode.‘TuyaClimateEntity’ object has no attribute "tuya’
go to Settings, then Integrations then Options in TUYA… once inside, select the menu of last line and choose your device… then you will see the view posted by Jakub