Skip to content

Commit 652a815

Browse files
committed
feat: add support for g20s ultra
1 parent 67235cf commit 652a815

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

roborock/code_mappings.py

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class RoborockStateCode(RoborockEnum):
7878
mapping = 29
7979
egg_attack = 30
8080
patrol = 32
81+
attaching_the_mop = 33 # on g20s ultra
82+
detaching_the_mop = 34 # on g20s ultra
8183
charging_complete = 100
8284
device_offline = 101
8385
locked = 103

roborock/const.py

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
ROBOROCK_QREVO_CURV = "roborock.vacuum.a135"
3535
ROBOROCK_Q8_MAX = "roborock.vacuum.a73"
3636
ROBOROCK_G10S_PRO = "roborock.vacuum.a26"
37+
ROBOROCK_G20S_Ultra = "roborock.vacuum.a143" # cn saros_r10
3738
ROBOROCK_G10S = "roborock.vacuum.a46"
3839
ROBOROCK_G10 = "roborock.vacuum.a29"
3940
ROCKROBO_G10_SG = "roborock.vacuum.a30" # Variant of the G10, has similar features as S7
@@ -58,6 +59,7 @@
5859
SUPPORTED_VACUUMS = [
5960
ROBOROCK_G10,
6061
ROBOROCK_G10S_PRO,
62+
ROBOROCK_G20S_Ultra,
6163
ROBOROCK_Q5,
6264
ROBOROCK_Q7,
6365
ROBOROCK_Q7_MAX,

roborock/containers.py

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
SENSOR_DIRTY_REPLACE_TIME,
7474
SIDE_BRUSH_REPLACE_TIME,
7575
STRAINER_REPLACE_TIME,
76+
ROBOROCK_G20S_Ultra,
7677
)
7778
from .exceptions import RoborockException
7879

@@ -665,6 +666,7 @@ class S8MaxvUltraStatus(Status):
665666
ROBOROCK_S8: S8Status,
666667
ROBOROCK_S8_PRO_ULTRA: S8ProUltraStatus,
667668
ROBOROCK_G10S_PRO: S7MaxVStatus,
669+
ROBOROCK_G20S_Ultra: QRevoMasterStatus,
668670
ROBOROCK_P10: P10Status,
669671
# These likely are not correct,
670672
# but i am currently unable to do my typical reverse engineering/ get any data from users on this,

0 commit comments

Comments
 (0)