8000 New Device: TruCool TC1160 Air Conditioner by Felwat · Pull Request #3374 · make-all/tuya-local · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

New Device: TruCool TC1160 Air Conditioner #3374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 22, 2025
Merged

Conversation

Felwat
Copy link
Contributor
@Felwat Felwat commented Jun 15, 2025
Tuya JSON outputs
{
  "category": "kt",
  "custom_name": "Air Conditioner",
  "model": "",
  "name": "TC-1160",
  "product_id": "wl0rysa7fts3j8ll",
  "product_name": "1160移动空调冷暖785客户WBR3",
  "sub": false,
  "functions": [
    {
      "code": "switch",
      "dp_id": 1,
      "type": "Boolean",
      "values": "{}"
    },
    {
      "code": "temp_set",
      "dp_id": 2,
      "type": "Integer",
      "values": "{\"unit\":\"℃\",\"min\":15,\"max\":31,\"scale\":0,\"step\":1}"
    },
    {
      "code": "mode",
      "dp_id": 4,
      "type": "Enum",
      "values": "{\"range\":[\"auto\",\"cold\",\"wet\",\"wind\",\"hot\"]}"
    },
    {
      "code": "windspeed",
      "dp_id": 5,
      "type": "Enum",
      "values": "{\"range\":[\"1\",\"2\",\"3\"]}"
    }
  ],
  "lang_config": {},
  "status": [
    {
      "code": "switch",
      "dp_id": 1,
      "type": "Boolean",
      "values": "{}"
    },
    {
   
8000
   "code": "temp_set",
      "dp_id": 2,
      "type": "Integer",
      "values": "{\"unit\":\"℃\",\"min\":15,\"max\":31,\"scale\":0,\"step\":1}"
    },
    {
      "code": "temp_current",
      "dp_id": 3,
      "type": "Integer",
      "values": "{\"unit\":\"℃\",\"min\":-20,\"max\":100,\"scale\":0,\"step\":1}"
    },
    {
      "code": "mode",
      "dp_id": 4,
      "type": "Enum",
      "values": "{\"range\":[\"auto\",\"cold\",\"wet\",\"wind\",\"hot\"]}"
    },
    {
      "code": "windspeed",
      "dp_id": 5,
      "type": "Enum",
      "values": "{\"range\":[\"1\",\"2\",\"3\"]}"
    }
  ],
  "properties": [
    {
      "code": "Power",
      "custom_name": "",
      "dp_id": 1,
      "time": 1749938114066,
      "type": "bool",
      "value": true
    },
    {
      "code": "temp_set",
      "custom_name": "",
      "dp_id": 2,
      "time": 1750000433380,
      "type": "value",
      "value": 23
    },
    {
      "code": "temp_current",
      "custom_name": "",
      "dp_id": 3,
      "time": 1750001252021,
      "type": "value",
      "value": 26
    },
    {
      "code": "mode",
      "custom_name": "",
      "dp_id": 4,
      "time": 1749997387641,
      "type": "enum",
      "value": "wind"
    },
    {
      "code": "windspeed",
      "custom_name": "",
      "dp_id": 5,
      "time": 1749937460370,
      "type": "enum",
      "value": "2"
    },
    {
      "code": "C_F",
      "custom_name": "",
      "dp_id": 19,
      "time": 1750000357631,
      "type": "enum",
      "value": "C"
    },
    {
      "code": "SLEEP",
      "custom_name": "",
      "dp_id": 101,
      "time": 1749937477650,
      "type": "bool",
      "value": false
    },
    {
      "code": "Defrost",
      "custom_name": "",
      "dp_id": 102,
      "time": 1748277792796,
      "type": "bool",
      "value": false
    },
    {
      "code": "Timer",
      "custom_name": "",
      "dp_id": 103,
      "time": 1715437989807,
      "type": "value",
      "value": 0
    },
    {
      "code": "Shake",
      "custom_name": "",
      "dp_id": 104,
      "time": 1749918576098,
      "type": "bool",
      "value": false
    },
    {
      "code": "coutdown",
      "custom_name": "",
      "dp_id": 105,
      "time": 1750000664445,
      "type": "value",
      "value": 0
    },
    {
      "code": "Alarm",
      "custom_name": "",
      "dp_id": 106,
      "time": 1748277792705,
      "type": "enum",
      "value": "0"
    },
    {
      "code": "bMachineType",
      "custom_name": "",
      "dp_id": 107,
      "time": 1749915855229,
      "type": "bool",
      "value": false
    },
    {
      "code": "Temp_Set_F",
      "custom_name": "",
      "dp_id": 108,
      "time": 1750000433361,
      "type": "value",
      "value": 73
    },
    {
      "code": "bShakeEn",
      "custom_name": "",
      "dp_id": 109,
      "time": 1748277792767,
      "type": "bool",
      "value": true
    }
  ]
}

@github-project-automation github-project-automation bot moved this to 👀 In review in Tuya Local Jun 15, 2025
Fixed comment lengths.
Removed bottom-of-page comments.
Replaced floats with integers.
@Felwat
Copy link
Contributor Author
Felwat commented Jun 16, 2025

Heya. Validation failed because I set the 'max' value for the temperature attribute as 31.12, when it's expecting an integer. I did that to account for one specific situation where a user's Home Assistant is set to use Fahrenheit and their AC is set to use Celsius. In that case, if they choose 88°F through the Home Assistant UI then it tries to send 31.1111°C to the AC after conversion. So it's set to 31.12 in the yaml just to avoid that error.

Should I just set it to 31 anyway? Alternatively I could set the types to floats, but the auto validation doesn't allow 'float' as a type.

@make-all
Copy link
Owner

I checked the code that raises an error when an out of range value is received, and it rounds the value first so 31.12 should not be causing any problem from the integration. If there is an issue, it may be on the HA side.

@make-all make-all merged commit 740b203 into make-all:main Jun 22, 2025
4 checks passed
make-all added a commit that referenced this pull request Jun 22, 2025
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Tuya Local Jun 22, 2025
make-all added a commit that referenced this pull request Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants
0