Skip to content
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

Basic support for Roborock Q Revo / P10 #115

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 8 additions & 0 deletions roborock/code_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ class RoborockMopModeS8ProUltra(RoborockMopModeCode):
class RoborockMopIntensityCode(RoborockEnum):
"""Describes the mop intensity of the vacuum cleaner."""

class RoborockMopModeP10(RoborockMopModeCode):
standard = 300
deep = 301
deep_plus = 302
fast = 303

class RoborockMopIntensityCode(RoborockEnum):
"""Describes the mop intensity of the vacuum cleaner."""

class RoborockMopIntensityS7(RoborockMopIntensityCode):
"""Describes the mop intensity of the vacuum cleaner."""
Expand Down
2 changes: 2 additions & 0 deletions roborock/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
ROBOROCK_C1 = "roborock.vacuum.c1"
ROBOROCK_S8_PRO_ULTRA = "roborock.vacuum.a70"
ROBOROCK_S8 = "roborock.vacuum.a51"
ROBOROCK_P10 = "roborock.vacuum.a75"

SUPPORTED_VACUUMS = (
[ # These are the devices that show up when you add a device - more could be supported and just not show up
Expand All @@ -51,5 +52,6 @@
ROBOROCK_S8,
ROBOROCK_S4_MAX,
ROBOROCK_S7,
ROBOROCK_P10,
]
)