make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.33k stars 519 forks source link

Request support for Shinco Yoau Electric YWD1 Reversible air conditioner monoblock wall-mount (aka Axelair TEMPERO CMM3000 / Domair CALLISTO) #1032

Closed pdecat closed 1 year ago

pdecat commented 1 year ago

Log Message

2023-08-26 14:23:44.777 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches carson_cb with quality of 86%. DPS: {"updated_at": 1693052623.8339686, "1": true, "2": 22, "3": 22, "4": "FAN", "5": "2", "19": "C", "101": false, "102": false, "103": 0, "104": true, "105": 0, "106": 0, "110": "0", "111": 0}
2023-08-26 14:23:44.780 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

Information about DPS mappings

{
  "result": {
    "model": "{\"modelId\":\"000000xt61\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"Power\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power\",\"attribute\":\"1\"},\"name\":\"开关\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":2,\"accessMode\":\"rw\",\"code\":\"temp_set\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_temp\"},\"name\":\"设置温度\",\"typeSpec\":{\"max\":86,\"min\":16,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":16,\"unit\":\"℃\"}},
{\"abilityId\":3,\"accessMode\":\"ro\",\"code\":\"temp_current\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_sun\"},\"name\":\"当前温度\",\"typeSpec\":{\"max\":110,\"min\":-9,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":-9,\"unit\":\"℃\"}},
{\"abilityId\":4,\"accessMode\":\"rw\",\"code\":\"mode\",\"description\":\"COOL:制冷模式;FAN:送风模式;DRY:除湿模式;HEAT:制热模式;可根据产品实际功能修改功能属性。\",\"extensions\":{\"iconName\":\"icon-dp_mode\"},\"name\":\"工作模式\",\"typeSpec\":{\"range\":[\"COOL\",\"FAN\",\"DRY\",\"HEAT\"],\"type\":\"enum\",\"typeDefaultValue\":\"COOL\"}},
{\"abilityId\":5,\"accessMode\":\"rw\",\"code\":\"windspeed\",\"description\":\"1:低速;2:中速;3:高速;\",\"extensions\":{\"iconName\":\"icon-dp_wind\"},\"name\":\"风速\",\"typeSpec\":{\"range\":[\"1\",\"2\",\"3\"],\"type\":\"enum\",\"typeDefaultValue\":\"1\"}},
{\"abilityId\":19,\"accessMode\":\"rw\",\"code\":\"C_F\",\"description\":\"摄氏度,华氏度切换\",\"extensions\":{\"iconName\":\"icon-dp_half\"},\"name\":\"温标\",\"typeSpec\":{\"range\":[\"C\",\"F\"],\"type\":\"enum\",\"typeDefaultValue\":\"C\"}},
{\"abilityId\":101,\"accessMode\":\"rw\",\"code\":\"SLEEP\",\"description\":\"只在制冷和制热模式下有效\",\"name\":\"睡眠模式\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":102,\"accessMode\":\"ro\",\"code\":\"Defrost\",\"description\":\"0:化霜关闭\\n1:化霜开启\\n\",\"name\":\" 制热化霜\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":103,\"accessMode\":\"rw\",\"code\":\"Timer\",\"description\":\"\",\"name\":\"倒计时\",\"typeSpec\":{\"max\":24,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"小时\"}},
{\"abilityId\":104,\"accessMode\":\"rw\",\"code\":\"Shake\",\"description\":\"0:不摆风\\n1:摆风\\n\",\"name\":\"摆风\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":105,\"accessMode\":\"ro\",\"code\":\"coutdown\",\"description\":\"\",\"name\":\"剩余倒计时\",\"typeSpec\":{\"max\":1440,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"分钟\"}},
{\"abilityId\":106,\"accessMode\":\"ro\",\"code\":\"Alarm\",\"description\":\"\",\"extensions\":{\"scope\":\"fault\"},\"name\":\"故障类型\",\"typeSpec\":{\"label\":[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\",\"20\",\"21\",\"22\",\"23\",\"24\",\"25\",\"26\",\"27\",\"28\",\"29\"],\"maxlen\":30,\"type\":\"bitmap\",\"typeDefaultValue\":0}},
{\"abilityId\":110,\"accessMode\":\"ro\",\"code\":\"model\",\"description\":\"0:冷暖\\n1:单冷\",\"name\":\"机型\",\"typeSpec\":{\"range\":[\"0\",\"1\"],\"type\":\"enum\",\"typeDefaultValue\":\"0\"}},
{\"abilityId\":111,\"accessMode\":\"ro\",\"code\":\"alarm2\",\"description\":\"\",\"extensions\":{\"scope\":\"fault\"},\"name\":\"故障类型2\",\"typeSpec\":{\"label\":[\"30\",\"31\",\"32\"],\"maxlen\":3,\"type\":\"bitmap\",\"typeDefaultValue\":0}}]}]}"
  },
  "success": true,
  "t": 1693052669833,
  "tid": "8127917a440b11eea9649a766792eea9"
}

Product ID

2tgd3qnobb1mcgd9

Information about how the device functions

Manufacturer link: https://www.axelair-ventilation.com/fr/tempero-climatiseur-reversible-monobloc-mural.html

pdecat commented 1 year ago

I've just found the link to the original manufacturer of the product under the reference YWD1:

https://jsyoau.en.made-in-china.com/product/EdBTiqojnhRU/China-Phycial-Technology-Air-Conditioner-Ywd1-10000-12000-BTU-Through-The-Wall-Air-Conditioner-Cooling-and-Heating.html

https://jsyoau.en.made-in-china.com/product/oEYUBqAyJfcr/China-Inverter-Air-Conditioner-Ywd1-8000-BTU-Low-Noise-Metal-Enclosure-Cooling-Heating.html

pdecat commented 1 year ago

Also sold in Belgium and France under the Domair brand, model name CALLISTO:

make-all commented 1 year ago

I suspect it is the same as Carson, as the dps match down to the values used, only the carson config is missing 101 (sleep) and 111 (alarm2).

The config for Carson was submitted as a pull request without any info, but I think if those are added as optional dps, and the others split out into entities where appropriate it should remain compatible even if the Carson is missing those functions.

pdecat commented 1 year ago

Downloaded the carson_cb.yaml file from https://github.com/make-all/tuya-local/commit/3ede99d3a539de4777c3f2a9f1c0a41c1597ab32, does not seem to match:

2023-08-30 14:54:45.798 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches garage_door_opener with quality of 15%. DPS: {"updated_at": 1693400084.8960333, "1": false, "3": 23, "4": "FAN", "5": "1", "19": "C", "101": false, "102": false, "103": 0, "104": false, "105": 0, "106": 0, "110": "0", "111": 0}

image

pdecat commented 1 year ago

Activating debug logs, I can see this:

2023-08-30 15:45:10.010 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config carson_cb.yaml
2023-08-30 15:45:10.010 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Not match for Air conditioner, missing required DPs: [{'2': 'int'}]
pdecat commented 1 year ago

Maybe caused by the F constraint as I'm in Celsius: https://github.com/make-all/tuya-local/commit/3ede99d3a539de4777c3f2a9f1c0a41c1597ab32#diff-ce071e517002bdffc371510c8efbd467b719b386850bf551c65e69a995a5621aR32-R44

make-all commented 1 year ago

I think it is caused by the device being in fan-only mode, so the temperature setting dp is disabled by the device. Although the device was also in fan-only mode in the first log you posted, but the temperature setting dp was available then.

pdecat commented 1 year ago

Awesome!

image image image

And now my migration is complete, thank you so much!