tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
879 stars 207 forks source link

Climate entity (BHT-002 Thermostat) showing incorrect temperatures #770

Open SinnoTech opened 2 years ago

SinnoTech commented 2 years ago

Describe the bug The Thermostat integration of Tuya platform does not show the thermostat entity correctly, only one entity show (which is the minimum requirement i guess), but this entity shows min 1degree and max 7degrees instead of the standard temp range in the app (5 to 35).

Screen lock not available in HA

image

image

image

Expected behavior

Screenshots image

image

image

Home Assistant Version

SaSa1983 commented 2 years ago

I have the same issue... By the way the "current_temperature" attribute on the climate entitiy is "null" but it should contain the current value

woolf0007 commented 2 years ago

I upgraded the HA core and the tuya thermostats showed a bad value again and started heating the whole house, I woke up to be very hot :), i went back to my april backup again until the bug is fixed again. Now I'm sure I'll replace all my tuya devices ...

SaSa1983 commented 2 years ago

I'm having the same problem... The calculation changed in 2022.5 ... I guess we need to discuss this with @frenck since voltage is not calculated the same way as temperature and now the temperature is not calculated as documented. Thus I'm also getting a fifth of the value that it should have

aperr69 commented 2 years ago

Same issue after upgrading to 2022.5.

SaSa1983 commented 2 years ago

Is there by chance any chance to add an option for generic thermostats to handle temperatures as they were handled in 2022.5.

Or is there any chance to make the template sensor Plattform support climate?

Shagrat2 commented 2 years ago

I have problem too

Zamba23 commented 2 years ago

I have problem too.

vfedoretc commented 2 years ago

I have problem too

muttaka1 commented 1 year ago

I have same problem too 2023.1.7

spartan-117 commented 1 year ago

I also have the problem with 2023.3.2 according to the diagnosis, my wrong heater is the only one with a scale of 1. and the temperature is divided by 10

            "type": "Integer",
            "value": {
              "unit": "\u2103",
              "min": 15,
              "max": 35,
              "scale": 0,
              "step": 1
            }
          },
          "temp_current": {
            "type": "Integer",
            "value": {
              "unit": "\u2103",
              "min": 0,
              "max": 99,
              "scale": 1,
              "step": 1
            }
          }
        },
        "status": {
          "switch": false,
          "temp_set": 17,
          "temp_current": 17
        },
        "home_assistant": {
          "name": "heater living room",
          "name_by_user": "Heater dining room",
          "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.smart_fan_heater_wififnh10cbk",
                "state": "off",
                "attributes": {
                  "hvac_modes": [
                    "off",
                    "heat"
                  ],
                  "min_temp": 15.0,
                  "max_temp": 35.0,
                  "target_temp_step": 1.0,
                  "current_temperature": 1.7,
                  "temperature": 17.0,
                  "friendly_name": "Heater dining room",
                  "supported_features": 1
                },