Skip to content

feat(v1): add fan speed, water and mop route setters that refuse changes in SmartPlan and custom mode - #1064

Open
infy1995 wants to merge 11 commits into
Python-roborock:mainfrom
infy1995:claude/v1-cleaning-mode-setters-56db40
Open

infy1995 wants to merge 11 commits into
Python-roborock:mainfrom
infy1995:claude/v1-cleaning-mode-setters-56db40

Conversation

@infy1995

@infy1995 infy1995 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Part of #738

Depends on #1055. This branch is built on top of #1055 (SmartPlan and custom cleaning modes, option lists). The first six commits are #1055; this PR's own changes are the last five commits:

  1. feat(v1): report which cleaning settings can be changed and which values to show in each mode
  2. feat(v1): send cleaning mode changes with the commands each model supports
  3. feat(v1): add fan speed, water mode and mop route setters that refuse changes in SmartPlan and custom mode
  4. feat(v1): report which cleaning settings each model supports and show the current value of the others
  5. feat(v1): handle set_clean_motor_mode in the V1 simulator

Once #1055 merges I will rebase, so only these five remain.

Summary

In SmartPlan the robot picks fan speed, water and mop route itself, and in custom mode they come from the per-room settings, so a consumer must not offer or send those settings. And outside those modes, not every value is valid in every mode: for example the Saros 10R rejects deep route 301 in vacuum-and-mop mode with -10005. This PR gives consumers what they need to show and change these settings safely, so a consumer such as Home Assistant only presents what the library reports and never combines feature flags itself:

  • StatusTrait.supported_cleaning_settings: which of fan speed, water mode and mop route the model has at all, from the device features (fan speed always; water mode with is_support_water_mode; mop route with water mode, the shake module, and either a mop-only mode or the fast route). A setting is in this set exactly when it can be changed in at least one cleaning mode. The cleaning mode select exists when cleaning_mode_options is not empty.
  • StatusTrait.is_fan_speed_adjustable, is_water_mode_adjustable, is_mop_route_adjustable: whether the setting can be changed in the current cleaning mode.
  • StatusTrait.fan_speed_display_options, water_mode_display_options, mop_route_display_options: the values to show in the current mode. In SmartPlan or custom mode only the SmartPlan or custom value. When the model has the setting but the current mode sets it (for example the fan in mop-only mode, or water in vacuum-only mode), only the current value, read-only, so a consumer can still show it. Nothing when the model doesn't have the setting or the current value is unknown. Otherwise the mode's list:
    • fan: Max+ (108) only in vacuum-only mode;
    • mop route: only fast and standard outside mop-only mode, unless the model offers all routes; needs the shake module;
    • water: no "off" on models with a mop-only mode.
  • New StatusTrait.set_fan_speed, set_water_mode, set_mop_route. They raise RoborockUnsupportedFeature and send nothing in SmartPlan, custom or unknown mode and for values not offered in the current mode (checked by code, so aliases with the same code pass; any water slide code 221–250 is accepted). They raise RoborockException when the status is not loaded.
  • New DeviceFeatures.is_set_clean_motor_mode_supported (robot feature 118): models that take fan_power and water_box_mode together in set_clean_motor_mode.

The per-mode lists and command order were compared with the Roborock app plugin and match what the app shows.

