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
868 stars 206 forks source link

Wront temperature #795

Open pawel-domanski opened 2 years ago

pawel-domanski commented 2 years ago

Describe the bug

Wront temerature on termostat.

Expected behavior

the temperature shown is 5 times higher than it actually is.

Screenshots

image

Home Assistant Version 2022.4.2

Diagnostics for integrations and devices { "home_assistant": { "installation_type": "Home Assistant Core", "version": "2022.4.2", "dev": false, "hassio": false, "virtualenv": true, "python_version": "3.9.2", "docker": false, "arch": "armv7l", "timezone": "Europe/Warsaw", "os_name": "Linux", "os_version": "5.15.32-v7+", "run_as_root": false }, "custom_components": { "google_home": { "version": "1.9.10", "requirements": [ "glocaltokens==0.6.3", "google-api-python-client==2.38.0" ] }, "webrtc": { "version": "v2.3.0", "requirements": [] }, "sonoff": { "version": "v2.4.7", "requirements": [ "pycryptodome>=3.6.6" ] }, "localtuya": { "version": "3.2.1", "requirements": [] }, "diskspace": { "version": "0.8", "requirements": [] }, "securityspy": { "version": "1.1.3", "requirements": [ "pysecspy==1.2.1" ] }, "tuya_v2": { "version": "1.5.0", "requirements": [ "tuya-iot-py-sdk==0.4.1" ] }, "taipower_bimonthly_cost": { "version": "0.51.5", "requirements": [] }, "xiaomi_gateway3": { "version": "2.0.9", "requirements": [ "zigpy>=0.33.0" ] }, "miwifi": { "version": "2.3.0", "requirements": [] }, "config_editor": { "version": "4.1", "requirements": [] }, "hacs": { "version": "1.24.4", "requirements": [ "aiogithubapi>=21.11.0" ] } }, "integration_manifest": { "domain": "tuya", "name": "Tuya", "documentation": "https://www.home-assistant.io/integrations/tuya", "requirements": [ "tuya-iot-py-sdk==0.6.6" ], "dependencies": [ "ffmpeg" ], "codeowners": [ "@Tuya", "@zlinoliver", "@METISU", "@frenck" ], "config_flow": true, "iot_class": "cloud_push", "dhcp": [ { "macaddress": "105A17" }, { "macaddress": "10D561" }, { "macaddress": "1869D8" }, { "macaddress": "381F8D" }, { "macaddress": "508A06" }, { "macaddress": "68572D" }, { "macaddress": "708976" }, { "macaddress": "7CF666" }, { "macaddress": "84E342" }, { "macaddress": "D4A651" }, { "macaddress": "D81F12*" } ], "loggers": [ "tuya_iot" ], "is_built_in": true }, "data": { "endpoint": "https://openapi.tuyaeu.com", "auth_type": 0, "country_code": "48", "app_type": "tuyaSmart", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "name": "Termostat w Jadalni", "model": "HY369RT ZIGBEE", "category": "wk", "product_id": "ckud7u2l", "product_name": "Zigbee Smart", "online": true, "sub": true, "time_zone": "+02:00", "active_time": "2022-04-11T17:34:53+00:00", "create_time": "2022-04-11T05:32:00+00:00", "update_time": "2022-04-11T17:35:19+00:00", "function": { "temp_set": { "type": "Integer", "value": { "unit": "\u2103", "min": 10, "max": 700, "scale": 1, "step": 5 } }, "mode": { "type": "Enum", "value": { "range": [ "comfortable", "auto", "holiday", "eco" ] } }, "child_lock": { "type": "Boolean", "value": {} } }, "status_range": { "temp_set": { "type": "Integer", "value": { "unit": "\u2103", "min": 10, "max": 700, "scale": 1, "step": 5 } }, "temp_current": { "type": "Integer", "value": { "unit": "\u2103", "min": 0, "max": 700, "scale": 1, "step": 5 } }, "mode": { "type": "Enum", "value": { "range": [ "comfortable", "auto", "holiday", "eco" ] } }, "child_lock": { "type": "Boolean", "value": {} } }, "status": { "temp_set": 160, "temp_current": 205, "mode": "manual", "child_lock": false }, "home_assistant": { "name": "Termostat w Jadalni", "name_by_user": null, "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.jadalnia", "state": "heat_cool", "attributes": { "hvac_modes": [ "off", "heat_cool" ], "min_temp": 5.0, "max_temp": 350.0, "target_temp_step": 0.5, "current_temperature": 102.5, "temperature": 80.0, "friendly_name": "Termostat w Jadalni", "supported_features": 1 }, "last_changed": "2022-04-12T06:52:16.488177+00:00", "last_updated": "2022-04-12T06:52:16.488177+00:00" } } ] } } }

pawelZminkowski commented 2 years ago

I have exactly the same problem, 100 in HA equals 20 in smart life. In addition, the error with the change of the state of the sockets still occurs

kevintedder commented 2 years ago

I have the same. Current temp is correct, but set temp is 5 times higher.

adio93 commented 2 years ago

Same here x5

celiasmarthome commented 2 years ago

Same here. Temperature is 5x in home assistant. It shows it correctly in smartlife app and google home app.

pawelZminkowski commented 2 years ago

My temporary solution (which I will probably leave by now) is as follows:

  1. create input_number
    input_number:
    trv1:
    name: Niebieski
    initial: 20
    min: 15
    max: 25
    step: 1
  2. use input to set trv value IN AUTOMATIONS.YAML
    - id: '1649847003643'
    alias: TRV niebieski
    trigger:
    - platform: state
    entity_id: input_number.trv1
    condition: []
    action:
    - service: climate.set_temperature
    data:
      temperature: '{{ states(''input_number.trv1'') | int * 5 }}'
    target:
      entity_id: climate.niebieski
    mode: single
adrian-urbaniak-fluke commented 2 years ago

@pawelZminkowski can you tell where to place second part?

lizi1983 commented 1 year ago

Hi Gent,

Could me support how to fix issue with x5 temp? I just want to integrate 12 wall thermostats to the HA and some supla curtains (that is working). HA is on my local Asustor drive and integration of the Tuya is done by Tuya IoT. We could switch to polish:P Mo mail allegro0@ (onet)op.pl

pawelZminkowski commented 1 year ago

HA is total shit now is you use it with Tuya devices (with some other producers too). Not worth my time. Wanna support? Ok, 5000€ 😂