home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71k stars 29.65k forks source link

Inkbird ITC-308 and Tuya Integration - temperature only displays to the nearest degree #45340

Closed jayscovill closed 3 years ago

jayscovill commented 3 years ago

The problem

Since .118 and the fix for the Tuya integration the ITC-308 Wifi temperature controller only displays to the nearest degree. e.g. 3.5C = 3C in the template sensor and 3.6C = 4C.

You also used to have to /10 to get the correct temp in a template but now you have to *10.

Environment

AlBrough commented 3 years ago

If data has to be manipulated to get the decimal place correct and that decimal data is inaccurate, shows that the home-assistant is no interpreting the API call data correctly; it was better when the value had to be divided rather than multiplied.

This also breaks when trying to change the temperature using the slider in home-assistant and it presents as Unavailable and sets the temperature off the chart

Please can the Tuya maintainer look at this issue?

Values expected in home-assistant: WhatsApp Image 2021-01-26 at 12 05 26 The reality: 2021-01-26 12_13_34-Overview - Home Assistant After using the slider: 2021-01-26 12_17_48-Overview - Home Assistant

jherby2k commented 3 years ago

You can "fix" the temperature being off by x10 by going into the Tuya integration options, choosing your inkbird from the bottom drop-down and clicking “submit”. Then set “Temperature values divider” and “Current Temperature value divider” both to “10”.

But yes, you're still unable to adjust the temperature as described above, I assume because the values are out of range.

jayscovill commented 3 years ago

This seems to be solved by setting the divider through the options for the device in the Tuya integration.

https://community.home-assistant.io/t/inkbird-help-integrate/146376/21

AlBrough commented 3 years ago

That is not a fix because the decimal accuracy is lost. The dashboard Thermostat widget will never work if there is a requirement to hack the values to get them half correct.

Please fix this