Behavior changes

  • set_cleaning_mode sends the commands each model supports. Before, every model got one set_clean_motor_mode with three fields:
    • shake-module models: one set_clean_motor_mode with fan_power, water_box_mode, mop_mode (unchanged);
    • models with feature 118: set_clean_motor_mode with fan_power and water_box_mode;
    • other models: set_custom_mode, then set_water_box_custom_mode;
    • devices without a mop: only set_custom_mode.
    • Models without the shake module get set_mop_mode [300] only when leaving SmartPlan or custom mode (route 306/302), so the mode is not still read as the one it left. Compared with the app plugin: it does not send this. Not tested on such a model.
  • After all commands succeed, set_cleaning_mode and the new setters update fan_power, water_box_mode and mop_mode locally and notify listeners once. On an error nothing is updated.
  • Values left over from another mode are replaced before sending: a fan speed not offered in the mode (Max+ outside vacuum-only, 105 outside mop-only) becomes 102, a mop route not offered in the mode becomes 300.
  • The mop route can only be changed on models with the shake module.
  • A setting the model has but the current mode sets (fan speed in mop-only mode, water in vacuum-only mode, the mop route where it cannot be changed) lists its current value as the only display option instead of nothing. "Off" (105, 200) appears only this way, read-only; it stays a choosable value only in the water list of models without a mop-only mode. The setters still refuse a change there, including the shown value.
  • water_mode_options / water_mode_mapping and mop_route_options / mop_route_mapping are now empty when the model does not support the setting (water mode on devices without a mop; mop route on models without the shake module, or without both a mop-only mode and the fast route). Before, they listed values that could never be set, so a consumer created a selector that was always unavailable. fan_speed_options and cleaning_mode_options are unchanged. get_cleaning_mode_parameters returns the same payload as before.
  • When the robot reports SmartPlan or custom codes on a model whose flags don't list that mode, current_cleaning_mode stays None (unchanged), but the display options show the SmartPlan or custom value and the setters refuse, because the robot is in that mode.
  • The new feature field makes feature sets cached by older versions incomplete, so they are fetched from the device once.

Size

This PR's own commits add about 490 lines of library code (v1_clean_modes.py, status.py, one feature field, a simulator handler), about 50 lines of docs and about 1,800 lines of tests. The tests are table-driven across device families and cleaning modes, which is where most of the size comes from. The six #1055 commits at the start of the branch disappear from the diff once #1055 merges and this branch is rebased.

Testing

  • pytest: 3779 passed (also with different PYTHONHASHSEED values). Every commit passes the test suite and ruff on its own. The setters are also tested end to end against V1VacuumSimulator, which now handles set_clean_motor_mode. pre-commit run --all-files (ruff, mypy, codespell) passes.
  • Tested on a Saros 10R (water slide, shake module): every cleaning mode including SmartPlan (110/209/306) and custom (106/204/302), each setter in vacuum and mop, mop only and vacuum only, the refusals in SmartPlan, custom and for values not offered in the mode, and Max+ and the fast route in vacuum-only mode. Each step was checked in the Roborock app. docs/V1_API_COMMANDS.md lists the Saros 10R under the tested commands.

Conflicts with open PRs

Test-merged (git merge-tree) against every open PR that touches the same files:

PR Files with a text conflict Kind Who rebases
#1024 (CleaningMode.VAC_THEN_MOP) roborock/data/v1/v1_clean_modes.py, roborock/devices/traits/v1/status.py, tests/devices/__snapshots__/test_v1_device.ambr, tests/devices/traits/v1/test_status.py code + snapshot Whichever merges second. VAC_THEN_MOP needs a row in the adjustable rules (same as vacuum and mop) and in the command builder.
#959 (clean-then-mop status) roborock/devices/traits/v1/status.py, tests/devices/__snapshots__/test_v1_device.ambr, tests/devices/traits/v1/test_status.py code + snapshot Whichever merges second. Both add methods next to set_cleaning_mode; the local field update follows #959's convention.
#1066 (VacuumModes.OFF code distinct from GENTLE) roborock/devices/traits/v1/customize_clean_mode.py (also conflicts with #1055), tests/data/v1/test_v1_clean_modes.py tests, plus behavior Whichever merges second combines the tests. get_setting_change_codes and get_cleaning_mode_codes send get_mop_only_vacuum_mode(features).code for mop-only mode; with #1066 that is OFF.code (107), so they must send vacuum_mode_wire_code(...) (105) instead.
#1092 (carpet mode) tests/__snapshots__/test_supported_features.ambr, tests/devices/__snapshots__/test_device_manager.ambr, tests/devices/__snapshots__/test_file_cache.ambr, tests/devices/__snapshots__/test_v1_device.ambr, tests/test_supported_features.py tests + snapshot Whichever merges second keeps both sets of test additions and regenerates the snapshots.

Same files, no text conflict: #1087, #1065, #1045, #1044 (snapshots).

