custom-components / ble_monitor

BLE monitor for passive BLE sensors
https://community.home-assistant.io/t/passive-ble-monitor-integration/
MIT License
1.87k stars 242 forks source link

[New Sensor]: Xiaomi Human Presence Sensor #1377

Open merdok opened 1 month ago

merdok commented 1 month ago

Sensor Description

Xiaomi Human Presence Sensor

Additional information

https://aliexpress.com/item/1005007045530291.html Product number: XMOSB01XS Wireless connections: Bluetooth 5.0 Battery Type: CR2450 Net Weight: 47.6g Detection distance: Human movement detection up to 6 meters Human presence detection up to 4 meters detection angle: about 130° Operating temperature: -10C° ~ 45C° Working humidity: 0-95%RH (non-condensing)

token: b296b456e3974e757a349ff4

New xiaomi human presence sensor.

Could it also be added to the Xiaomi BLE integration?

BLE advertisements


Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:43:57
Event Type: NonConnectable Undirected
Payload:
01-06-16-95-FE-48-59-83-46-89-44-FO-CB-3D-36-1A-84-04-00-00-1D-F7-3C-C3

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:44:54
Event Type: NonConnectableUndirected
Payload:
01-06-16-95-FE-58-59-83-46-8A-97-95-B8-67-48-D4-32-OF-1F-99-04-00-00-7B-8D-BF-6C

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:45:00
Event Type: NonConnectable Undirected
Payload:
01-06-16-95-FE-58-59-83-46-8B-97-95-B8-67-48-D4-C3-7C-0E-EE-04-00-00-C6-E9-26-D8

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:45:17
Event Type: Non Connectable Undirected
Payload:
01-06-16-95-FE-10-59-83-46-8B-97-95-B8-67-48-D4

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:45:18
Event Type: NonConnectable Undirected
Payload: 01-06-16-95-FE-48-59-83-46-8C-70-ED-BE-15-7B-2E-14-04-00-00-AF-B3-D0-E1

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:45:56
Event Type: NonConnectable Undirected
Payload:
01-06-16-95-FE-48-59-83-46-8D-17-A3-75-FC-78-53-AD-04-00-00-F7-4E-F9-0D

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:46:00
Event Type: Non Connectable Undirected
Payload: 01-06-16-95-FE-48-59-83-46-8E-EE-01-1B-C7-E3-54-8F-04-00-00-EC-7A-26-64

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:42:14
Event Type: ConnectableUndirected
Payload: 01-06-16-95-FE-10-59-83-46-86-97-95-B8-67-48-D4

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:43:19
Event Type: NonConnectable Undirected
Payload:
01-06-16-95-FE-48-59-83-46-88-93-92-A4-60-09-AD-88-04-00-00-12-D9-E5-BB

Address: D44867B89597
Address Type: Public
Timestamp: 12/07/2024 23:42:16
Event Type: Non Connectable Undirected
Payload: 01-06-16-95-FE-48-59-83-46-87-69-AE-4E-45-48-82-B1-04-00-00-20-CO-E0-61
yangqian commented 1 month ago

According to the specs, it is a ble mesh device. So it may require active connection? I don't why Xiaomi made it that way, seems unnecessary.

merdok commented 1 month ago

I mean it sends an advertisement when a person is detected, so not sure if it really needs an active connection... Also how would they even be able to achieve 3 years of battery life on a single cell battery with an active connection?

yangqian commented 1 month ago

I mean it sends an advertisement when a person is detected, so not sure if it really needs an active connection... Also how would they even be able to achieve 3 years of battery life on a single cell battery with an active connection?

Yeah, seems strange, it may be putting all the information just in advertisement. But It might be a new protocal.

Does it have a BLE KEY rather than the token? It should be longer.

merdok commented 1 month ago

Do not see any ble key entry in the micloud device info.

niaosuan commented 1 month ago

Is this sensor can be added into HA? From review It is an all-In-one sensor It solved presences and movement sensor weaknesses.