Smart Life (tuya) show wrong temperature

Since Tuya become a standalone integration of Home assistant, you can’t install it through hacs anymore, right? This means there is no tuya folder in the custom_components folder. So option 2 described is not feasible, right?

Second method, that is patching components/tuya/base.py and components/tuya/climate.py worked just fine for me on 2022.09 I’m running supervised to the actual files were in

/var/lib/docker/overlay2/10acf1c65dc37fd43ce03f9c762a17fbd0d586d233f530a223158cff6a5d2a32/merged/usr/src/homeassistant/homeassistant/components/tuya/

1 Like

this saved me so many headaches. thanks!

I just bought a thermostat and try to install Tuya integration, but I got the same issue. Even if there is a conversion issue on Home Assistant, the problem is coming from Tuya site.
If you look at my screenshots, the Smart life app is displaying 23.5°C then on tuya site the value is showing 47°C so it is multiplied by two. Then it is divided by ten in HA.

So before trying to convert in HA, it would be better to open a change request to Tuya teams, but I didn’t found where to do that.

image

1 Like

That’s 4.7 not 47

Hi there,
My Tuya thermostates show the correct temp, but there is no indication if the boiler is heating or the termostate has cut out…is there any way to make that show :fire:?

Hi angusc
47 is the value seen by tuya’s site. 4.7 is the value seen by HA

1 Like

hvac_modes:
  - 'off'
  - heat_cool
min_temp: 1
max_temp: 7
target_temp_step: 0.5
friendly_name: thermostat
supported_features: 1
current_temperature: 4.5
temperature: 4.7

You should have two temperature values for the climate integration. current_temperature is the big display

1 Like

thanx,

Where would I edit that configuration?

I don’t know. This setting was created by tuya integration

Are you using the standard integration or the Custom Tuya one?

Yes, the one available on HA 2022.11.2 in integration modules

I’m trying to set up the Tuya Custom integration I cant figure out how to get all the devices in to that integration, its blank at the moment. So i tried to add the devices manually. . Please does anyone know what I should fill in for the “HOST” below? I got all the other information and tried the IP of my HA installation as a local IP address but it doesn’t work:
EDIT and FIX: I should have used the IP address of the device im trying to connect to and NOT the HA IP.

1 Like

I’m running HA in Docker and can confirm, that this “hack” works.
Some pointers:

  • no need to remove the already installed Tuya integration, just restart HA
  • when upgrading HA by pulling a new Docker image, this “hack” will remain

Thanks @midstar !!

@krskrab That is slightly off topic as you are talking about a different integration (Tuya local) Getting device keys is somewhat involved.

@PatriceL 4.7 needs to be multiplied by 5 which is 23.5° and the beginning of this thrtead explains exactly how to fix this.

Thank you @anverx I’ve finished to understand that @krskrab was talking about Local Tuya when I was talking about Tuya cloud.
It looks that the latest version of HA doesn’t provide the same integration that was provided before and I was not able to found how to correct the calculation.
So I was able to get the right values using Local Tuya but in my case it doen’t work, because I want to install my thermostat in another house where there is no HA (parent’s home).
By the way, I gave and returned this BHT-002 to Amazon and order a meross instead.
It works perfectly and I am able to integrate it from iot.meross
image

So thank you all for these information

:thinking:

So now you are able to get the keys from tyua developer interface, that’s great! It makes local tuya much easier to setup.
At one point the only way to get them was to run a buggy old version of the tuya android app in an emulator on a PC.

I’m using local tuya for a couple of power measuring sockets, should probably move the thermostats over as well.

Hi Yozen,

I have the same problem of values of the temperatures in my system.
I run HA on Respberry PI3 B (Raspberry Pi - Home Assistant).
HA version 2022.12.08.

I tried to find the file: /usr/src/homeassistant/homeassistant/components/tuya/climate.py
But probably because of the different environment (your Docker vs my Raspberry’s OS) it was not successful.
Do you have an idea where I can find this climate.py file for modifying that line?
Thank you for your help.

Karoly.
Hungary.