『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
123
返回列表 发新帖
楼主: ghostist

[经验分享] 1块钱接入小米智能门锁的较完美方案

[复制链接]

40

主题

2176

帖子

8286

积分

元老级技术达人

积分
8286
金钱
6095
HASS币
110
 楼主| 发表于 2024-10-8 17:37:32 | 显示全部楼层
flyingfish119 发表于 2024-10-8 16:49
大佬,求教,我是安装在树莓派4b上的haos,按照教程,修改了ble_monitor。在XIAOMI_TYPE_DICT内添加了  0x3 ...

Passive Ble monitor看日志吧
看能不能找到你门锁的日志 找到就好说
回复

使用道具 举报

0

主题

21

帖子

110

积分

注册会员

Rank: 2

积分
110
金钱
89
HASS币
0
发表于 2024-10-8 20:42:10 | 显示全部楼层
ghostist 发表于 2024-10-8 17:37
Passive Ble monitor看日志吧
看能不能找到你门锁的日志 找到就好说

我开启了 ble monitor的启动调试日志。在系统日志栏目里只发现了info信息,附图是我手动添加时的配置。
2024-10-08 20:20:07.756 INFO (Thread-3) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID 44打码:打码b559ba: service data: [b'\x0e\x16\x95\xfe\x10U\x8b9[\xbaY\xb5e\xdfD']manufacturer specific data: []local name: DL02V1UUID16: None,UUID128: None
2024-10-08 20:20:07.757 INFO (Thread-3) [custom_components.ble_monitor.ble_parser] Unknown advertisement received for mac: 44:打码:打码:B5:59:BAservice data: []manufacturer specific data: [b'\x0e\xff\x8f\x03\x10U\x8b9Z\xbaY\xb5e\xdfD']local name: UUID16: None,UUID128: None
2024-10-08 20:20:07.757 INFO (Thread-3) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID 44打码:打码b559ba: service data: []manufacturer specific data: [b'\x0e\xff\x8f\x03\x10U\x8b9Z\xbaY\xb5e\xdfD']local name: UUID16: None,UUID128: None
2024-10-08 20:20:07.760 DEBUG (MainThread) [custom_components.ble_monitor.device_tracker] Data device tracker received: {'is connected': True, 'mac': '44打码打码B559BA', 'rssi': -66, 'local_name': 'DL02V1', 'gateway_id': 'ble_monitor'}
2024-10-08 20:20:07.761 DEBUG (MainThread) [custom_components.ble_monitor.device_tracker] Data device tracker received: {'is connected': True, 'mac': '44打码打码B559BA', 'rssi': -66, 'local_name': '', 'gateway_id': 'ble_monitor'}
上述是在日志中关于这个mac的相关信息,local_name的名称也显示出来了。门锁也确实是这个型号的
Snipaste_2024-10-08_20-33-04.png
回复

使用道具 举报

40

主题

2176

帖子

8286

积分

元老级技术达人

积分
8286
金钱
6095
HASS币
110
 楼主| 发表于 2024-10-9 08:40:45 | 显示全部楼层
flyingfish119 发表于 2024-10-8 20:42
我开启了 ble monitor的启动调试日志。在系统日志栏目里只发现了info信息,附图是我手动添加时的配置。
...

你是增加了一行配置,试试改一个已有的门锁的pdid,改成你的
回复

使用道具 举报

0

主题

21

帖子

110

积分

注册会员

Rank: 2

积分
110
金钱
89
HASS币
0
发表于 2024-10-9 09:48:31 | 显示全部楼层
ghostist 发表于 2024-10-9 08:40
你是增加了一行配置,试试改一个已有的门锁的pdid,改成你的

我修改了支持门锁的pdid但是还是显示未知
2024-10-09 09:37:46.343 INFO (Thread-4) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID 44d******9ba: service data: [b'\x0e\x16\x95\xfe\x10U\x8b9k\xbaY\xb5e\xdfD']manufacturer specific data: []local name: DL02V1UUID16: None,UUID128: None
2024-10-09 09:37:46.345 INFO (Thread-4) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID 44d******9ba: service data: []manufacturer specific data: [b'\x0e\xff\x8f\x03\x10U\x8b9k\xbaY\xb5e\xdfD']local name: UUID16: None,UUID128: None
2024-10-09 09:37:46.349 DEBUG (MainThread) [custom_components.ble_monitor.device_tracker] Data device tracker received: {'is connected': True, 'mac': '44d******9ba', 'rssi': -63, 'local_name': 'DL02V1', 'gateway_id': 'ble_monitor'}
2024-10-09 09:37:46.352 DEBUG (MainThread) [custom_components.ble_monitor.device_tracker] Data device tracker received: {'is connected': True, 'mac': '44d******9ba', 'rssi': -64, 'local_name': '', 'gateway_id': 'ble_monitor'}
2024-10-09 09:37:46.842 INFO (Thread-4) [custom_components.ble_monitor.ble_parser] BLE advertisement received from MAC/UUID 44d******9ba: service data: [b'\x0e\x16\x95\xfe\x10U\x8b9k\xbaY\xb5e\xdfD']manufacturer specific data: []local name: DL02V1UUID16: None,UUID128: None
这是最新的日志。和昨天晚上的好像没啥区别。信号强度是够的,大佬方便远程看看吗,

支持的门锁

支持的门锁

修改完成

修改完成

添加后的状态1

添加后的状态1

添加后的状态2

添加后的状态2
回复

使用道具 举报

0

主题

1

帖子

18

积分

新手上路

Rank: 1

积分
18
金钱
17
HASS币
0
发表于 2024-10-24 16:05:03 | 显示全部楼层
qiaofei828 发表于 2023-11-13 09:33
这款USB蓝牙在CM311上也能免驱

插上蓝牙homekit直接发现门锁,输入配对码就行,还能远程开锁

大佬您好,你的意思是买个这种蓝牙适配器插在HA载体上,小米门锁就可以直接接入homekit上了吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 05:48 , Processed in 0.111594 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表