milo526 / homebridge-tuya-web

Hoobs and Homebridge plugin for Tuya devices using Home Assistant Tuya Web Api
MIT License
219 stars 95 forks source link

AC temperature units scale factor #428

Closed alonsofedz closed 2 years ago

alonsofedz commented 2 years ago

Describe the bug An AC unit shows up in HomeKit as having a minimum temperature of 160° and maximum temperature of 880°. Those are the values reported by the Tuya API. The actual unit goes from 16° to 31°.

Needless to say, temperature can't be adjusted through Homekit. The temperature sensor displays the correct temperature, however. I tried adding a scale factor of 48 as a device config, but saw no changes. And the temperature factor only changes the displayed temperature, not the actual thermostat.

Homebridge Config

 {
     "name": "TuyaWebPlatform",
     "options": {
         "username": REDACTED,
         "password": REDACTED,
         "countryCode": REDACTED,
         "platform": "tuya",
         "pollingInterval": 600
     },
     "defaults": [
         {
             "id": "08502800a4e57c9f8832",
             "device_type": "climate",
             "current_temperature_factor":null
         }
     ],
     "scenes": false,
     "platform": "TuyaWebPlatform"
 }

Device Config

{"data": {
        "current_temperature": 24,
        "max_temper": 880,
        "min_temper": 160,
        "mode": "auto",
        "online": True,
        "state": "true",
        "support_mode": [
          "cold",
          "hot",
          "wind",
          "auto"],
        "temp_unit": "CELSIUS",
        "temperature": 160},
        "dev_type": "climate",
        "ha_type": "climate",
        "icon": "https://images.tuyaus.com/smart/product_icon2/kt_1.png",
        "id": "08502800a4e57c9f8832",
        "name": "Living AC"},
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Peevb commented 2 years ago

Did you find a solution to this? in the same boat here.