Smart Life (tuya) show wrong temperature

Same here, i’ve “solved” by modify the climate tuya py in custom components and then edited it:

from:

@property
def current_temperature(self):
    """Return the current temperature."""
    return self.tuya.current_temperature()

to:

@property
    def current_temperature(self):
        temp = float(self.tuya.current_temperature())/2
        return temp

Full steps:

  1. in homeassistant custom_components folder create a folder named climate

  2. then homeassistant custom_components/climate folder:
    wget https://raw.githubusercontent.com/home-assistant/home-assistant/master/homeassistant/components/climate/tuya.py

  3. edit the custom_component as described above

Note:

  • That’s a rough fix (probably shows only int vaues) i’ve made it only to make a try.
  • The reason is in the way tuya shares temperatures, to ha a resolution of 0.5 all the temperatures are transmitted doubled. So “40” is 20° and “41” is 20,5°
  • Making a custom_components named exactly as the original components will override that, so that way overrides the original /climate/tuya.py.
  • To revert back to official support just remove the tuya.py file from custom_components