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

Tuya Camera Temperature and Humidity scaling incorrect #675

Open sambarlick opened 2 years ago

sambarlick commented 2 years ago

Describe the bug Temperature is shown as 2.6 in home assistant Humidity is show as 4.8 in home assistant

Expected behavior A clear and concise description of what you expected to happen. Temperature should be 26°C Humidity should be 48%.

Screenshots image

Home Assistant Version

Device info (please complete the following information, which can be found in log): like this:

basic_indicator | Boolean | "{true,false}" -- | -- | -- basic_flip | Boolean | "{true,false}" basic_osd | Boolean | "{true,false}" motion_sensitivity | Enum | { "range": [ "0", "1", "2" ] } basic_nightvision | Enum | { "range": [ "0", "1", "2" ] } sd_format | Boolean | "{true,false}" motion_timer_setting | String | { "maxlen": 255 } motion_switch | Boolean | "{true,false}" motion_timer_switch | Boolean | "{true,false}" decibel_switch | Boolean | "{true,false}" decibel_sensitivity | Enum | { "range": [ "0", "1" ] } record_switch | Boolean | "{true,false}" record_mode | Enum | { "range": [ "1", "2" ] } humanoid_filter | Boolean | "{true,false}" basic_indicator | Boolean | "{true,false}" -- | -- | -- basic_flip | Boolean | "{true,false}" basic_osd | Boolean | "{true,false}" motion_sensitivity | Enum | { "range": [ "0", "1", "2" ] } basic_nightvision | Enum | { "range": [ "0", "1", "2" ] } sd_storge | String | { "maxlen": 255 } sd_status | Integer | { "unit": "", "min": 1, "max": 5, "scale": 1, "step": 1 } sd_format | Boolean | "{true,false}" motion_timer_setting | String | { "maxlen": 255 } movement_detect_pic | Raw | {} sd_format_state | Integer | { "unit": "", "min": -20000, "max": 20000, "scale": 1, "step": 1 } motion_switch | Boolean | "{true,false}" motion_timer_switch | Boolean | "{true,false}" decibel_switch | Boolean | "{true,false}" decibel_sensitivity | Enum | { "range": [ "0", "1" ] } decibel_upload | String | { "maxlen": 255 } sensor_temperature | Integer | { "unit": "", "min": 0, "max": 50, "scale": 1, "step": 1 } sensor_humidity | Integer | { "unit": "", "min": 0, "max": 100, "scale": 1, "step": 1 } record_switch | Boolean | "{true,false}" record_mode | Enum | { "range": [ "1", "2" ] } humanoid_filter | Boolean | "{true,false}"

Additional context Add any other context or logs about the problem here. Home Assistant Devs said this is a Tuya issue not a Home Assistant issue, https://github.com/home-assistant/core/issues/58976.

sambarlick commented 2 years ago

Also there is no unit.

  {
    "code": "sensor_temperature",
    "type": "Integer",
    "values": "{\"unit\":\"\",\"min\":0,\"max\":50,\"scale\":1,\"step\":1}"
  },
  {
    "code": "sensor_humidity",
    "type": "Integer",
    "values": "{\"unit\":\"\",\"min\":0,\"max\":100,\"scale\":1,\"step\":1}"
  },
  {
piwi3910 commented 2 years ago

same issue as with all the moes thermostats, been waiting for a fix now for months, and nothing happens, i' ready to rip out all tuya stuff