Skip to content

Commit

Permalink
Merge pull request #1049 from custom-components/Brifit-WS08
Browse files Browse the repository at this point in the history
Add support for Sensorplus / Brifit WS08
  • Loading branch information
Ernst79 authored Nov 13, 2022
2 parents f706dee + 12df7ba commit 09b9e75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/ble_monitor/ble_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def parse_advertisement(
sensor_data = parse_govee(self, man_spec_data, mac, rssi)
break
elif service_class_uuid16 == 0xF0FF:
if comp_id in [0x0010, 0x0011, 0x0015] and data_len in [0x15, 0x17]:
if comp_id in [0x0010, 0x0011, 0x0015, 0x0018] and data_len in [0x15, 0x17]:
# Thermoplus
sensor_data = parse_thermoplus(self, man_spec_data, mac, rssi)
break
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ble_monitor/ble_parser/thermoplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def parse_thermoplus(self, data, source_mac, rssi):
device_id = data[2]
if device_id == 0x10:
device_type = "Lanyard/mini hygrometer"
elif device_id in [0x11, 0x15]:
elif device_id in [0x11, 0x15, 0x18]:
device_type = "Smart hygrometer"
else:
device_type = None
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ble_monitor/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"dependencies": [],
"codeowners": ["@Ernst79", "@Magalex2x14", "@Thrilleratplay"],
"version": "10.5.3",
"version": "10.6.0",
"iot_class": "local_polling"
}

0 comments on commit 09b9e75

Please sign in to comment.