custom-components / ble_monitor

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

WH52 temperature humidity sensor from Relsib #1362

Open gpn68 opened 4 months ago

gpn68 commented 4 months ago

Sensor Description

WH52

Additional information

WH52 miniature temperature ang humidity sensor from Relsib. Can also transmit batt level and rssi. temperature: -20 …+55 ±0,4 °С, humidity: 5...97 ±3 % battery: CR1632 Bluetooth 4.0 (Bluetooth Low Energy) dimensions: diametr 33 mm., higst 8 mm. Work with Android app "Termosha". With app can setup min/max alarm levels to red/green LED blinking on sensor and sound alarm on app. Some kind of Sensirion sensor is used, which applies the temperature formula: ((2-byte-data/65535)/175-45).

I modified 2 files to receive and calculate temp data: \custom_components\ble_monitor\const.py \custom_components\ble_monitor\ble_parser\relsib.py Files attached in format txt.

But i can`t find and receive humidity & batt data.

const.py.txt relsib.py.txt Relsib-WH52

BLE advertisements

2024-05-28 23:18:49.416 INFO (Thread-2) [custom_components.ble_monitor.ble_parser.relsib] BLE ADV from UNKNOWN Relsib DEVICE: MAC: 04:EE:03:16:56:C9, ADV: 05160918466d
2024-05-28 23:18:51.421 INFO (Thread-2) [custom_components.ble_monitor.ble_parser.relsib] BLE ADV from UNKNOWN Relsib DEVICE: MAC: 04:EE:03:16:56:C9, ADV: 05160918467d
2024-05-28 23:18:53.432 INFO (Thread-2) [custom_components.ble_monitor.ble_parser.relsib] BLE ADV from UNKNOWN Relsib DEVICE: MAC: 04:EE:03:16:56:C9, ADV: 05160918467d
2024-05-28 23:18:55.432 INFO (Thread-2) [custom_components.ble_monitor.ble_parser.relsib] BLE ADV from UNKNOWN Relsib DEVICE: MAC: 04:EE:03:16:56:C9, ADV: 051609184668
2024-05-28 23:18:57.439 INFO (Thread-2) [custom_components.ble_monitor.ble_parser.relsib] BLE ADV from UNKNOWN Relsib DEVICE: MAC: 04:EE:03:16:56:C9, ADV: 051609184653

2024-05-28 21:10:14.224 INFO (Thread-2) [] BLE ADV from MAC/UUID 04ee031656c9: service data: []manufacturer specific data: []local name: WH52UUID16: None,UUID128: None
2024-05-28 21:10:16.228 INFO (Thread-2) [] BLE ADV from MAC/UUID 04ee031656c9: service data: [b'\x05\x16\t\x18M\xea', b'\x05\x16\x1a\x18\xb1L', b'\x07\x16\xa2\xaa0351']manufacturer specific data: []local name: UUID16: 2328,UUID128: None
2024-05-28 21:10:18.231 INFO (Thread-2) [] BLE ADV from MAC/UUID 04ee031656c9: service data: [b'\x05\x16\t\x18M\xc5', b'\x05\x16\x1a\x18\xb0\xfc', b'\x07\x16\xa2\xaa0351']manufacturer specific data: []local name: UUID16: 2328,UUID128: None
2024-05-28 21:10:18.237 INFO (Thread-2) [] BLE ADV from MAC/UUID 04ee031656c9: service data: []manufacturer specific data: []local name: WH52UUID16: None,UUID128: None