Skip to content

Commit

Permalink
Add debugging for H5198
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 committed Jan 22, 2023
1 parent 4245772 commit 7b9d0d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/ble_monitor/ble_parser/govee.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def parse_govee(self, data, service_class_uuid16, source_mac, rssi):
"temperature alarm probe 2": decode_temps_probes(temp_alarm_2)
})
elif msg_length == 24 and service_class_uuid16 == 0x5198:
_LOGGER.debug("Govee H5198 detected with data %s", data.hex())
device_type = "H5198"
sensor_id = data[10]
(temp_probe_first, temp_alarm_first, _, temp_probe_second, temp_alarm_second) = unpack(">hhhhh", data[12:22])
Expand Down

0 comments on commit 7b9d0d8

Please sign in to comment.