xZetsubou / hass-localtuya

🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
https://xzetsubou.github.io/hass-localtuya/
GNU General Public License v3.0
415 stars 52 forks source link

Malfunction of the plus button of the climate entity #120

Closed mmorenocab closed 9 months ago

mmorenocab commented 9 months ago

The problem

When the plus (+) button of the climate entity is pressed, the temperature shoots to the set maximum instead of advancing 0.1, 0.5 or 1 step.

2024-01-29 08_55_33-Ajustes – Home Assistant 2024-01-29 08_56_48-Ajustes – Home Assistant

The minus (-) button works correctly.

Environment

Steps to reproduce

  1. Open localtuya integration
  2. Open a climate entity
  3. Click plus button

DP dump

{
  "result": {
    "properties": [
      {
        "code": "switch",
        "custom_name": "",
        "dp_id": 1,
        "time": 1705173166757,
        "value": true
      },
      {
        "code": "mode",
        "custom_name": "",
        "dp_id": 2,
        "time": 1705164665489,
        "value": "auto"
      },
      {
        "code": "frost",
        "custom_name": "",
        "dp_id": 10,
        "time": 1705164666988,
        "value": false
      },
      {
        "code": "temp_set",
        "custom_name": "",
        "dp_id": 16,
        "time": 1705219206885,
        "value": 21
      },
      {
        "code": "upper_temp",
        "custom_name": "",
        "dp_id": 19,
        "time": 1705164667490,
        "value": 23
      },
      {
        "code": "temp_current",
        "custom_name": "",
        "dp_id": 24,
        "time": 1705223785975,
        "value": 21
      },
      {
        "code": "lower_temp",
        "custom_name": "",
        "dp_id": 26,
        "time": 1705164668486,
        "value": 10
      },
      {
        "code": "temp_correction",
        "custom_name": "",
        "dp_id": 27,
        "time": 1705164669065,
        "value": -3
      },
      {
        "code": "week_program3",
        "custom_name": "",
        "dp_id": 30,
        "time": 1705164669568,
        "value": "BgAAEgkAABILHgAUDR4AFREAABUVAAARCQAAFRUAABE="
      },
      {
        "code": "work_days",
        "custom_name": "",
        "dp_id": 31,
        "time": 1705164670112,
        "value": "5_2"
      },
      {
        "code": "valve_state",
        "custom_name": "",
        "dp_id": 36,
        "time": 1705219213806,
        "value": "open"
      },
      {
        "code": "factory_reset",
        "custom_name": "",
        "dp_id": 39,
        "time": 1705164670612,
        "value": false
      },
      {
        "code": "child_lock",
        "custom_name": "",
        "dp_id": 40,
        "time": 1705164671111,
        "value": false
      },
      {
        "code": "sensor_choose",
        "custom_name": "",
        "dp_id": 43,
        "time": 1705164671611,
        "value": "in"
      },
      {
        "code": "backlight",
        "custom_name": "",
        "dp_id": 44,
        "time": 1705164676453,
        "value": 10
      },
      {
        "code": "fault",
        "custom_name": "",
        "dp_id": 45,
        "time": 1705164676950,
        "value": 0
      }
    ]
  },
  "success": true,
  "t": 1705228195669,
  "tid": "dc1570cab2c711eeb846e2ba4cc47aff"
}

Provide Home Assistant traceback/logs

I think it's not relevant.

Additional information

On the other hand on this fork, I have not been able to get this same entity to detect the state (open/close) of my boiler valve.

Otherwise, this fork, in addition to being necessary, works very well. Congratulations, good job.

xZetsubou commented 9 months ago

Post device diagnostics

mmorenocab commented 9 months ago

Post device diagnostics

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2024.1.5",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "armv7l",
    "timezone": "Europe/Madrid",
    "os_name": "Linux",
    "os_version": "6.1.21-v7+",
    "run_as_root": true
  },
  "custom_components": {
    "tuya_local": {
      "version": "2024.1.1",
      "requirements": [
        "tinytuya==1.13.1"
      ]
    },
    "hacs": {
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "sonoff": {
      "version": "3.5.4",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "localtuya": {
      "version": "3.2.4",
      "requirements": []
    },
    "nodered": {
      "version": "3.1.3",
      "requirements": []
    },
    "edata": {
      "version": "2023.06.3",
      "requirements": [
        "e-data==1.1.5",
        "python-dateutil>=2.8.2"
      ]
    },
    "config_editor": {
      "version": "4.3",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "localtuya",
    "name": "Local Tuya",
    "codeowners": [],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/xZetsubou/hass-localtuya/",
    "integration_type": "hub",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/xZetsubou/hass-localtuya/issues",
    "requirements": [],
    "version": "3.2.4",
    "is_built_in": false
  },
  "data": {
    "device_config": {
      "friendly_name": "Termostato DY-107",
      "host": "192.168.10.207",
      "local_key": "cpYxxxxxxxx>7NJo",
      "protocol_version": "3.3",
      "enable_debug": false,
      "entities": [
        {
          "entity_category": "None",
          "target_temperature_dp": "16",
          "current_temperature_dp": "24",
          "temperature_step": "1",
          "min_temperature": 7.0,
          "max_temperature": 35.0,
          "precision": "1",
          "hvac_mode_dp": "2",
          "hvac_mode_set": {
            "heat_cool": "Manual",
            "auto": "Program"
          },
          "hvac_action_dp": "36",
          "hvac_action_set": {
            "heating": "opened",
            "idle": "closed"
          },
          "preset_set": {},
          "temperature_unit": "celsius",
          "friendly_name": "",
          "id": "1",
          "platform": "climate",
          "icon": ""
        }
      ],
      "product_key": "gdusjavy8i4dpjlt",
      "device_id": "bf0595xxxxxxxxxx52edav",
      "node_id": null,
      "dps_strings": [
        "1 ( value: True )",
        "2 ( value: auto )",
        "10 ( value: False )",
        "16 ( value: 18 )",
        "19 ( value: 23 )",
        "24 ( value: 18 )",
        "26 ( value: 10 )",
        "27 ( value: -3 )",
        "31 ( value: 5_2 )",
        "36 ( value: close )",
        "39 ( value: False )",
        "40 ( value: False )",
        "43 ( value: in )",
        "44 ( value: 10 )",
        "45 ( value: 0 )"
      ]
    }
  }
}
mmorenocab commented 9 months ago

Updated

github-actions[bot] commented 9 months ago

This issue was closed because it was resolved on the release: 3.2.4.1