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

 找回密码
 立即注册
楼主: XCray

[修仙教程] 【ESPHome】ESP32 DIY通用蓝牙网关,接入米家系门锁等各种设备

  [复制链接]

2

主题

53

帖子

1018

积分

金牌会员

Rank: 6Rank: 6

积分
1018
金钱
965
HASS币
0
发表于 2022-11-24 00:14:07 | 显示全部楼层
楼主你好,我用你的mible_0.4编译之后 为什么打印出这样的日志。可以指点一下吗    bindkey是破解版app获取到的。
[00:10:07][I][app:102]: ESPHome version 2022.11.1 compiled on Nov 24 2022, 00:05:27
[00:10:07][C][wifi:504]: WiFi:
[00:10:07][C][wifi:362]:   Local MAC: B4:8A:0A:8C:FD:7C
[00:10:07][C][wifi:363]:   SSID: [redacted]
[00:10:07][C][wifi:364]:   IP Address: 192.168.0.136
[00:10:07][C][wifi:366]:   BSSID: [redacted]
[00:10:07][C][wifi:367]:   Hostname: 'esp32-tv'
[00:10:07][C][wifi:369]:   Signal strength: -64 dB ▂▄▆█
[00:10:07][C][wifi:373]:   Channel: 7
[00:10:07][C][wifi:374]:   Subnet: 255.255.255.0
[00:10:07][C][wifi:375]:   Gateway: 192.168.0.5
[00:10:07][C][wifi:376]:   DNS1: 192.168.0.5
[00:10:07][C][wifi:377]:   DNS2: 192.168.0.5
[00:10:07][C][logger:293]: Logger:
[00:10:07][C][logger:294]:   Level: DEBUG
[00:10:07][C][logger:295]:   Log Baud Rate: 115200
[00:10:07][C][logger:296]:   Hardware UART: UART0
[00:10:07][C][xiaomi_zelkova:012]: Xiaomi ZELKOVA
[00:10:07][C][xiaomi_zelkova:013]:   Bindkey: FA.19.33.E6.53.AF.E2.E7.C5.F1.F0.8A.24.CC.C2.43 (16)
[00:10:07][C][xiaomi_zelkova:014]:   OpMethod 'OpMethod'
[00:10:07][C][xiaomi_zelkova:014]:     State Class: ''
[00:10:07][C][xiaomi_zelkova:018]:   BattLvl 'BattLvl'
[00:10:07][C][xiaomi_zelkova:018]:     Device Class: 'battery'
[00:10:07][C][xiaomi_zelkova:018]:     State Class: 'measurement'
[00:10:07][C][xiaomi_zelkova:018]:     Unit of Measurement: '%'
[00:10:07][C][xiaomi_zelkova:018]:     Accuracy Decimals: 0
[00:10:07][C][xiaomi_zelkova:019]:   BattLvlTS 'BattLvlTS'
[00:10:07][C][xiaomi_zelkova:019]:     State Class: ''
[00:10:07][C][xiaomi_zelkova:019]:     Unit of Measurement: ''
[00:10:07][C][xiaomi_zelkova:019]:     Accuracy Decimals: 0
[00:10:07][C][xiaomi_zelkova:020]:   DoorEvt 'DoorEvt'
[00:10:07][C][xiaomi_zelkova:020]:     State Class: ''
[00:10:07][C][xiaomi_zelkova:020]:     Unit of Measurement: ''
[00:10:07][C][xiaomi_zelkova:020]:     Accuracy Decimals: 0
[00:10:07][C][xiaomi_zelkova:021]:   DoorEvtTS 'DoorEvtTS'
[00:10:07][C][xiaomi_zelkova:021]:     State Class: ''
[00:10:07][C][esp32_ble_tracker:798]:   Continuous Scanning: True
[00:10:07][C][captive_portal:088]: Captive Portal:
[00:10:07][C][ota:093]: Over-The-Air Updates:
[00:10:07][C][ota:094]:   Address: esp32-tv.local:3232
[00:10:07][C][ota:097]:   Using Password.
[00:10:08][C][api:138]: API Server:
[00:10:08][C][api:139]:   Address: esp32-tv.local:6053
[00:10:08][C][api:141]:   Using noise encryption: YES
[00:10:08][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:09][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:09][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:11][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:12][D][esp32_ble_tracker:809]: Found device A4:C1:38:44:FC:4C RSSI=-79
[00:10:12][D][esp32_ble_tracker:830]:   Address Type: PUBLIC
[00:10:13][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:13][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:14][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:15][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:16][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:16][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:16][D][esp32_ble_tracker:809]: Found device A4:C1:38:2B:07:60 RSSI=-94
[00:10:16][D][esp32_ble_tracker:830]:   Address Type: PUBLIC
[00:10:17][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:18][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:20][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:20][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:22][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:22][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:23][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:24][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:25][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:26][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:26][D][esp32_ble_tracker:809]: Found device A4:C1:38:88:BA:C9 RSSI=-87
[00:10:26][D][esp32_ble_tracker:830]:   Address Type: PUBLIC
[00:10:27][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:27][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:29][D][api:102]: Accepted ::FFFF:C0A8:8
[00:10:30][D][api.connection:917]: Home Assistant 2022.11.2 (::FFFF:C0A8:8): Connected successfully
[00:10:30][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:31][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:31][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:33][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.
[00:10:34][D][xiaomi_blez:114]: parse_xiaomi_header(): service data has no DATA flag.

回复

使用道具 举报

0

主题

2

帖子

24

积分

新手上路

Rank: 1

积分
24
金钱
22
HASS币
0
发表于 2022-12-20 23:12:59 | 显示全部楼层
netwolf 发表于 2022-11-9 15:50
只适用于我的门锁

大佬,  不会刷bin, 能发个esp32的yaml和components么? 我也是小米智能门锁
另外问下这个需要becomkey么
回复

使用道具 举报

5

主题

110

帖子

2067

积分

金牌会员

Rank: 6Rank: 6

积分
2067
金钱
1952
HASS币
20
发表于 2022-12-21 07:45:27 | 显示全部楼层
andy-zl 发表于 2022-12-20 23:12
大佬,  不会刷bin, 能发个esp32的yaml和components么? 我也是小米智能门锁
另外问下这个需要becomkey么 ...

local.tar.gz (7.42 KB, 下载次数: 14)
需要bindkey
回复

使用道具 举报

0

主题

2

帖子

24

积分

新手上路

Rank: 1

积分
24
金钱
22
HASS币
0
发表于 2022-12-28 09:33:09 | 显示全部楼层

非常感谢,最近app没通知了,可以自己开搞了
回复

使用道具 举报

3

主题

99

帖子

1230

积分

金牌会员

Rank: 6Rank: 6

积分
1230
金钱
1131
HASS币
0
发表于 2023-2-21 09:28:13 | 显示全部楼层
XCray 发表于 2021-8-5 21:56
在系统日志里,/var/log/messages,telnet或ssh登录进去查看。
不过你如果打算长期使用多模网关的话,xg3 ...

大佬,多模网关固件版本1.5.4_0090,通过telnet连接后查看/var/log/messages,没有发现beaconkey,是否目前无法通过esp蓝牙网关读取门锁信息了?多谢!
回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12119
金钱
9100
HASS币
460

教程狂人突出贡献

 楼主| 发表于 2023-3-8 12:15:04 | 显示全部楼层
tianzhuang55 发表于 2023-2-21 09:28
大佬,多模网关固件版本1.5.4_0090,通过telnet连接后查看/var/log/messages,没有发现beaconkey,是否目 ...

没有beaconkey肯定是没法玩。

试试删除messages,重新绑定后尽快查看,也许能看到吧
回复

使用道具 举报

24

主题

896

帖子

5111

积分

论坛元老

Rank: 8Rank: 8

积分
5111
金钱
4210
HASS币
20
发表于 2023-3-19 16:25:34 | 显示全部楼层
tianzhuang55 发表于 2023-2-21 09:28
大佬,多模网关固件版本1.5.4_0090,通过telnet连接后查看/var/log/messages,没有发现beaconkey,是否目 ...

你搞定了吗?我的多模前段时间Wi-Fi不稳定,也是升级到了这个版本,现在进去也是找不到beaconkey
回复

使用道具 举报

3

主题

99

帖子

1230

积分

金牌会员

Rank: 6Rank: 6

积分
1230
金钱
1131
HASS币
0
发表于 2023-3-20 22:25:45 | 显示全部楼层
chenquanhao 发表于 2023-3-19 16:25
你搞定了吗?我的多模前段时间Wi-Fi不稳定,也是升级到了这个版本,现在进去也是找不到beaconkey ...

没搞定呢,不过我的多模倒是很稳定
回复

使用道具 举报

24

主题

896

帖子

5111

积分

论坛元老

Rank: 8Rank: 8

积分
5111
金钱
4210
HASS币
20
发表于 2023-4-7 01:44:06 | 显示全部楼层
多模网关自定义固件1.4.7.160,在/var/log/messages找到了beaconkey,但是不知为何是40个字符了,正常应该是32个字符,是需要怎么转化一下吗?
回复

使用道具 举报

5

主题

110

帖子

2067

积分

金牌会员

Rank: 6Rank: 6

积分
2067
金钱
1952
HASS币
20
发表于 2023-5-10 11:45:40 | 显示全部楼层
chenquanhao 发表于 2023-4-7 01:44
多模网关自定义固件1.4.7.160,在/var/log/messages找到了beaconkey,但是不知为何是40个字符了,正常应该 ...

是的,最近安装的新的锁也是这个问题
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-28 01:27 , Processed in 1.166927 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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