esphome / esphome/feature-requests

Add more modes for datapoint values in climate.tuya

Open
#2,329 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

I would like to see if we can add more modes for datapoint values in Tuya Climate component. Currently, there is Heat/Cool and Eco. My mini split has Auto, Dry, and Fan modes in addition to those.

**Please describe your use case for this integration and alternatives you've tried:**

I've tried to use a climate.thermostat component to build a generic climate entity in Home Assistant that would do things like choose different input selects, but it did not work as expected and I could not get it to change temperature.

I would like the entity to have controls for the modes heat,cool,dry,fan and auto. Also, adding fan mode would be nice.

**Additional context**

Here are datapoints and datapoint values for the mini-split system I am working with.
```
Tuya Climate - Traiden Mini-Split

(switch) Datapoint 1 - Power
(int) Datapoint 3 - Current Temp
(int) Datapoint 2 - Setpoint / Target Temperature.
(enum) Datapoint 4 - Operating Mode
0 = Cool
1 = Heat
2 = Dry
3 = Fan
4 = Auto
(enum) Datapoint 5 - Fan Speed
0 = Auto
1 = Turbo
2 = Low
3 = Medium
4 = High
(switch) Datapoint 8 - Eco mode
(switch) Datapoint 12 - Unknown (Maybe "Health", Not used for most cases)
(switch) Datapoint 101 - Sleep Mode
(switch) Datapoint 102 - Unknown (Maybe "Health", Not used for most cases)
(switch) Datapoint 103 - Auto Clean
(switch) Datapoint 104 - Display/Screen
(switch) Datapoint 106 - Vertical Oscilation
(switch) Datapoint 107 - Horizontal Oscilation
(bitmask) Datapoint 108 - Unknown
(bitmask) Datapoint 109 - Unknown
(bitmask) Datapoint 110 - Unknown
```

This issue is similar to https://github.com/esphome/feature-requests/issues/1519. However, that issue is over 1 year old, and has none of this information. I would be glad to help with the development of this, if someone could "lead me to water" and show me how to implement these changes. I am not expert in C++, or this project.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the climate.tuya component entry point and inspect how its current Heat, Cool, and Eco datapoint values are represented. The work is done when the entity exposes Heat, Cool, Dry, Fan, and Auto modes, plus fan-mode controls, using the datapoint mappings described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.