mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-26 15:48:28 +02:00
Added support for Xiaomi CGDK2 (#1451)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -189,6 +189,9 @@ optional<XiaomiParseResult> parse_xiaomi_header(const esp32_ble_tracker::Service
|
||||
} else if ((raw[2] == 0x76) && (raw[3] == 0x05)) { // Cleargrass (Qingping) alarm clock, segment LCD
|
||||
result.type = XiaomiParseResult::TYPE_CGD1;
|
||||
result.name = "CGD1";
|
||||
} else if ((raw[2] == 0x6F) && (raw[3] == 0x06)) { // Cleargrass (Qingping) Temp & RH Lite
|
||||
result.type = XiaomiParseResult::TYPE_CGDK2;
|
||||
result.name = "CGDK2";
|
||||
} else if ((raw[2] == 0x5b) && (raw[3] == 0x05)) { // small square body, segment LCD, encrypted
|
||||
result.type = XiaomiParseResult::TYPE_LYWSD03MMC;
|
||||
result.name = "LYWSD03MMC";
|
||||
|
||||
@@ -18,6 +18,7 @@ struct XiaomiParseResult {
|
||||
TYPE_CGG1,
|
||||
TYPE_LYWSD03MMC,
|
||||
TYPE_CGD1,
|
||||
TYPE_CGDK2,
|
||||
TYPE_JQJCY01YM,
|
||||
TYPE_MUE4094RT,
|
||||
TYPE_WX08ZM,
|
||||
|
||||
Reference in New Issue
Block a user