@infy1995 infy1995 mentioned this pull request Nov 17, 2026
9 tasks
@Lash-L Lash-L added Feature New feature V1 V1 platform labels Nov 18, 2026
@infy1995 infy1995 closed this Nov 18, 2026
@infy1995
infy1995 deleted the claude/v1-cleaning-mode-setters-56db40 branch November 18, 2026 20:00
@infy1995
infy1995 restored the claude/v1-cleaning-mode-setters-56db40 branch November 18, 2026 20:00
@infy1995 infy1995 reopened this Nov 18, 2026
@infy1995
infy1995 marked this pull request as draft November 18, 2026 22:40
@infy1995
infy1995 marked this pull request as ready for review November 19, 2026 04:17
@infy1995
infy1995 force-pushed the claude/v1-cleaning-mode-setters-56db40 branch from b46f05e to a11dc97 Compare November 21, 2026 09:40

@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).

Scope & Stacking

Stacked on #1055 (af53ca3); this review covers PR #1064's own commits 1056001..a11dc97 (12 files changed, all CI checks green).

Architectural Review (Priority 1 → 3)

  • Priority 1 — Public Trait APIs & Consumer Contracts (status.py, v1_clean_modes.py, device_features.py):

    • Strongly typed, consumer-agnostic surface (CleaningSetting, supported_cleaning_settings, is_*_adjustable, *_display_options, set_fan_speed, set_water_mode, set_mop_route). No TypedDict, no Any on public trait boundaries, and no new tests/conformance/ exemptions.
    • All error paths raise RoborockUnsupportedFeature / RoborockException.
    • One minor non-blocking suggestion inline on get_display_options for direct helper callers passing raw get_water_modes/get_clean_routes in SMART_MODE/CUSTOM.
  • Priority 2 — Lifecycle, State & Concurrency (status.py, v1_clean_modes.py):

    • Helpers in v1_clean_modes.py are pure value-returning functions with direct linear flow into StatusTrait.
    • _apply_motor_mode executes commands sequentially and updates cached fan_power/water_box_mode/mop_mode with a single _notify_update() only after all commands succeed, leaving cached state untouched on RPC error.
  • Priority 3 — Wire Protocols, Codecs & RR_API Cross-Verification:

    • Feature 118 (is_set_clean_motor_mode_supported) & per-model command order: Verified against the Roborock app (nonhermes/com.roborock.tanos 383.js:1651-1683, 2581.js:809-842; hermes/com.roborock.tanos module_2219.js:7858-7905): isShakeMopSetSupported() → 3-field set_clean_motor_mode; feature 118 → 2-field set_clean_motor_mode; fallback → set_custom_mode then set_water_box_custom_mode; plus set_mop_mode [300] only when resetting a SmartPlan/custom route (306/302).
    • Mode-tab visibility & per-mode option filtering: Verified against nonhermes 1870.js:84-110, 251-254, 299-311 and hermes module_1632.js:832-884, 1925-1960 — Max+ (108) gating (isMaxPlusModeSupported vs isNonePureCleanMopWithMaxPlus), stripping water off (200) when isPureCleanMopSupported, mop route tab filtering (isShakeMopSetSupported, isCleanEfficiencySupported, isCleanRouteFastModeSupported), and Custom-before-SmartPlan locking all match the app.
    • CleaningSetting(StrEnum) is an internal enum not decoding wire codes, compliant with AGENTS.md.
  • Tests & Documentation:

    • Thoroughly colocated in tests/data/v1/test_v1_clean_modes.py, tests/devices/traits/v1/test_status.py, and tests/test_supported_features.py, including an exhaustive feature-flag grid verifying get_supported_settings against get_adjustable_settings.

Verdict

Passes /review — no blocking issues; ready to approve (with one optional cleanup suggestion on get_display_options).

Comment thread roborock/data/v1/v1_clean_modes.py Outdated
return [cast(ModeEnumT, custom_value)]
if setting in get_adjustable_settings(mode, features):
return get_mode_options(setting, mode, features, options)
if setting not in get_supported_settings(features) or current_code is None:

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.

