core icon indicating copy to clipboard operation
core copied to clipboard

Tuya thermostat not showing the current temperature

Open ZTHawk opened this issue 3 years ago • 2 comments
trafficstars

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"). grafik

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

ZTHawk avatar Sep 17 '22 22:09 ZTHawk

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?

Westeru avatar Sep 20 '22 19:09 Westeru

No I have no solution or workaround. This means I cannot use the integrated teperature for automations.

ZTHawk avatar Sep 27 '22 12:09 ZTHawk

Tengo el mismo problema.

mirasu avatar Oct 16 '22 10:10 mirasu

@mirasu Please only comment in the English language. Thanks 👍

frenck avatar Oct 16 '22 13:10 frenck

I am also experiencing this issue, i am happy to help the devs in anyway to get this resolved, thanks

coleburg avatar Oct 26 '22 09:10 coleburg

@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

SaSa1983 avatar Nov 02 '22 19:11 SaSa1983

I can confirm this is an issue in 2022.11.0 too

coleburg avatar Nov 03 '22 20:11 coleburg

I have the same problem with the Tuya TS0601. Can't see the current temperature in entities.

dayt47 avatar Nov 21 '22 19:11 dayt47

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

MacManas avatar Dec 13 '22 13:12 MacManas

Seeing similar here, looks to be 5x lower than it is

Stevehans avatar Dec 29 '22 18:12 Stevehans

Also same issue, current_temperature showing null, is anyone trying to resolve this? been open a long time.

coleburg avatar Feb 09 '23 11:02 coleburg

I have found the current temp listed in the Tuya API as "code": "RoomTemper", can this be added please?

coleburg avatar Feb 17 '23 10:02 coleburg

Also facing the same issue. Had anyone already a solution maily to get the current temperature?

Matthias0705 avatar Mar 05 '23 08:03 Matthias0705

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.

ZTHawk avatar Jun 04 '23 05:06 ZTHawk

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...

nmajin avatar Jun 27 '23 03:06 nmajin

Rapid Fairland Pool Heat Pump with Tuya modul is showing the same value in min_temp: -22 as in current_temperature: -22

Screenshot 2023-08-16 at 21 55 45

rici44 avatar Aug 16 '23 19:08 rici44

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?

Mink2781 avatar Nov 20 '23 16:11 Mink2781

Hi, same issue here

tvvalbonne avatar Dec 12 '23 14:12 tvvalbonne

https://github.com/tuya, @zlinoliver , @frenck, please can someone look at this, its been 2 years

coleburg avatar Mar 11 '24 14:03 coleburg

Does anyone look into Tuya issues?

coleburg avatar Apr 14 '24 20:04 coleburg

same issue here

szeleneyr avatar May 17 '24 16:05 szeleneyr