Skip to content

feat: add support for g20s ultra #359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions roborock/code_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class RoborockStateCode(RoborockEnum):
mapping = 29
egg_attack = 30
patrol = 32
attaching_the_mop = 33 # on g20s ultra
detaching_the_mop = 34 # on g20s ultra
charging_complete = 100
device_offline = 101
locked = 103
Expand Down
2 changes: 2 additions & 0 deletions roborock/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
ROBOROCK_QREVO_CURV = "roborock.vacuum.a135"
ROBOROCK_Q8_MAX = "roborock.vacuum.a73"
ROBOROCK_G10S_PRO = "roborock.vacuum.a26"
ROBOROCK_G20S_Ultra = "roborock.vacuum.a143" # cn saros_r10
ROBOROCK_G10S = "roborock.vacuum.a46"
ROBOROCK_G10 = "roborock.vacuum.a29"
ROCKROBO_G10_SG = "roborock.vacuum.a30" # Variant of the G10, has similar features as S7
Expand All @@ -58,6 +59,7 @@
SUPPORTED_VACUUMS = [
ROBOROCK_G10,
ROBOROCK_G10S_PRO,
ROBOROCK_G20S_Ultra,
ROBOROCK_Q5,
ROBOROCK_Q7,
ROBOROCK_Q7_MAX,
Expand Down
2 changes: 2 additions & 0 deletions roborock/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
SENSOR_DIRTY_REPLACE_TIME,
SIDE_BRUSH_REPLACE_TIME,
STRAINER_REPLACE_TIME,
ROBOROCK_G20S_Ultra,
)
from .exceptions import RoborockException

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