Smart Life (tuya) show wrong temperature

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)

Hi,
I’m running version 0.116.4

  1. When I create cataloge in custom and copy files after restart Tuya component dosn’t work at all.
  2. 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?
1 Like

Hello, i have similar issue.

I have a TRV and a Thermostat. The current temp are same (x10) but the desired temp are different. Could anybody help to resolve this?

Thank you

Hello, after I copy tuya folder to custom_components system show:

I am having the same problem. Also the temperatures are not changeable from Homeassistant. Only Smart Life app works.

1 Like

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.

1 Like

Today i decided to step this way also. :slight_smile: thanks

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

And I found this tutorial:

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?


Home Assistant - Intergrations - Tuya - Options
In these settings you can change the temperature or the polling interval

In mine hassio is missing the options button/link

This integration is configurable via UI

image
no options

I had a problem with the temperature - bad readings.
I removed Tuya, restarted the HA and added again, Now it works great

Options are available from 0.118.1 so i must update…now works good

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

Hello,

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’

What is wrong?

SOLVED, by changing a options in intergation

6 Likes

There is not this settings panel in my HA

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

2 Likes

Still can’t figure out how to use halves precision with Moes BHT-002-GBLW