core: Tuya Platform Thermostat gives wrong temperature
Previously reported in #19679 but still an issue now, TUYA based thermostats report an ambient temperature double what it really is when reporting in degrees Celsius. Ie: 28 degrees room temp gets reported as 56 degrees in Home Assistant. This seems to have been present for quite a long time and is still present now. Home Assistant release with the issue:
0.103.6 (hassio)
Last working Home Assistant release (if known): Not known. Seems to have been an issue for a long time
Operating environment (Hass.io/Docker/Windows/etc.):
Hassio on Raspberry Pi 3b+ Integration:
Tuya Smart Life climate integration.
Description of problem:
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
Traceback (if applicable):
Additional information:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 27 (2 by maintainers)
This is still an issue in 108.x It is a native integration, we should not need to muck around with patches in reality.
I have found both values doubled. Current Temp and Set Temp both exactly double what it should be.
I have only tested with Celsius, I do not have a thermostat for Farenheit.
I am not good with coding, but open for any testing if someone can have a look at this? I don’t have many Tuya based devices, but I would be happier to have this fixed than to try and muck around with custom_components or custom firmware.
Thanks all
Hi all!
i’m also have the same isuue with thermostat: BHT-002GBLW with two sensors (internal for room temperatur and floor sensor).
I’ve checked this solution also: https://community.home-assistant.io/t/smart-life-tuya-show-wrong-temperature/89093/2
but as i see it does not fit in case i need to use two sensors, because in this case divide temperature by 2 in tuya.py will return average temperature between floor and room (they definitely will be different).
so i’ve tried to understand if there is two separate attributes returned from Tuya?
To do it i have executed http request with postman as it done in code here: https://github.com/PaulAnnekov/tuyaha/blob/66b1ff762597b7f70fd85a3f57cbfdb15b39e22f/tuyaha/tuyaapi.py#L151 (it makes post request to this URL: https://px1.tuyaeu.com/homeassistant/skill)
REQUEST:
RESPONSE:
As we can see there is only one temperature
current_temperature = 48which seems to be sum of temperatures from two sensors.Do you have any idea if it is possible to get two separate temperatures for both sensors as i Tuya mobile application?
There hasn’t been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
@WRLPDZ , for me flashing https://github.com/fashberg/WThermostatBeca was the only way make Tuya thermostats controllable by HA.
@austwhite what board version of bht-002gblw did you do this to and how.? You say ‘an alternative firmware’ which was that? Thx
I did use Klaus’s Firmware on one device and used Tuya convert to flash it and it reported all temperatures properly.
Unfortunately a dodgy update (my fault) bricked the ESP on the unit and I was stuck with a dumb thermostat again. Got to be careful with updates. I have learnt a lesson from that one. If it aint broke, don’t flash it 😃
It has been suggested that the two sensors are added together making it double. I disagree. It is simply returning double the room air sensor. It is not retrieving the floor sensor at all. I assert this because in the app my sensors are not showing the same values: 24c & 15c currently, tuya returning 48c.
me too
thermostat Moes BHT-002GBLW Home Assistant 0.106.5