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 AC DoorBell Pro #3002

Open
Akira97One opened this issue Feb 24, 2025 · 4 comments
Open

Request support for AC DoorBell Pro #3002

Akira97One opened this issue Feb 24, 2025 · 4 comments
Labels
full_info All info needed was provided new device Unsupported device

Comments

@Akira97One
Copy link

Akira97One commented Feb 24, 2025

Log message

Device matches lsc_ptz_camera with quality of 67%. DPS: {"updated_at": 1740359673.6842039, "101": true, "103": false, "104": true, "106": "1", "108": "0", "110": 5, "111": false, "117": -2002, "134": true, "150": true, "151": "1", "159": false, "160": 3, "168": true, "169": "", "170": true, "197": false, "231": true}
Enregistreur: custom_components.tuya_local.config_flow
Source: custom_components/tuya_local/config_flow.py:415
intégration: Tuya Local (documentation, problèmes)
S'est produit pour la première fois: 21:05:38 (8 occurrences)
Dernier enregistrement: 21:17:46
Device specification: [{"id": 101, "name": "basic_indicator", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 103, "name": "basic_flip", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 104, "name": "basic_osd", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 106, "name": "motion_sensitivity", "type": "Enum", "format": "{\"range\":[\"0\",\"1\",\"2\"]}", "enumMap": {}}, {"id": 108, "name": "basic_nightvision", "type": "Enum", "format": "{\"range\":[\"0\",\"1\",\"2\"]}", "enumMap": {}}, {"id": 109, "name": "sd_storge", "type": "String", "format": "{\"maxlen\":255}", "enumMap": {}}, {"id": 110, "name": "sd_status", "type": "Integer", "format": "{\"min\":1,\"max\":5,\"scale\":0,\"step\":1}", "enumMap": {}}, {"id": 111, "name": "sd_format", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 117, "name": "sd_format_state", "type": "Integer", "format": "{\"min\":-20000,\"max\":200000,\"scale\":0,\"step\":1}", "enumMap": {}}, {"id": 134, "name": "motion_switch", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 136, "name": "doorbell_active", "type": "String", "format": "{\"maxlen\":255}", "enumMap": {}}, {"id": 150, "name": "record_switch", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 151, "name": "record_mode", "type": "Enum", "format": "{\"range\":[\"1\",\"2\"]}", "enumMap": {}}, {"id": 154, "name": "doorbell_pic", "type": "Raw", "format": "{}", "enumMap": {}}, {"id": 159, "name": "siren_switch", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 160, "name": "basic_device_volume", "type": "Integer", "format": "{\"min\":1,\"max\":10,\"scale\":0,\"step\":1}", "enumMap": {}}, {"id": 168, "name": "motion_area_switch", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 169, "name": "motion_area", "type": "String", "format": "{\"maxlen\":255}", "enumMap": {}}, {"id": 170, "name": "humanoid_filter", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 197, "name": "ipc_mute_record", "type": "Boolean", "format": "{}", "enumMap": {}}]

Product ID

asw99ynhd4dgwi37

Product Name

AC DoorBell Pro2 DDV207-Pro

DPS information

{
  "result": {
    "model": "{\"modelId\":\"e1k6w1jk\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":101,\"accessMode\":\"rw\",\"code\":\"basic_indicator\",\"description\":\"设备设置页面-基本功能设置\\n设备指示灯是否打开,true打开,false关闭\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"状态指示灯\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":103,\"accessMode\":\"rw\",\"code\":\"basic_flip\",\"description\":\"设备设置页面-基本功能设置\\n使直播画面垂直翻转,true打开翻转,false关闭翻转\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"画面翻转\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":104,\"accessMode\":\"rw\",\"code\":\"basic_osd\",\"description\":\"设备设置页面-基本功能设置\\n时间水印功能开关,true打开水印,false关闭水印\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"时间水印\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":106,\"accessMode\":\"rw\",\"code\":\"motion_sensitivity\",\"description\":\"0-2,灵敏度依次增加;仅为灵敏度,0并不是关闭移动侦测报警;规定0为低灵敏度,1为中灵敏度,2为高灵敏度。\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"移动侦测灵敏度\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0\",\"1\",\"2\"]}},
{\"abilityId\":108,\"accessMode\":\"rw\",\"code\":\"basic_nightvision\",\"description\":\"0:自动\\n1:关\\n2:开\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"红外夜视\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0\",\"1\",\"2\"]}},
{\"abilityId\":109,\"accessMode\":\"ro\",\"code\":\"sd_storge\",\"description\":\"单位改为kb\\n---\\n3503775744|778977280|2718158848\\n其中第一字符串是总容量,第二个字符串是已使用的容量,第三个是剩余容量\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"获取存储卡容量\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},
{\"abilityId\":110,\"accessMode\":\"ro\",\"code\":\"sd_status\",\"description\":\"status:sd卡状态,1-正常,2-异常,3-空间不足,4-正在格式化,5-无SD卡;\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"存储卡状态\",\"typeSpec\":{\"type\":\"value\",\"max\":5,\"min\":1,\"scale\":0,\"step\":1}},
{\"abilityId\":111,\"accessMode\":\"rw\",\"code\":\"sd_format\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"存储卡格式化\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":115,\"accessMode\":\"ro\",\"code\":\"movement_detect_pic\",\"description\":\"该功能实现请参考SDK\\n---------------\\n{\\\"dp_id\\\",\\\"bucket;object;key\\\"}/{\\\"dp_id\\\",\\\"bucket;object;\\\"}\\n\\nbucket:根文件夹;objcet:文件路径;key:加密\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"检测到移动\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":117,\"accessMode\":\"ro\",\"code\":\"sd_format_state\",\"description\":\"返回错误码:\\n-2000:SD卡正在格式化\\n-2001:SD卡格式化异常\\n-2002:无SD卡\\n-2003:SD卡错误\\n\\n//正数为格式化进度\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"格式化状态\",\"typeSpec\":{\"type\":\"value\",\"max\":200000,\"min\":-20000,\"scale\":0,\"step\":1}},
{\"abilityId\":134,\"accessMode\":\"rw\",\"code\":\"motion_switch\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"移动报警开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":136,\"accessMode\":\"ro\",\"code\":\"doorbell_active\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"门铃-呼叫\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},
{\"abilityId\":150,\"accessMode\":\"rw\",\"code\":\"record_switch\",\"description\":\"设备设置页面-存储卡设置\\nSD卡录像开关,true为打开,false为关闭\\n功能关闭时,不录像到SD卡\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"SD卡录像开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":151,\"accessMode\":\"rw\",\"code\":\"record_mode\",\"description\":\"设备设置页面-存储卡设置\\nSD卡录像模式选择,1为事件录像(检测到移动再录像到SD卡),2为连续录像\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"录像模式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"1\",\"2\"]}},
{\"abilityId\":154,\"accessMode\":\"ro\",\"code\":\"doorbell_pic\",\"description\":\"用户按下门铃,抓拍图片并上传\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"门铃抓拍图片\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":159,\"accessMode\":\"rw\",\"code\":\"siren_switch\",\"description\":\"siren报警器发出报警的开关\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"警笛开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":160,\"accessMode\":\"rw\",\"code\":\"basic_device_volume\",\"description\":\"控制设备端播放对讲声音的音量\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"设备音量控制\",\"typeSpec\":{\"type\":\"value\",\"max\":10,\"min\":1,\"scale\":0,\"step\":1}},
{\"abilityId\":168,\"accessMode\":\"rw\",\"code\":\"motion_area_switch\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"报警区域开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":169,\"accessMode\":\"rw\",\"code\":\"motion_area\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"报警区域\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},
{\"abilityId\":170,\"accessMode\":\"rw\",\"code\":\"humanoid_filter\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"人形过滤\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":185,\"accessMode\":\"ro\",\"code\":\"alarm_message\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"告警消息上报\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":197,\"accessMode\":\"rw\",\"code\":\"ipc_mute_record\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1152\"},\"name\":\"SD卡无声录制\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":212,\"accessMode\":\"rw\",\"code\":\"initiative_message\",\"description\":\"参考SDK文档实现\",\"extensions\":{\"attribute\":\"2048\"},\"name\":\"主动消息推送\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":231,\"accessMode\":\"rw\",\"code\":\"ipc_anti_dismantle\",\"description\":\"\",\"name\":\"防拆报警\",\"typeSpec\":{\"type\":\"bool\"}}]}]}"
  },
  "success": true,
  "t": 1740360199862,
  "tid": "ee6acde5f24d11efbbcac2b21b10ca93"
}

Information about how the device functions

Hello,

I recently bought a doorbell with camera, :

https://fr.aliexpress.com/item/1005005478030737.html?spm=a2g0o.order_list.order_list_main.28.33965e5b2NnvMF&gatewayAdapt=glo2fra

But the device doesn't fit well into the local tuya application.
Would it be possible to add it?
Thank you in advance

@Akira97One Akira97One added the new device Unsupported device label Feb 24, 2025
@make-all
Copy link
Owner

The log message containing the dps list sent by the device is missing. It should be just before or after the cloud device specification you have included.

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

The log message containing the dps list sent by the device is missing. It should be just before or after the cloud device specification you have included.

This is the list I picked up from the menu of IOT Tuya ("Device Control\Query Properties"):

{
"result": {
"properties": [
{
"code": "basic_indicator",
"custom_name": "",
"dp_id": 101,
"time": 1740357746291,
"type": "bool",
"value": true
},
{
"code": "basic_flip",
"custom_name": "",
"dp_id": 103,
"time": 1740357746286,
"type": "bool",
"value": false
},
{
"code": "basic_osd",
"custom_name": "",
"dp_id": 104,
"time": 1740357746101,
"type": "bool",
"value": true
},
{
"code": "motion_sensitivity",
"custom_name": "",
"dp_id": 106,
"time": 1740357745938,
"type": "enum",
"value": "1"
},
{
"code": "basic_nightvision",
"custom_name": "",
"dp_id": 108,
"time": 1740357745742,
"type": "enum",
"value": "0"
},
{
"code": "sd_storge",
"custom_name": "",
"dp_id": 109,
"time": 1740183288899,
"type": "string",
"value": ""
},
{
"code": "sd_status",
"custom_name": "",
"dp_id": 110,
"time": 1740356843906,
"type": "value",
"value": 5
},
{
"code": "sd_format",
"custom_name": "",
"dp_id": 111,
"time": 1740357745548,
"type": "bool",
"value": false
},
{
"code": "movement_detect_pic",
"custom_name": "",
"dp_id": 115,
"time": 1740183288899,
"type": "raw"
},
{
"code": "sd_format_state",
"custom_name": "",
"dp_id": 117,
"time": 1740357745546,
"type": "value",
"value": -2002
},
{
"code": "motion_switch",
"custom_name": "",
"dp_id": 134,
"time": 1740357745538,
"type": "bool",
"value": true
},
{
"code": "doorbell_active",
"custom_name": "",
"dp_id": 136,
"time": 1740183288899,
"type": "string",
"value": ""
},
{
"code": "record_switch",
"custom_name": "",
"dp_id": 150,
"time": 1740357745351,
"type": "bool",
"value": true
},
{
"code": "record_mode",
"custom_name": "",
"dp_id": 151,
"time": 1740357745159,
"type": "enum",
"value": "1"
},
{
"code": "doorbell_pic",
"custom_name": "",
"dp_id": 154,
"time": 1740183288899,
"type": "raw"
},
{
"code": "siren_switch",
"custom_name": "",
"dp_id": 159,
"time": 1740359205751,
"type": "bool",
"value": false
},
{
"code": "basic_device_volume",
"custom_name": "",
"dp_id": 160,
"time": 1740357744958,
"type": "value",
"value": 3
},
{
"code": "motion_area_switch",
"custom_name": "",
"dp_id": 168,
"time": 1740357744772,
"type": "bool",
"value": true
},
{
"code": "motion_area",
"custom_name": "",
"dp_id": 169,
"time": 1740357746290,
"type": "string",
"value": ""
},
{
"code": "humanoid_filter",
"custom_name": "",
"dp_id": 170,
"time": 1740357744771,
"type": "bool",
"value": true
},
{
"code": "alarm_message",
"custom_name": "",
"dp_id": 185,
"time": 1740183288899,
"type": "raw"
},
{
"code": "ipc_mute_record",
"custom_name": "",
"dp_id": 197,
"time": 1740357744574,
"type": "bool",
"value": false
},
{
"code": "initiative_message",
"custom_name": "",
"dp_id": 212,
"time": 1740358736825,
"type": "raw",
"value": "eyJ2IjoiNS4wIiwiY29zdF90aW1lIjoiMTA1NiIsImNtZCI6ImlwY19kb29yYmVsbCIsInR5cGUiOiJpbWFnZSIsIndpdGgiOiJyZXNvdXJjZSIsImFsYXJtIjp0cnVlLCJ0aW1lIjoxNzQwMzU4NzM1LCJmaWxlcyI6W1sidHktZXUtc3RvcmFnZTMwIiwiL2NkNTA3OS0yMjMyNTYwMDAtaHd4ZGZlOTI4MTJiNWY3YzE5ZWMvdW5pZnkvMTc0MDM1ODczNS5qcGVnIiwiNGUwYWQ1MjJmNTNmNDM4MyIsIjE3NDI5NTA3MzYiXV19"
},
{
"code": "ipc_anti_dismantle",
"custom_name": "",
"dp_id": 231,
"time": 1740357744381,
"type": "bool",
"value": true
}
]
},
"success": true,
"t": 1740362426254,
"tid": "1d70b2a0f25311efbbcac2b21b10ca93"
}

@make-all
Copy link
Owner

Sorry, you are misunderstanding. I am not asking for more cloud info. I am asking for the local log (in HA log) that is output when you connected the devices that looks like "Device matches ... with quality of ...%. DPS: {"updated_at": ... }"

@Akira97One
Copy link
Author

Sorry, you are misunderstanding. I am not asking for more cloud info. I am asking for the local log (in HA log) that is output when you connected the devices that looks like "Device matches ... with quality of ...%. DPS: {"updated_at": ... }"

Ah ok, sorry. I found this logs in HA. I added it as a camera:

Enregistreur: custom_components.tuya_local.config_flow
Source: custom_components/tuya_local/config_flow.py:421
intégration: Tuya Local (documentation, problèmes)
S'est produit pour la première fois: 20:52:53 (11 occurrences)
Dernier enregistrement: 22:14:03

Device matches lsc_ptz_camera with quality of 67%. DPS: {"updated_at": 1740359673.6842039, "101": true, "103": false, "104": true, "106": "1", "108": "0", "110": 5, "111": false, "117": -2002, "134": true, "150": true, "151": "1", "159": false, "160": 3, "168": true, "169": "", "170": true, "197": false, "231": true}
Device matches lsc_ptz_camera with quality of 67%. DPS: {"updated_at": 1740359734.668761, "101": true, "103": false, "104": true, "106": "1", "108": "0", "110": 5, "111": false, "117": -2002, "134": true, "150": true, "151": "1", "159": false, "160": 3, "168": true, "169": "", "170": true, "197": false, "231": true}
Device matches lsc_ptz_camera with quality of 67%. DPS: {"updated_at": 1740359806.2555606, "101": true, "103": false, "104": true, "106": "1", "108": "0", "110": 5, "111": false, "117": -2002, "134": true, "150": true, "151": "1", "159": false, "160": 3, "168": true, "169": "", "170": true, "197": false, "231": true}
Device matches lsc_ptz_camera with quality of 67%. DPS: {"updated_at": 1740359858.411811, "101": true, "103": false, "104": true, "106": "1", "108": "0", "110": 5, "111": false, "117": -2002, "134": true, "150": true, "151": "1", "159": false, "160": 3, "168": true, "169": "", "170": true, "197": false, "231": true}
Device matches lsc_ptz_camera with quality of 67%. DPS: {"updated_at": 1740363236.184909, "101": true, "103": false, "104": true, "106": "1", "108": "0", "110": 5, "111": false, "117": -2002, "134": true, "150": true, "151": "1", "159": false, "160": 3, "168": true, "169": "", "170": true, "197": false, "231": true}

But when I add it as a video doorbell (myq_td8_videodoorbell or kw02_doorbell)

Image
Image

, the camera image is not displayed and some of the functions present like the ringtone button are not displayed.

@make-all make-all added full_info All info needed was provided and removed awaiting feedback Needs more information labels Feb 24, 2025
@make-all make-all moved this from 🏗 Stalled to 🔖 Ready in Tuya Local Feb 24, 2025
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