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

Request support for kcl_m1803a_m #2756

Open
tal6203 opened this issue Jan 10, 2025 · 8 comments
Open

Request support for kcl_m1803a_m #2756

tal6203 opened this issue Jan 10, 2025 · 8 comments
Labels
full_info All info needed was provided new device Unsupported device

Comments

@tal6203
Copy link

tal6203 commented Jan 10, 2025

Log message

Device matches smardeer_lock33 with quality of 50%. DPS: {"updated_at": 1736522041.1702027, "2": "1", "4": 0, "6": "close", "7": 255, "8": "ffffff00a00064", "9": 0}
localtuya log
יומן: homeassistant.config_entries
מקור: config_entries.py:855
התרחש לראשונה: 03:55:34 (2 התרחשויות)
נרשם לאחרונה: 03:58:03

Error unloading entry localtuya for fan
Error unloading entry localtuya for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 855, in async_unload
    result = await component.async_unload_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 188, in async_unload_entry
    return await hass.data[DATA_COMPONENT].async_unload_entry(entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in async_unload_entry
    raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!

יומן: homeassistant.components.fan
מקור: helpers/entity_platform.py:608
שילוב: מאוורר (תיעוד, בעיות)
התרחש לראשונה: 03:55:35 (4 התרחשויות)
נרשם לאחרונה: 03:59:08

Error adding entity None for domain fan with platform localtuya
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 825, in _async_add_entity
    capabilities=entity.capability_attributes,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 379, in capability_attributes
    FanEntityFeature.SET_SPEED in supported_features
TypeError: argument of type 'int' is not iterable

Product ID

GQxEe5orh45cMgA6

Product Name

加湿器 - humidifier

DPS information

{
  "result": {
    "model": "{\"modelId\":\"00000013kt\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":2,\"accessMode\":\"rw\",\"code\":\"mode\",\"description\":\"关闭/连续/间断/倒计时\",\"extensions\":{\"iconName\":\"icon-dp_box\",\"attribute\":\"16\"},\"name\":\"喷雾\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"1\",\"2\",\"3\",\"4\"]}},
{\"abilityId\":4,\"accessMode\":\"ro\",\"code\":\"countdown_left\",\"description\":\"显示小时+分钟\",\"extensions\":{\"iconName\":\"icon-dp_time2\"},\"name\":\"倒计时剩余时间\",\"typeSpec\":{\"type\":\"value\",\"max\":360,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"min\"}},
{\"abilityId\":5,\"accessMode\":\"rw\",\"code\":\"switch_led\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"attribute\":\"16\"},\"name\":\"灯光\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":6,\"accessMode\":\"rw\",\"code\":\"work_mode\",\"description\":\"顺序从左到右是关闭/七彩渐变/白光/定色\\n其中定色和白光界面可以调节亮度。\",\"extensions\":{\"iconName\":\"icon-dp_direction\"},\"name\":\"灯光模式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"close\",\"colorful\",\"white\",\"color\"]}},
{\"abilityId\":7,\"accessMode\":\"rw\",\"code\":\"bright_value\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_light2\"},\"name\":\"亮度值\",\"typeSpec\":{\"type\":\"value\",\"max\":255,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"\"}},
{\"abilityId\":8,\"accessMode\":\"rw\",\"code\":\"colour_data\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-yanse\"},\"name\":\"彩光值\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},
{\"abilityId\":9,\"accessMode\":\"ro\",\"code\":\"fault\",\"description\":\"缺水故障\",\"extensions\":{\"iconName\":\"icon-yanse\",\"scope\":\"fault\"},\"name\":\"故障告警\",\"typeSpec\":{\"type\":\"bitmap\",\"label\":[\"lack_water\"],\"maxlen\":1}},
{\"abilityId\":101,\"accessMode\":\"rw\",\"code\":\"wuhua\",\"description\":\"大喷雾/小喷雾\",\"name\":\"雾量\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"1\",\"2\"]}},
{\"abilityId\":102,\"accessMode\":\"rw\",\"code\":\"daojishi\",\"description\":\"0-6小时\",\"name\":\"倒计时\",\"typeSpec\":{\"type\":\"value\",\"max\":360,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"min\"}}]}]}"
  },
  "success": true,
  "t": 1736476859834,
  "tid": "53659e13cefc11ef9e5f9e9247cde4aa"
}

Information about how the device functions

This diffuser is about:
https://he.aliexpress.com/item/1005006913992443.html?spm=a2g0o.productlist.main.1.469b60511iV8IQ&algo_pvid=36e05425-e13c-42f6-a56d-66a910e6321b&algo_exp_id=36e05425-e13c-42f6-a56d-66a910e6321b-0&pdp_npi= 4%40dis%21ILS%21122.10%2148.42%21%21%21239.32%2194.90%21%4021015b7d17364764476716424ef6b2%2112000038709458256%21sea%21IL%210%21ABX&curPageLogUid=Nz0IlE7miImW&utparam-url=scene%3Asearch%7Cquery_from%3A

In addition, its functionality is control over the spray, the lights and the color including brightness, and a timer for spraying.

@tal6203 tal6203 added the new device Unsupported device label Jan 10, 2025
@make-all
Copy link
Owner

The logs are from a different integration, and do not show the dps info as sent by the device. You need to post the logs from this integration:

  1. To show that the device is not already supported (there are almost 1000 configs there, so nobody wants to go manually looking through them all for a match when it is so easy to collect logs).
  2. To show what the device actually sends, in case some dps listed in the info from dev portal need to be optional, or have slightly different format than documented.

@make-all make-all added the awaiting feedback Needs more information label Jan 10, 2025
@make-all make-all moved this to 🏗 Stalled in Tuya Local Jan 10, 2025
@tal6203
Copy link
Author

tal6203 commented Jan 10, 2025

There was a bit of confusion here. I'm trying to connect the iteration and this is the list I get to connect the diffuser none of them match the device.

image

@tal6203
Copy link
Author

tal6203 commented Jan 10, 2025

And this is what I get from the logs:

שגיאה זו מקורה בשילוב מותאם אישית.

יומן: custom_components.tuya_local.config_flow
מקור: custom_components/tuya_local/config_flow.py:304
שילוב: Tuya Local (תיעוד, בעיות)
התרחש לראשונה: 17:12:11 (1 התרחשויות)
נרשם לאחרונה: 17:12:11

Could not find device: 07066841840d8e8f0ff5

שגיאה זו מקורה בשילוב מותאם אישית.

יומן: custom_components.tuya_local.config_flow
מקור: custom_components/tuya_local/config_flow.py:397
שילוב: Tuya Local (תיעוד, בעיות)
התרחש לראשונה: 17:14:02 (1 התרחשויות)
נרשם לאחרונה: 17:14:02

Adding DIFFUSER device with product id GQxEe5orh45cMgA6

שגיאה זו מקורה בשילוב מותאם אישית.

יומן: custom_components.tuya_local.config_flow
מקור: custom_components/tuya_local/config_flow.py:421
שילוב: Tuya Local (תיעוד, בעיות)
התרחש לראשונה: 17:14:02 (1 התרחשויות)
נרשם לאחרונה: 17:14:02

Device matches smardeer_lock33 with quality of 50%. DPS: {"updated_at": 1736522041.1702027, "2": "1", "4": 0, "6": "close", "7": 255, "8": "ffffff00a00064", "9": 0}

שגיאה זו מקורה בשילוב מותאם אישית.

יומן: custom_components.tuya_local.config_flow
מקור: custom_components/tuya_local/config_flow.py:427
שילוב: Tuya Local (תיעוד, בעיות)
התרחש לראשונה: 17:14:02 (1 התרחשויות)
נרשם לאחרונה: 17:14:02

Include the previous log messages with any new device request to https://github.com/make-all/tuya-local/issues/

@make-all
Copy link
Owner

Thank you, this was the one needed

Device matches smardeer_lock33 with quality of 50%. DPS: {"updated_at": 1736522041.1702027, "2": "1", "4": 0, "6": "close", "7": 255, "8": "ffffff00a00064", "9": 0}

@make-all make-all added full_info All info needed was provided and removed awaiting feedback Needs more information labels Jan 10, 2025
@make-all make-all moved this from 🏗 Stalled to 🔖 Ready in Tuya Local Jan 10, 2025
@tal6203
Copy link
Author

tal6203 commented Jan 10, 2025

So this is what I have left now is to wait for the device support to be ready?

@make-all
Copy link
Owner

Yes, probably about a month for this to get to the front of the queue.

@tal6203
Copy link
Author

tal6203 commented Jan 10, 2025

{
"result": {
"category": "jsq",
"functions": [
{
"code": "switch_led",
"desc": "{}",
"name": "灯光开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "bright_value",
"desc": "{"unit":"","min":0,"max":255,"scale":0,"step":1}",
"name": "亮度值",
"type": "Integer",
"values": "{"unit":"","min":0,"max":255,"scale":0,"step":1}"
},
{
"code": "switch",
"desc": "{}",
"name": "总开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "colour_data_hsv",
"desc": "{}",
"name": "彩光值hsv设置",
"type": "Json",
"values": "{}"
}
],
"status": [
{
"code": "switch_led",
"name": "灯光开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "bright_value",
"name": "亮度值",
"type": "Integer",
"values": "{"unit":"","min":0,"max":255,"scale":0,"step":1}"
},
{
"code": "countdown_left",
"name": "喷雾倒计时剩余时间",
"type": "Integer",
"values": "{"unit":"min","min":0,"max":360,"scale":0,"step":1}"
},
{
"code": "switch",
"name": "总开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "colour_data_hsv",
"name": "彩光值hsv设置",
"type": "Json",
"values": "{}"
}
]
},
"success": true,
"t": 1736550081623,
"tid": "cefb9736cfa611efbbc9c2b21b10ca93"
}

Can this information also help you for my diffuser? I just want to help you as much as possible.

@make-all
Copy link
Owner

This should be a subset of what is in the dps info already, and if they are different, the Query Things Data Model is more likely to be the correct one in experience. So for now no more info is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full_info All info needed was provided new device Unsupported device
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants