xZetsubou / hass-localtuya

🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
https://xzetsubou.github.io/hass-localtuya/
GNU General Public License v3.0
366 stars 41 forks source link

[Bug]: Climate Entities reports Wrong Temperatures #294

Closed IlPicasso closed 2 months ago

IlPicasso commented 2 months ago

LocalTuya Version

2024.6.0

Home Assistant Version

2024.7.0b2

Environment

What happened?

A bug happened!

Local Tuya reports wrong current temperatures and wrong range to set temperature

image

In tuya normally, it works greatly

image

Note that all these are sub devices

Steps to reproduce.

Add Device Check Temperature

Relevant log output

No response

Diagnostics information.

No response

xZetsubou commented 2 months ago

Re-configure the device and change the Unit to Fahrenheit

  1. Go to devices --> Localtuya
  2. Click on configure -> choose reconfigure existing device --> Choose your device
  3. On the climate entity configuration UI change the unit to Fahrenheit then click on submits until the configure finish.
IlPicasso commented 2 months ago

Re-configure the device and change the Unit to Fahrenheit

  1. Go to devices --> Localtuya
  2. Click on configure -> choose reconfigure existing device --> Choose your device
  3. On the climate entity configuration UI change the unit to Fahrenheit then click on submits until the configure finish.

Screenshot_2024-07-02-01-47-40-48_c3a231c25ed346e59462e84656a70e50

IlPicasso commented 2 months ago

Screenshot_2024-07-02-01-51-19-01_d448303990bb92d03c4d800220c6084a

xZetsubou commented 2 months ago

Post the device diagnostic, you should be able to download it from device page in Home Assistant

IlPicasso commented 2 months ago

Post the device diagnostic, you should be able to download it from device page in Home Assistant

localtuya-01J1Q4G4DMYCF2M0A9XXRNJCA2-Baño Moises-0ed9dbd12979ba46788ffedcc66244de.json

IlPicasso commented 2 months ago

It is weird, considering diagnostic looks with correct values but it outputs differenly

xZetsubou commented 2 months ago

Try reverting back the unit to Celsius and change Precision (optional, for DPs values) to 1 instead of 0.1

IlPicasso commented 2 months ago

Worked!