Add CGDK2 support
@@ -52,6 +52,7 @@ XIAOMI_TYPE_DICT = {
b'\x5B\x04': ("LYWSD02", False),
b'\x5B\x05': ("LYWSD03MMC", False),
b'\x76\x05': ("CGD1", False),
+ b'\x6F\x06': ("CGDK2", False),
b'\xd3\x06': ("MHO-C303", False),
b'\x87\x03': ("MHO-C401", False),
b'\xDF\x02': ("JQJCY01YM", False),
@@ -78,6 +79,7 @@ MMTS_DICT = {
'LYWSD02' : [[0, 1, 9, 9, 9, 9, 9, 2], [9, 9, 9, 9, 9]],
'LYWSD03MMC' : [[0, 1, 9, 9, 9, 9, 9, 2], [9, 9, 9, 9, 9]],
'CGD1' : [[0, 1, 9, 9, 9, 9, 9, 2], [9, 9, 9, 9, 9]],
+ 'CGDK2' : [[0, 1, 9, 9, 9, 9, 9, 2], [9, 9, 9, 9, 9]],
'MHO-C401' : [[0, 1, 9, 9, 9, 9, 9, 2], [9, 9, 9, 9, 9]],
'MHO-C303' : [[0, 1, 9, 9, 9, 9, 9, 2], [9, 9, 9, 9, 9]],
'JQJCY01YM' : [[0, 1, 9, 9, 9, 2, 9, 3], [9, 9, 9, 9, 9]],
@@ -102,6 +104,7 @@ MANUFACTURER_DICT = {
'LYWSD02' : 'Xiaomi',
'LYWSD03MMC' : 'Xiaomi',
'CGD1' : 'ClearGrass',
+ 'CGDK2' : 'Qingping',
'MHO-C401' : 'Miaomiaoce',
'MHO-C303' : 'Miaomiaoce',
'JQJCY01YM' : 'Honeywell',
