Skip to content
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

Adding Airco (kt) #175

Closed
wants to merge 1 commit into from
Closed

Adding Airco (kt) #175

wants to merge 1 commit into from

Conversation

bogguard
Copy link
Contributor

Device specification

  {
  "device": {
    "active_time": 1686943021,
    "biz_type": 18,
    "category": "kt",
    "create_time": 1686943021,
    "icon": "smart/icon/ay15105372588696Qo9c/9ad2228ea92cbee431855939d26c62ab.png",
    "id": "bfc7aa7da4ade78ebegayw",
    "ip": "<redacted>",
    "lat": "<redacted>",
    "local_key": "<redacted>",
    "lon": "<redacted>",
    "model": "可OEM",
    "name": "Air Condition-A011_F",
    "online": false,
    "owner_id": "<redacted>",
    "product_id": "5pcdieqpi0dfolle",
    "product_name": "Air Condition-A011_F",
    "status": [{
      "code": "switch",
      "value": false
    }, {
      "code": "temp_set",
      "value": 23
    }, {
      "code": "temp_current",
      "value": 24
    }, {
      "code": "lock",
      "value": false
    }, {
      "code": "swing",
      "value": false
    }, {
      "code": "temp_unit_convert",
      "value": "c"
    }, {
      "code": "fault",
      "value": 0
    }, {
      "code": "temp_set_f",
      "value": 61
    }, {
      "code": "temp_current_f",
      "value": 0
    }],
    "sub": false,
    "time_zone": "+02:00",
    "uid": "<redacted>",
    "update_time": 1723574514,
    "uuid": "<redacted>"
  },
  "specifications": {
    "category": "kt",
    "functions": [{
      "code": "switch",
      "desc": "{}",
      "name": "开关",
      "type": "Boolean",
      "values": "{}"
    }, {
      "code": "temp_set",
      "desc": "{\"unit\":\"\",\"min\":16,\"max\":32,\"scale\":0,\"step\":1}",
      "name": "设置温度",
      "type": "Integer",
      "values": "{\"unit\":\"\",\"min\":16,\"max\":32,\"scale\":0,\"step\":1}"
    }, {
      "code": "lock",
      "desc": "{}",
      "name": "童锁",
      "type": "Boolean",
      "values": "{}"
    }, {
      "code": "swing",
      "desc": "{}",
      "name": "摆风",
      "type": "Boolean",
      "values": "{}"
    }, {
      "code": "temp_unit_convert",
      "desc": "{\"range\":[\"c\",\"f\"]}",
      "name": "温标,华氏度,摄氏度切换新",
      "type": "Enum",
      "values": "{\"range\":[\"c\",\"f\"]}"
    }, {
      "code": "temp_set_f",
      "desc": "{\"unit\":\"\",\"min\":61,\"max\":90,\"scale\":0,\"step\":1}",
      "name": "设置华氏温度",
      "type": "Integer",
      "values": "{\"unit\":\"\",\"min\":61,\"max\":90,\"scale\":0,\"step\":1}"
    }],
    "status": [{
      "code": "switch",
      "name": "开关",
      "type": "Boolean",
      "values": "{}"
    }, {
      "code": "temp_set",
      "name": "设置温度",
      "type": "Integer",
      "values": "{\"unit\":\"\",\"min\":16,\"max\":32,\"scale\":0,\"step\":1}"
    }, {
      "code": "temp_current",
      "name": "当前温度",
      "type": "Integer",
      "values": "{\"unit\":\"\",\"min\":0,\"max\":99,\"scale\":0,\"step\":1}"
    }, {
      "code": "lock",
      "name": "童锁",
      "type": "Boolean",
      "values": "{}"
    }, {
      "code": "swing",
      "name": "摆风",
      "type": "Boolean",
      "values": "{}"
    }, {
      "code": "temp_unit_convert",
      "name": "温标,华氏度,摄氏度切换(新)",
      "type": "Enum",
      "values": "{\"range\":[\"c\",\"f\"]}"
    }, {
      "code": "fault",
      "name": "故障告警",
      "type": "Bitmap",
      "values": "{\"label\":[\"sensor_fault\",\"temp_fault\"]}"
    }, {
      "code": "temp_set_f",
      "name": "设置华氏温度",
      "type": "Integer",
      "values": "{\"unit\":\"\",\"min\":61,\"max\":90,\"scale\":0,\"step\":1}"
    }, {
      "code": "temp_current_f",
      "name": "当前华氏温度",
      "type": "Integer",
      "values": "{\"unit\":\"\",\"min\":0,\"max\":99,\"scale\":0,\"step\":1}"
    }]
  }
}

@bogguard
Copy link
Contributor Author

fyi, didn't add swing as it isn't part of the official Tuya documentation and didn't do anything on the device.

@bogguard
Copy link
Contributor Author

This solves #149

@bobvandevijver
Copy link
Collaborator

I will need to reject this one as we want to leverage the new airconditioning device class. There are also a couple of differences with the heaters, but know we already started working on this (see #181). However, it might take a couple of week because it is completed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants