diff --git a/src/qingping_ble/parser.py b/src/qingping_ble/parser.py index 5283c68..f1d7382 100644 --- a/src/qingping_ble/parser.py +++ b/src/qingping_ble/parser.py @@ -31,14 +31,15 @@ class QingpingDevice: 0x04: QingpingDevice("CGH1", "Door/Window Sensor"), # Door/Window Sensor 0x07: QingpingDevice("CGG1", ""), 0x09: QingpingDevice("CGP1W", ""), + 0x0C: QingpingDevice("CGD1", "Alarm Clock"), + 0x0E: QingpingDevice("CGDN1", "Air Monitor Lite"), + 0x0F: QingpingDevice("CGM1", "Lee Guitars Thermo-Hygrometer"), + 0x12: QingpingDevice("CGPR1", "Motion & Light"), 0x15: QingpingDevice("CGF1W", "Temp RH Pro E"), 0x16: QingpingDevice("CGG1", "Temp RH M"), - 0x12: QingpingDevice("CGPR1", "Motion & Light"), + 0x18: QingpingDevice("CGP23W", "Temp & RH Monitor Pro"), 0x1E: QingpingDevice("CGC1", "BT Clock Lite"), - 0x0C: QingpingDevice("CGD1", "Alarm Clock"), - 0x0E: QingpingDevice("CGDN1", "Air Monitor Lite"), 0x24: QingpingDevice("CGDN1", "Air Monitor Lite"), - 0x0F: QingpingDevice("CGM1", "Lee Guitars Thermo-Hygrometer"), } @@ -98,17 +99,6 @@ def _process_xdata(self, xdata_id: int, xdata_size: int, xdata: bytes) -> None: elif xdata_id == 0x02 and xdata_size == 1: batt = unpack("B", xdata)[0] self.update_predefined_sensor(SensorLibrary.BATTERY__PERCENTAGE, batt) - elif xdata_id == 0x07 and xdata_size == 2: - pressure = unpack(" None: key=(None, "door_left_open"), name="Door left open", ) + elif xdata_id == 0x07 and xdata_size == 2: + pressure = unpack("