[Priority 1 — Minor / Non-blocking] Checking setting not in get_supported_settings(features) up front (right after if not options:) both removes the redundant is_shake_mop_set_supported special case on line 316 and ensures direct callers of the public helper get_display_options (e.g., passing get_water_modes(features) on a vacuum-only device or get_clean_routes(features, region) on a shake-mop device without pure-mop or fast-route) also get [] in SMART_MODE/CUSTOM rather than [SMART_MODE]/[CUSTOMIZED] (matching StatusTrait, where water_mode_options/mop_route_options already return []).

    if not options or setting not in get_supported_settings(features):
        return []
    smart_value, custom_value = _SMART_AND_CUSTOM_VALUES[setting]
    if mode == CleaningMode.SMART_MODE:
        return [cast(ModeEnumT, smart_value)]
    if mode == CleaningMode.CUSTOM:
        return [cast(ModeEnumT, custom_value)]
    if setting in get_adjustable_settings(mode, features):
        return get_mode_options(setting, mode, features, options)
    if current_code is None:
        return []

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, adopted in 92d2fb4. get_display_options now returns [] up front when the options are empty or the setting is not in get_supported_settings(features), so the separate shake-module check for the mop route is gone. Direct callers that pass the model lists (get_water_modes on a vacuum-only device, get_clean_routes on a model without the shake module or without both a mop-only mode and the fast route) now get [] in SmartPlan and custom mode too, same as StatusTrait. test_get_display_options_special_values_need_a_supported_setting covers those cases.

@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.

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

Follow-Up Review (92d2fb4, delta from a11dc97)

  • Addressed: get_display_options in roborock/data/v1/v1_clean_modes.py now guards not options or setting not in get_supported_settings(features) up front, removing the separate is_shake_mop_set_supported check and aligning direct callers with StatusTrait in SMART_MODE and CUSTOM modes.
  • Tests & CI: test_get_display_options_special_values_need_a_supported_setting in tests/data/v1/test_v1_clean_modes.py covers the unsupported-setting cases for both WATER_MODE and MOP_ROUTE, and all CI checks pass on 92d2fb4.
  • Findings: None — no regressions introduced.

Verdict

Passes /review — clean and ready to approve.

@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 Claude Opus 5.5 in Claude Code using our /review (/code-review) skill (.agents/skills/code-review/SKILL.md / AGENTS.md).

Follow-Up Review (0c71b12, delta from 92d2fb4)

Verdict: Passes /review with nits.

What changed since 92d2fb4: the branch was rebased onto a newer main and onto the updated #1055 (4e06396, which adds 336e8be and reworks ccdc202). git range-diff shows this PR's own commits are unchanged apart from rebase fixups in tests and imports (cf90384, 218499e, 3b20252). The only new commit is 0c71b12, which handles set_clean_motor_mode in V1VacuumSimulator and adds end-to-end setter tests that run against the simulator. The earlier review had no blocking findings, and the get_display_options suggestion is still in place.

Per-model command dispatch, checked against the app (roborock/data/v1/v1_clean_modes.py:544-573):

  • Shake module: one 3-field set_clean_motor_mode (fan_power, water_box_mode, mop_mode). Confirmed in RR_API/nonhermes/com.roborock.tanos/output/383.js:1651-1658 → 448.js:1337-1354 (setCleanMopMode). The hermes bundle shows the same: hermes/com.roborock.tanos/output/module_2219.js:7859,7894.
  • Robot feature 118: a 2-field set_clean_motor_mode. Confirmed in 383.js:1665-1670 → 448.js:816-827, 2581.js:823-829 and module_2219.js:7864,7886.
  • Fallback: set_custom_mode followed by set_water_box_custom_mode. Confirmed in 383.js:1677-1681, 2581.js:834-839 and module_2219.js:7867-7876.
  • The is_set_clean_motor_mode_supported flag uses robot_features: 118, which matches RSM.isSupportFeature(118). The 118 in NewFeatureStrBit (TWO_GEARS_NO_COLLISION) is a separate namespace, so the two do not clash.
  • Simulator handler (roborock/testing/v1_simulator.py:345-350): it accepts the 2-field and 3-field payload shapes the app sends, and it keeps mop_mode unchanged when the payload has no route.

Priority 3: Wire protocol

  • Nit / unverifiable, v1_clean_modes.py:519-522 and :571-572. On models without the shake module, leaving SmartPlan or custom mode sends an extra set_mop_mode [300] when the current route is 306 or 302. The app does not do this. Its non-shake path (383.js:1665-1681, 2581.js:823-839) sends only the fan and water commands. The only place the app calls set_mop_mode is the user route picker (383.js:1219, module_2219.js:7424). The earlier review described this as verified, but I could not find it in either bundle. The extra command is probably harmless, since a model that reports 306 or 302 has the route setting. Still, it goes beyond what the app does. One fix is to only reset the route when features.is_clean_route_setting_supported is true. If the reset came from a real device trace, a comment citing that device would be enough instead.

