Skip to content

feat: add APP_SKIP_CURRENT_CLEANING_AREA command - #1061

Merged
allenporter merged 3 commits into
Python-roborock:mainfrom
cptntrps:feat/skip-current-cleaning-area
Nov 26, 2026
Merged

allenporter merged 3 commits into
Python-roborock:mainfrom
cptntrps:feat/skip-current-cleaning-area

Conversation

@cptntrps

Copy link
Copy Markdown
Contributor

Summary

Adds RoborockCommand.APP_SKIP_CURRENT_CLEANING_AREA (app_skip_current_cleaning_area).

The Roborock app sends this command when the user taps "skip" during a room clean. The robot then leaves the current room and continues with the next room of the task.

Source

  • Decoded from the app plugin for the Saros 10R (roborock.vacuum.a144). The app wrapper is skipCurrentCleaningArea; both callers send {"source": 2}.
  • ioBroker.roborock already uses the same method for a179.

Tested on a Saros 10R

Call Robot reply
app_skip_current_cleaning_area with no params -10007 invalid params (the method is known)
an unknown method name method not recognized
app_skip_current_cleaning_area {"source": 2}, robot docked ok, robot stays docked
same, during app_segment_clean of two rooms ok; the robot left the first room and was cleaning the second room 51 s later

Without the skip, the same first room took about 8 minutes in an earlier run.

Checks

  • uv run pytest: 2362 passed
  • ruff check roborock tests: clean
  • mypy on the changed files: clean

The Roborock app sends app_skip_current_cleaning_area with {"source": 2} when
the user taps skip during a room clean. Decoded from the Saros 10R (a144) app
plugin; the robot answers ok, and an unknown method gets a different error.
@Lash-L Lash-L added Small PR Small pull request (<200 lines) Data model changes Changes to data models, device info, or feature mappings Feature New feature V1 V1 platform labels Nov 18, 2026

@Lash-L Lash-L left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated code review by Gemini 4 Neon in Antigravity using our /review (/code-review) skill (.agents/skills/code-review/SKILL.md / AGENTS.md).

Summary

Verdict: Clean and ready to approve. No findings survived adversarial self-check.

Architectural Review (Priority 1 → 3)

  • Priority 1 — Public Trait APIs & Consumer Contracts: No public trait API changes. RoborockCommand.APP_SKIP_CURRENT_CLEANING_AREA is added to the V1 command enum in roborock/roborock_typing.py for use via CommandTrait.send(), matching all sibling RoborockCommand entries.
  • Priority 2 — Data Lifecycle & State Management: N/A — no state, lifecycle, or concurrency changes.
  • Priority 3 — Wire Protocols, Codecs & Resilient Enums: Clean enum addition (APP_SKIP_CURRENT_CLEANING_AREA = "app_skip_current_cleaning_area") compatible with CommandTrait.send() and ParamsType (dict payload {"source": 2}).
  • Tests & Scoping: Tightly scoped (2 files, +17/-0), Conventional Commit title/message, and unit test colocated in tests/devices/traits/v1/test_command.py following the existing command_trait fixture pattern.

RR_API Cross-Verification

Verified against the decompiled Roborock Android app (com.roborock.tanos and hermes/no_package plugins):

  • RPC method string: Exact match — skipCurrentCleaningArea invokes 'app_skip_current_cleaning_area' (module_441.js).
  • Parameter schema: Confirmed — both app callers (module_2370.js, module_3176.js) pass {"source": 2} directly as the RPC params object.
  • Feature flag (informational for future trait work): The app gates the skip UI via isDynamiclySkipCleanZoneSupported (newFeatureInfoStr.slice(-8) mask 33554432 / 0x2000000 in module_443.js), which is already mapped in python-roborock as DeviceFeatures.is_dynamically_skip_clean_zone_supported (roborock/device_features.py). No gating is required on the raw RoborockCommand enum entry itself.

@Lash-L Lash-L added /review run Code review skill (/review) has been run Passed /review Passed the /review skill check labels Nov 21, 2026

@Lash-L Lash-L left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY!

Lash-L
Lash-L previously requested changes Nov 21, 2026

@Lash-L Lash-L left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint is failing and the test can honestly be removed as it's just a mocking test.

Can you fix both?

@Lash-L
Lash-L marked this pull request as draft November 21, 2026 17:54
@Lash-L
Lash-L marked this pull request as ready for review November 22, 2026 19:22
Copilot AI balanced review requested due to automatic review settings November 22, 2026 19:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@allenporter
allenporter dismissed Lash-L’s stale review November 26, 2026 16:39

Feedback has been addressed

@allenporter
allenporter merged commit c893483 into Python-roborock:main Nov 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Data model changes Changes to data models, device info, or feature mappings Feature New feature Passed /review Passed the /review skill check /review run Code review skill (/review) has been run Small PR Small pull request (<200 lines) V1 V1 platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants