make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.41k stars 542 forks source link

Request support for HunterTBK/Tuya Doorbell HF-6602T-WIFI #2422

Closed Esp32-zapper closed 2 weeks ago

Esp32-zapper commented 1 month ago

Log message

Device matches cleverio_cd200_doorbell with quality of 67%. DPS: {"updated_at": 1729513116.6782715, "101": false, "103": false, "108": "0", "109": "0|0|0", "110": 5, "117": 0, "126": 1, "145": 100, "146": "0", "147": 10, "149": true, "150": false, "151": "1", "152": "2", "159": false, "160": 100, "170": true, "189": "0"}

DPS information

{
  "result": {
    "model": "{\"modelId\":\"000004yto3\",\"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\":108,\"accessMode\":\"rw\",\"code\":\"basic_nightvision\",\"description\":\"0:自动\\n1:关\\n2:开\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"红外夜视\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0\",\"1\",\"2\"]}},
{\"abilityId\":109,\"accessMode\":\"ro\",\"code\":\"sd_storge\",\"description\":\"示例:\\n---2017.07.08更新---\\n单位改为kb\\n---\\n3503775744|778977280|2718158848\\n其中第一字符串是总容量,第二个字符串是已使用的容量,第三个是剩余容量\",\"name\":\"获取存储卡容量\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},
{\"abilityId\":110,\"accessMode\":\"ro\",\"code\":\"sd_status\",\"description\":\"status:sd卡状态,1-正常,2-异常,3-空间不足,4-正在格式化,5-无SD卡;\",\"name\":\"存储卡状态\",\"typeSpec\":{\"type\":\"value\",\"max\":5,\"min\":1,\"scale\":1,\"step\":1,\"unit\":\"\"}},
{\"abilityId\":111,\"accessMode\":\"rw\",\"code\":\"sd_format\",\"description\":\"无参数\",\"name\":\"存储卡格式化\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":112,\"accessMode\":\"rw\",\"code\":\"sd_umount\",\"description\":\"true为存储卡已退出,false为存储卡未退出\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"卸载存储卡\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":113,\"accessMode\":\"rw\",\"code\":\"motion_record\",\"description\":\"true移动侦测录像,false全时录像\\n摄像头本地功能:功能打开的时候,只有检测到移动才开始录像。\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"SD卡录像模式\",\"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:加密\",\"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//正数为格式化进度\",\"name\":\"格式化状态\",\"typeSpec\":{\"type\":\"value\",\"max\":20000,\"min\":-20000,\"scale\":1,\"step\":1,\"unit\":\"\"}},
{\"abilityId\":126,\"accessMode\":\"ro\",\"code\":\"battery_report_cap\",\"description\":\"使用位运算标识设备电池电量上报能力\\nBit0 电量精准上报能力 \\n1 可精准上报 0 不可精准上报\\n-----------预留-------------\\nBit1 充电状态上报能力\\nBit2 预留位\\nBit3 预留位\\n------------------------------------\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1152\"},\"name\":\"电量精准上报能力\",\"typeSpec\":{\"type\":\"value\",\"max\":15,\"min\":0,\"scale\":0,\"step\":1}},
{\"abilityId\":136,\"accessMode\":\"ro\",\"code\":\"doorbell_active\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"门铃-呼叫\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},
{\"abilityId\":145,\"accessMode\":\"ro\",\"code\":\"wireless_electricity\",\"description\":\"设备主动上报当前电量,电量发生变化时上报。类型为数值型,上报0-100的整数。app会处理成百分比。\\n\",\"name\":\"电量\",\"typeSpec\":{\"type\":\"value\",\"max\":100,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"\"}},
{\"abilityId\":146,\"accessMode\":\"ro\",\"code\":\"wireless_powermode\",\"description\":\"设备主动上报当前供电状态,供电状态发生变化时上报。0为电池供电状态,1为插电供电状态(或电池充电状态)\",\"name\":\"供电方式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0\",\"1\"]}},
{\"abilityId\":147,\"accessMode\":\"rw\",\"code\":\"wireless_lowpower\",\"description\":\"若电量百分比低于该阈值,则触发报警;App端设置,设备本身无须关心该dp点。\",\"name\":\"低电量报警\",\"typeSpec\":{\"type\":\"value\",\"max\":30,\"min\":10,\"scale\":1,\"step\":1,\"unit\":\"\"}},
{\"abilityId\":149,\"accessMode\":\"rw\",\"code\":\"wireless_awake\",\"description\":\"设备主动上报当前低功耗是否处于唤醒状态。类型为布尔型,true为唤醒状态,false为休眠状态。(设备休眠前上报false,设备唤醒后上报一次true)\",\"name\":\"设备状态\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":150,\"accessMode\":\"rw\",\"code\":\"record_switch\",\"description\":\"设备设置页面-存储卡设置\\nSD卡录像开关,true为打开,false为关闭\\n功能关闭时,不录像到SD卡\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"SD卡录像开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":151,\"accessMode\":\"rw\",\"code\":\"record_mode\",\"description\":\"设备设置页面-存储卡设置\\nSD卡录像模式选择,1为事件录像(检测到移动再录像到SD卡),2为连续录像\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"录像模式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"1\",\"2\"]}},
{\"abilityId\":152,\"accessMode\":\"rw\",\"code\":\"pir_switch\",\"description\":\"0关闭,1灵敏度低,2灵敏度中,3灵敏度高\",\"name\":\"PIR开关及灵敏度\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0\",\"1\",\"2\",\"3\"]}},
{\"abilityId\":154,\"accessMode\":\"ro\",\"code\":\"doorbell_pic\",\"description\":\"用户按下门铃,抓拍图片并上传\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"门铃抓拍图片\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":155,\"accessMode\":\"rw\",\"code\":\"doorbell_ring_exist\",\"description\":\"0为没有铃铛 1为铃铛配对成功\\n开始配对,App下发1,设备收到后回复配对结果是1还是0\\n解绑时,App下发0,设备收到后回复解绑结果是1还是0\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"铃铛配对\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0\",\"1\"]}},
{\"abilityId\":159,\"accessMode\":\"rw\",\"code\":\"siren_switch\",\"description\":\"siren报警器发出报警的开关\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"警笛开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":160,\"accessMode\":\"rw\",\"code\":\"basic_device_volume\",\"description\":\"控制设备端播放对讲声音的音量\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1152\"},\"name\":\"设备音量控制\",\"typeSpec\":{\"type\":\"value\",\"max\":100,\"min\":1,\"scale\":0,\"step\":1,\"unit\":\"%\"}},
{\"abilityId\":170,\"accessMode\":\"rw\",\"code\":\"humanoid_filter\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\",\"attribute\":\"1024\"},\"name\":\"人型过滤\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":185,\"accessMode\":\"ro\",\"code\":\"alarm_message\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"告警消息上报\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":189,\"accessMode\":\"rw\",\"code\":\"ipc_work_mode\",\"description\":\"该DP点用于低功耗IPC工作模式选择\\n0 低功耗模式\\n1 连续工作模式\",\"extensions\":{\"iconName\":\"icon-setting\"},\"name\":\"工作模式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0\",\"1\"]}},
{\"abilityId\":212,\"accessMode\":\"ro\",\"code\":\"initiative_message\",\"description\":\"\",\"name\":\"主动消息推送\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":231,\"accessMode\":\"ro\",\"code\":\"cus_alarm\",\"description\":\"0.关闭 , 1-设备已被拆除\",\"name\":\"自定义告警 \",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0\",\"1\"]}}]}]}"
  },
  "success": true,
  "t": 1729237706406,
  "tid": "5bb0cdee8d2511ef844fc2ceb152d8fe"
}

Product ID

tftanqr9elztfkdp

Product Name

HunterTBK/Tuya Doorbell HF-6602T-WIFI

Information about how the device functions

The 33% that differed from the Claverio CD200 was a bit important. Will not even connect. all entities are off-line and I get this in the logg

Logger: custom_components.tuya_local.device Source: custom_components/tuya_local/device.py:575 Failed to fetch device status for Källarentre-Video-doorbell-2

Will add pdf of included manual below

Esp32-zapper commented 1 month ago

Manual 132842812884041.pdf 133126832075831.pdf 132890482143220.pdf 133239603104247.pdf 133212320555324.pdf 133179408307057.pdf