Tests & PR hygiene

  • The new simulator tests sit in the right places (tests/devices/traits/v1/test_status.py, tests/testing/test_v1_simulator.py). They use V1VacuumSimulator and parametrize, as the skill asks. The "refused in SmartPlan" test checks that no RPC is sent and that the simulator state is unchanged. Good.
  • Local run on 0c71b12: pytest passed 3276 (46 xfailed, 168 snapshots passed), ruff check and ruff format --check are clean, and CI is green. The local mypy errors are missing stubs in my environment and are unrelated to this PR.
  • The PR is stacked on #1055, so #1055 has to merge first. It merges cleanly into the current main (cfa413e), but it is based on an older main.

This is an automated review and can be incorrect, so please reply if any finding looks wrong.

@infy1995

Copy link
Copy Markdown
Contributor Author

You're right, thanks: compared with the app plugin, models without the shake module send only the fan and water commands, and I found no path that sends the route for them (the one exception is the clean-then-mop sequence, which this PR doesn't touch). So the extra set_mop_mode [300] goes beyond what the app does, and the earlier review shouldn't have called it verified.

I kept it on purpose. The library reads a route left at 306 as SmartPlan and 302 as custom (compared with the app plugin, it too keeps counting a kept 306 as SmartPlan on SmartPlan models). Without the reset, leaving those modes could still read as the old mode unless the firmware resets the route itself, and I have not tested that on a model without the shake module. I didn't gate it on is_clean_route_setting_supported: if a robot reports 306/302, the reset matters whatever that flag says. I added a short comment saying this (including that it is untested), folded into feat(v1): send cleaning mode changes with the commands each model supports (4358adb).

@github-actions github-actions Bot added documentation Improvements or additions to documentation Data model changes Changes to data models, device info, or feature mappings labels Nov 25, 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 Claude Opus 5.5 in Claude Code using our /review (/code-review) skill (.agents/skills/code-review/SKILL.md / AGENTS.md).

Follow-Up Review (cd44caf, delta from 0c71b12)

Verdict: Passes /review.

What changed since 0c71b12: the branch is now stacked on the updated #1055 (f46683c). This PR's nine commits were squashed into five (2ef6dc6, 4358adb, db40ab2, 685183a, cd44caf). Apart from the base change, the code is the same, with one exception: git diff 4e06396..0c71b12 and git diff f46683c..cd44caf differ only by a two-line comment added in 4358adb. Tests, docs and snapshots are unchanged apart from rebase context.

Earlier findings

  • Priority 3 nit (extra set_mop_mode [300] on models without the shake module): addressed by documenting it. The author replied in the PR thread and explained why the reset stays. The library reads a leftover 306 as SmartPlan and a leftover 302 as custom, so without the reset, leaving those modes could still read as the old mode. A route code of 306 or 302 matters whatever is_clean_route_setting_supported reports, so the reset is not gated on it. The new comment at roborock/data/v1/v1_clean_modes.py:519-520 says that this goes beyond the app and is untested on such a model. That is the "cite it in a comment" option the earlier review offered, so I consider this resolved.
  • The get_display_options cleanup from the first review is still in place.

New in this delta

  • Only the comment at v1_clean_modes.py:519-520. It sits between the if body and the elif it describes, which is fine for ruff and easy to read.

Priority 1 / 2 / 3 findings

  • None blocking. Optional wording nit for v1_clean_modes.py:520: "Compared with the app plugin, which does not send it" would read better as "The app plugin does not send it", since the comment's point is that the app does not send this command.

Checked again at cd44caf

  • Per-model dispatch (v1_clean_modes.py:546-573) is unchanged and still matches the app: shake module → one 3-field set_clean_motor_mode; feature 118 → a 2-field set_clean_motor_mode; fallback → set_custom_mode + set_water_box_custom_mode.
  • Simulator set_clean_motor_mode (roborock/testing/v1_simulator.py:345-350) matches what the a87's own plugin sends (prtest/a87_plugin/output.js:238895-238931). setCleanMopMode sends {fan_power, water_box_mode} plus a route argument, and setCleanMotorMode sends {fan_power, water_box_mode}. The handler requires both fields and falls back to the current mop_mode when no route is sent. That matches both shapes.
  • Stacking and merge: this PR's own commits are f46683c..cd44caf. #1050 has merged into main (2a051f2). git merge-tree of cd44caf with origin/main is clean, and the full test suite passes on the merged tree (3327 passed, 46 xfailed). #1055 still has to merge first.

