core icon indicating copy to clipboard operation
core copied to clipboard

Thermostat reports wrong temperature

Open liquidand opened this issue 1 year ago • 5 comments
trafficstars

The problem

Real temperature is 21.5 and set temperature is 5, but thisi is what I see from thermostat panel image

What version of Home Assistant Core has the issue?

2024.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Diagnostics information

home-assistant_tuya_2024-10-05T16-11-00.406Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

liquidand avatar Oct 05 '24 16:10 liquidand

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tuya can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tuya Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

home-assistant[bot] avatar Oct 05 '24 16:10 home-assistant[bot]

Where Is the solution? Tanks

dany-log4u avatar Oct 07 '24 17:10 dany-log4u

I have the same problem..

nicalab67 avatar Oct 09 '24 20:10 nicalab67

I have the same problem.. @nicalab67 , @liquidand

While waiting for the issue to be resolved on this integration I am using a fork that fixes the issue and can be used in addition to or instead of the other integration. https://github.com/AlessandroTischer/tuya_climate_mult_edit

dany-log4u avatar Oct 10 '24 06:10 dany-log4u

I'm having the same issue...

sjoerdschouten avatar Oct 19 '24 18:10 sjoerdschouten

I'm having the same issue...

https://github.com/AlessandroTischer/tuya_climate_mult_edit

dany-log4u avatar Oct 20 '24 06:10 dany-log4u

I have several tuya thermostats from various manufacturers. A while ago breaking change was introduced to scale_value function in base.py (moved to entity.py with the recent update). So now devices from "proper" manufacturers shows correct temp, and from "wrong" ones - divided by 5 or so.

What fixed it for me and all my devices shows correct temp now: Locate yours base.py i.e. /usr/src/homeassistant/homeassistant/components/tuya/base.py and change function to (count your spaces):

    def scale_value(self, value: float) -> float:
        """Scale a value."""
        return value * self.step / (10**self.scale)

littlease avatar Oct 26 '24 12:10 littlease

Same problem here and I have no idea where files are so I can edit them myself.

jacembo avatar Dec 12 '24 19:12 jacembo

still an issue. 2025.1.2

wtf tuya?

lsdlsd88 avatar Jan 11 '25 09:01 lsdlsd88

While waiting for the issue to be resolved on this integration I am using a fork that fixes the issue and can be used in addition to or instead of the other integration. https://github.com/AlessandroTischer/tuya_climate_mult_edit

Thank you so much for this solution, works like a charm! The problem also affects the Smart Life app data export to the SmartThings app, as per this forum post. Glad your approach solves it for users of Home Assistant!

tomayac avatar Jan 22 '25 10:01 tomayac

Not only it reports wrong temps, but also it does not report HVAC modes, so no way to change to "Auto" or "Manual"

Kedryn avatar Feb 14 '25 10:02 Kedryn

Having this issue as well in °F. I dont think its 176°F in my home office but I am running a 3080 so who knows..

autoentropy avatar Feb 18 '25 22:02 autoentropy

Have to say that before switching to tuya native integration, i was using the other Tuya integration mixed with Tuya Local because my devices were splitted between Tuya Smart and Smart Life. The thermostat was in the latter one, and was working fine, both temperature and HVAC modes.

so something is missing...

Kedryn avatar Feb 19 '25 08:02 Kedryn

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.

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.

there hasn't been activity because you are not fixing your s**t.

the issue is still ongoing on the lastest version.

lsdlsd88 avatar May 20 '25 09:05 lsdlsd88

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.