question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tuya reporting temperatures off with a factor of 10 after upgrading to 2022.3.1

See original GitHub issue

The problem

After upgrading to 2022.3.1, Tuya started reporting temperatures off with a factor of 10. In other words. 2.5 degC is being shown as 25 degC and so forth.

What version of Home Assistant Core has the issue?

2022.3.1

What was the last working version of Home Assistant Core?

2022.2.9

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

{ “home_assistant”: { “installation_type”: “Home Assistant OS”, “version”: “2022.3.1”, “dev”: false, “hassio”: true, “virtualenv”: false, “python_version”: “3.9.9”, “docker”: true, “arch”: “x86_64”, “timezone”: “Europe/Oslo”, “os_name”: “Linux”, “os_version”: “5.10.98”, “supervisor”: “2022.01.1”, “host_os”: “Home Assistant OS 7.4”, “docker_version”: “20.10.9”, “chassis”: “embedded”, “run_as_root”: true }, “custom_components”: { “hacs”: { “version”: “1.23.0”, “requirements”: [ “aiogithubapi>=21.11.0” ] }, “nodered”: { “version”: “1.0.6”, “requirements”: [] }, “solis”: { “version”: “2.0.7”, “requirements”: [] }, “icloud3”: { “version”: “2.4.6”, “requirements”: [] }, “garmin_connect”: { “version”: “0.1.8”, “requirements”: [ “garminconnect==0.1.24” ] }, “audiconnect”: { “version”: “2021.1.1”, “requirements”: [ “beautifulsoup4” ] }, “tibber_custom”: { “version”: “0.4”, “requirements”: [ “matplotlib” ] }, “easee”: { “version”: “0.9.40”, “requirements”: [ “pyeasee==0.7.42” ] } }, “integration_manifest”: { “domain”: “tuya”, “name”: “Tuya”, “documentation”: “https://www.home-assistant.io/integrations/tuya”, “requirements”: [ “tuya-iot-py-sdk==0.6.6” ], “dependencies”: [ “ffmpeg” ], “codeowners”: [ “@Tuya”, “@zlinoliver”, “@METISU”, “@frenck” ], “config_flow”: true, “iot_class”: “cloud_push”, “dhcp”: [ { “macaddress”: “105A17*” }, { “macaddress”: “10D561*” }, { “macaddress”: “1869D8*” }, { “macaddress”: “381F8D*” }, { “macaddress”: “508A06*” }, { “macaddress”: “68572D*” }, { “macaddress”: “708976*” }, { “macaddress”: “7CF666*” }, { “macaddress”: “84E342*” }, { “macaddress”: “D4A651*” }, { “macaddress”: “D81F12*” } ], “loggers”: [ “tuya_iot” ], “is_built_in”: true }, “data”: { “endpoint”: “https://openapi.tuyaeu.com”, “auth_type”: 0, “country_code”: “47”, “app_type”: “tuyaSmart”, “mqtt_connected”: true, “disabled_by”: null, “disabled_polling”: false, “devices”: [ { “name”: “ITC-308-WIFI Thermostat”, “model”: null, “category”: “wk”, “product_id”: “B0eP8qYAdpUo4yR9”, “product_name”: “ITC-308-WIFI Thermostat”, “online”: true, “sub”: false, “time_zone”: “+01:00”, “active_time”: “2021-12-29T18:53:06+00:00”, “create_time”: “2020-10-09T12:20:29+00:00”, “update_time”: “2021-12-29T18:53:17+00:00”, “function”: { “temp_unit_convert”: { “type”: “Enum”, “value”: { “range”: [ “c”, “f” ] } }, “temp_set”: { “type”: “Integer”, “value”: { “unit”: “”, “min”: -400, “max”: 2120, “scale”: 1, “step”: 5 } } }, “status_range”: { “temp_unit_convert”: { “type”: “Enum”, “value”: { “range”: [ “c”, “f” ] } }, “temp_current”: { “type”: “Integer”, “value”: { “unit”: “\u2103”, “min”: -500, “max”: 1200, “scale”: 1, “step”: 10 } }, “temp_set”: { “type”: “Integer”, “value”: { “unit”: “”, “min”: -400, “max”: 2120, “scale”: 1, “step”: 5 } }, “temp_current_f”: { “type”: “Integer”, “value”: { “unit”: “\u2109”, “min”: -500, “max”: 2480, “scale”: 1, “step”: 10 } } }, “status”: { “temp_unit_convert”: “c”, “temp_current”: 70, “temp_set”: 70, “temp_current_f”: 446 }, “home_assistant”: { “name”: “ITC-308-WIFI Thermostat”, “name_by_user”: null, “disabled”: false, “disabled_by”: null, “entities”: [ { “disabled”: false, “disabled_by”: null, “entity_category”: null, “device_class”: null, “original_device_class”: null, “icon”: null, “original_icon”: null, “unit_of_measurement”: null, “state”: { “entity_id”: “climate.itc_308_wifi_thermostat”, “state”: “off”, “attributes”: { “hvac_modes”: [], “min_temp”: -200.0, “max_temp”: 1060.0, “target_temp_step”: 0.5, “current_temperature”: 70.0, “temperature”: 35.0, “friendly_name”: “ITC-308-WIFI Thermostat”, “supported_features”: 1 }, “last_changed”: “2022-03-07T02:31:30.333775+00:00”, “last_updated”: “2022-03-07T10:05:34.262929+00:00” } } ] } } ] } }

Example YAML snippet

Not applicable

Anything in the logs that might be useful for us?

Not applicable

Additional information

Not applicable

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Z02Xcommented, Jul 6, 2022

I think this is fixed now.

1reaction
munichrich1932commented, Apr 10, 2022

Dont know if this helps troubleshoot at all but I have 2 different versions of Tuya TRV one type (TRV-Z01-80* ) version is displaying the correct temperature the other type (QM-BRT-100-05 ) is way off by a multiple factormuch as others are seeing…

Manufacturers;

Roeam (TRV-Z01-80* (c88teujp)) works correctly ( 10 examples) Qiumi (QM-BRT-100-05 (b6wax7g0) ) data is incorrect ( 10 examples)

HA version is latest ( core-2022.4.1)

Just to reiterate what other have said; Both versions work fine in the Smart Life app

Hope this info helps , if I can help in any way ( logs, testing etc ) please let me know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Smart Life (tuya) show wrong temperature - #205 by krskrab
Temperatures (readings and settings) are out by a factor of a fifth; Temperatures never update. When I add the TUYA 2 integration (I've ......
Read more >
Temperature and Humidity Sensor Solutions-Tuya Smart
Real-time sensing of environmental temperature and humidity, and view temperature and humidity data anytime, anywhere. It is widely used in various scenes.
Read more >
Tuya Climate — ESPHome
Some Tuya climate devices report the temperature with a multiplied factor. This is because the MCU only utlizes integers for data reporting and...
Read more >
New in Apilio: Tuya (Smart Life) devices now with proper scaling
Today we are releasing an update to our integration with Tuya that ... “2” then it manages to set the device to 10C,...
Read more >
Adafruit IO Changelog
IoT Projects. Happy Birds - a Connected Bird Feeder. happybird. An internet-connected bird feeder with an ultrasonic sensor that snaps pictures of birds...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found