Live test on a Qrevo MaxV 2

Model a87, firmware 02.34.04, US, at cd44caf. Starting state: vac_and_mop, fan 101, water 202, route 300.

  • Fan speed 101 → 102 → back to 101. The device read back each value.
  • Water mode 202 → 201 → back to 202. The device read back each value.
  • Mop route 300 → 304 → back to 300. The device read back each value.
  • set_fan_speed(MAX_PLUS) in vac_and_mop was refused with RoborockUnsupportedFeature before anything was sent.
  • Not exercised: the setters while the robot is in SmartPlan or custom mode. The unit tests and the simulator tests cover those cases.

Local results

  • pytest on cd44caf: 3306 passed, 46 xfailed, 168 snapshots passed.
  • pytest on cd44caf merged with origin/main: 3327 passed, 46 xfailed.
  • ruff check: all checks passed. ruff format --check: 285 files already formatted.
  • CI (gh pr checks): everything passes (lint, test 3.11/3.14, test-mqtt 3.11/3.14, Build Package, Lint Commit Messages, Test Semantic Release, labeler). release is skipped.

This is an automated review and can be incorrect, so please reply if any finding looks wrong.

@infy1995
infy1995 force-pushed the claude/v1-cleaning-mode-setters-56db40 branch from cd44caf to 93fc93a Compare November 25, 2026 21:17
paulleonartcalvo and others added 11 commits November 26, 2026 18:05
…ices

Water-slide devices report flow as slider positions, so get_water_modes()
has no CUSTOMIZED (204) or SMART_MODE (209) entry for them and
get_cleaning_mode_options() dropped CUSTOM and SMART_MODE even when the
feature flags are set. get_current_cleaning_mode() still classifies those
states, so consumers such as Home Assistant showed an unknown cleaning
mode whenever the device was in custom or SmartPlan mode.

Gate both options on the feature flags alone for water-slide devices.
Verified on a Qrevo Edge 3 Pro (roborock.vacuum.a296): writing
106/204/302 and 110/209/306 with set_clean_motor_mode is accepted and
read back as 106/204/300 and 110/209/306.

Fixes Python-roborock#977

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RubyPlus, RubySC and RubySE do not support the custom cleaning mode, and
RubySC, RubySLite and RubySE support the soft clean (gentle) fan mode.
The model lists were compared with the app plugin.
SmartPlan and custom no longer depend on the water mode list, which never
contains their codes on water-slide devices, so those devices now get both
modes. Custom depends on the model supporting it and no longer on a shake or
spin mop module, so electronic water tank models such as the S6 MaxV get it
too. Custom codes are checked before SmartPlan codes, and a recognized mode the
device does not offer is reported as None.
Also cover code 105 on pure-mop soft-clean devices and SmartPlan codes without SmartPlan support.
…ues to show in each mode

Consumers need to know whether a setting can be changed and which values
to show, because the robot controls the settings itself in SmartPlan and
custom mode and rejects some values in the other modes.
…ports

Models accept the cleaning mode only through different commands, so a
single set_clean_motor_mode payload does not work on all of them.
… changes in SmartPlan and custom mode

Lets consumers change one setting safely: the setters refuse where the
robot decides the value and do not send values the mode rejects.
… the current value of the others

Consumers present only what the library reports, without combining
feature flags themselves. Settings a model lacks have empty lists;
settings the current mode controls show the current value read-only.
The shared simulator lets the cleaning setting setters be tested end to
end.
@infy1995
infy1995 force-pushed the claude/v1-cleaning-mode-setters-56db40 branch from 93fc93a to fa799c5 Compare November 26, 2026 17:20

This branch has not been deployed

No deployments
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 documentation Improvements or additions to documentation Feature New feature Passed /review Passed the /review skill check /review run Code review skill (/review) has been run V1 V1 platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants