core
core copied to clipboard
Tuya thermostat not showing the current temperature
The problem
Hello,
I have a thermostat but it is not displaying the current temperature.
It does show the temperature that is set (target temperature).
Here is a screenshot of the values (current_temperature is "null").

In the Tuya app the current temperature is displayed correctly.
What version of Home Assistant Core has the issue?
2022.9.4
What was the last working version of Home Assistant Core?
N/A
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tuya
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya
Diagnostics information
config_entry-tuya-c3222114e3ef9f88ce352816cf48da78.json.txt
Example YAML snippet
N/A
Anything in the logs that might be useful for us?
N/A
Additional information
N/A
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!
(message by CodeOwnersMention)
tuya documentation tuya source (message by IssueLinks)
Have you found any solution for this matter?
No I have no solution or workaround. This means I cannot use the integrated teperature for automations.
Tengo el mismo problema.
@mirasu Please only comment in the English language. Thanks 👍
I am also experiencing this issue, i am happy to help the devs in anyway to get this resolved, thanks
@frenck how about adding a helper (climate multiplier) allowing to set factors for existing thermostats values
min_temp: 5 max_temp: 5 target_temp_step: 1 current_temperature: 5 temperature: 5 ...
this example would solve thermostats only showing a fifth of the actual temperature. This helper would create a entity with the applied factors and call the services of the original (wrong) entity to set temperature...
The "wizard" could also ask to hide the original entity
I can confirm this is an issue in 2022.11.0 too
I have the same problem with the Tuya TS0601. Can't see the current temperature in entities.
Looking at how my device changes according to the values in HA, I think @SaSa1983 seems like a simple but effective solution. I'm actually looking to do so myself for this entity since the existing one is not very useful
Seeing similar here, looks to be 5x lower than it is
Also same issue, current_temperature showing null, is anyone trying to resolve this? been open a long time.
I have found the current temp listed in the Tuya API as "code": "RoomTemper", can this be added please?
Also facing the same issue. Had anyone already a solution maily to get the current temperature?
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.
I have updated to a Zigbee device, so this is not applicable to me. Never the less, I suppose this issue is not yet fixed.
RoomTemper
I was messing around with adding a TuyaSensorEntityDescription: https://github.com/home-assistant/core/blob/d6cd5648b9e6dc7d7fd2892df1a17289157488a0/homeassistant/components/tuya/sensor.py#L499-L508
And seems like it does add the current temp now (°F in my case):
# Heater
# https://developer.tuya.com/en/docs/iot/categoryqn?id=Kaiuz18kih0sm
"qn": (
TuyaSensorEntityDescription(
key=DPCode.WORK_POWER,
name="Power",
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
),
TuyaSensorEntityDescription(
key=DPCode.TEMP_CURRENT_F,
name="Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
),
I was suspecting that ha is missing it in the component from how it calls the dpcode here:
https://github.com/home-assistant/core/blob/d6cd5648b9e6dc7d7fd2892df1a17289157488a0/homeassistant/components/tuya/climate.py#L360-L376
https://developer.tuya.com/en/docs/iot/s?id=K9gf48r1eqi4s
Target Temp and the historical graph are way off...this does seem to all be misconfigured on the ha side here. I am going to at least see if I can request the TuyaSensorEntityDescriptions in a PR to get at least the current temp reading working. Crazy it is just a simple code change there...
Rapid Fairland Pool Heat Pump with Tuya modul is showing the same value in min_temp: -22 as in current_temperature: -22
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.
I also have this problem - current temperature = NULL. Anyone got a workaround?
Hi, same issue here
https://github.com/tuya, @zlinoliver , @frenck, please can someone look at this, its been 2 years
Does anyone look into Tuya issues?
same issue here