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

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

[已解决] 请教关于esp32c3接入home assistant蓝牙追踪传感器数量少

[复制链接]

7

主题

269

帖子

1515

积分

金牌会员

Rank: 6Rank: 6

积分
1515
金钱
1246
HASS币
0
 楼主| 发表于 2022-11-24 11:56:24 | 显示全部楼层
justion 发表于 2022-11-24 09:56
并不是这个愿意,我已经放了一个晚上了,还是没有任何变化

你现在的状态是开启还是关闭
回复

使用道具 举报

32

主题

285

帖子

1825

积分

金牌会员

Rank: 6Rank: 6

积分
1825
金钱
1540
HASS币
0
发表于 2022-11-24 12:15:15 | 显示全部楼层
silang521 发表于 2022-11-24 11:56
你现在的状态是开启还是关闭

我手机和手表蓝牙都是打开状态,但是ha里显示的都是关闭状态。一开始我也怀疑会不会是我的状态显示反转了,所以把蓝牙都关了,ha也还是显示关闭状态。
回复

使用道具 举报

1

主题

19

帖子

255

积分

论坛分享达人

积分
255
金钱
236
HASS币
0
发表于 2022-11-24 14:10:22 | 显示全部楼层
justion 发表于 2022-11-24 12:15
我手机和手表蓝牙都是打开状态,但是ha里显示的都是关闭状态。一开始我也怀疑会不会是我的状态显示反转了 ...

手机一般都是随机蓝牙MAC地址,不能用mac来判断在不在
我的是amazfit手表,除了开蓝牙还需要开蓝牙广播
如果不能通过mac地址判断的话你也许可以尝试用文本来判断设备在不在范围内
https://esphome.io/components/text_sensor/ble_scanner.html

# Example configuration entry
esp32_ble_tracker:

text_sensor:
  - platform: ble_scanner
    name: "BLE Devices Scanner"


回复

使用道具 举报

32

主题

285

帖子

1825

积分

金牌会员

Rank: 6Rank: 6

积分
1825
金钱
1540
HASS币
0
发表于 2022-11-24 22:09:41 | 显示全部楼层
Nchyn 发表于 2022-11-24 14:10
手机一般都是随机蓝牙MAC地址,不能用mac来判断在不在
我的是amazfit手表,除了开蓝牙还需要开蓝牙广播
...

似乎也不行,这样设置以后就变成下面这样了,实际上我已经把手表的蓝牙关了,他还是会出现一大堆数据

[22:08:16][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2584,"address":"7D:9A:1B:82:4E:D3","rssi":-76,"name":""}'
[22:08:16][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2585,"address":"4C:5D:4E:B8:6C:23","rssi":-79,"name":""}'
[22:08:17][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2585,"address":"4C:5D:4E:B8:6C:23","rssi":-76,"name":""}'
[22:08:17][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2586,"address":"CD:F0:03:4E:63:2C","rssi":-78,"name":""}'
[22:08:17][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2586,"address":"4C:5D:4E:B8:6C:23","rssi":-79,"name":""}'
[22:08:18][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2586,"address":"4C:5D:4E:B8:6C:23","rssi":-76,"name":""}'
[22:08:18][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2587,"address":"EC:4D:3E:03:F1:BB","rssi":-54,"name":"Mesh Mi Switch"}'
[22:08:19][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2587,"address":"45:53:04:D0:BA:1E","rssi":-89,"name":""}'
[22:08:20][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2589,"address":"EC:4D:3E:03:F1:BB","rssi":-53,"name":"Mesh Mi Switch"}'
[22:08:21][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2590,"address":"4C:5D:4E:B8:6C:23","rssi":-76,"name":""}'
[22:08:21][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2590,"address":"CD:F0:03:4E:63:2C","rssi":-79,"name":""}'
[22:08:21][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2590,"address":"7D:9A:1B:82:4E:D3","rssi":-76,"name":""}'
[22:08:23][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2591,"address":"7D:9A:1B:82:4E:D3","rssi":-77,"name":""}'
[22:08:23][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2591,"address":"4C:5D:4E:B8:6C:23","rssi":-79,"name":""}'
[22:08:23][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2592,"address":"4C:5D:4E:B8:6C:23","rssi":-78,"name":""}'
[22:08:24][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2593,"address":"7D:9A:1B:82:4E:D3","rssi":-71,"name":""}'
[22:08:24][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2593,"address":"EC:4D:3E:03:F1:BB","rssi":-51,"name":"Mesh Mi Switch"}'
[22:08:25][D][text_sensor:067]: 'Galaxy Watch4 Classic (4LQJ)': Sending state '{"timestamp":2593,"address":"4C:5D:4E:B8:6C:23","rssi":-76,"name":""}'
回复

使用道具 举报

0

主题

50

帖子

620

积分

高级会员

Rank: 4

积分
620
金钱
570
HASS币
0
发表于 2023-8-3 14:01:02 | 显示全部楼层
justion 发表于 2022-11-24 22:09
似乎也不行,这样设置以后就变成下面这样了,实际上我已经把手表的蓝牙关了,他还是会出现一大堆数据

...

你的手表应该属于Beacon设备吧?https://esphome.io/components/es ... l?highlight=ibeacon
回复

使用道具 举报

8

主题

871

帖子

5224

积分

论坛元老

Rank: 8Rank: 8

积分
5224
金钱
4353
HASS币
0
发表于 2023-8-3 14:22:39 | 显示全部楼层
刚好需要,谢谢分享
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-28 18:46 , Processed in 1.122014 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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