mileperhour / localtuya-homeassistant

local handling for Tuya devices
GNU General Public License v3.0
162 stars 732 forks source link

Install smart Thermostat #52

Open tgisop opened 11 months ago

tgisop commented 11 months ago

Hello, I want to install the smart thermostat on HA with local tuya. Can you help me to put the IDs in the respective fields?

image image

Target Temperature Current Temperature Temperature Step (optional) Max Temperature Min Temperature Precision (optional, for DPs values) HVAC mode DP HVAC mode set HVAC Current Action Set (optional) Presets Set (optional)

II am very confused and don't know. When I tried it through tuya integration I managed to display the thermostat card. But I want to connect it via local tuya integration because HA is not going out to the internet due to security reasons.

Thank you

Sputnikchen commented 9 months ago

Go to iot.tuya.com -> Cloud -> API Explorer -> Smart Home Basic-Service -> Smart Home Device Control -> Get Device Specification (last entry). Fill in the 'Device ID' Result: [...]

      {
        "code": "window_check",
        "dp_id": 8,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "temp_set",
        "dp_id": 16,
        "type": "Integer",
        "values": "{\"unit\":\"℃\",\"min\":50,\"max\":350,\"scale\":1,\"step\":5}"
      },

[...]