Skip to content

Commit 87e1955

Browse files
committed
Restore convertors for BLE toothbrush MES601 #1313
1 parent 5c75afe commit 87e1955

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,14 @@
13821382
BaseConv("temperature", "sensor"),
13831383
],
13841384
"ttl": "12h",
1385+
}, {
1386+
1161: ["Xiaomi", "Toothbrush T500", "MES601"],
1387+
"spec": [
1388+
BaseConv("action", "sensor"),
1389+
BLEByteConv("battery", "sensor", mi=4106), # uint8
1390+
BLEByteConv("supply", "sensor", mi=4115), # uint8, Remaining percentage, range 0~100
1391+
BLEToothbrush("toothbrush", mi=16),
1392+
],
13851393
}, {
13861394
1249: ["Xiaomi", "Magic Cube", "XMMF01JQD", "jiqid.robot.cube"], # 4097
13871395
"spec": [

0 commit comments

Comments
 (0)