Repository navigation
feat: add V1 dock types 48 and 50 and fix F2R, K1S and Hera dock capabilities - #1047
Conversation
Add dock type codes 48 (F1RC) and 50 (F2RS), app-name aliases for codes 27 and 49, the capabilities of codes 48-50, and three new dock properties. K1S gets automatic fluid delivery, Hera the hatch-door cool fan, and F2R no longer reports carousel self-cleaning, following the newest app plugins.
Lash-L
left a comment
There was a problem hiding this comment.
Automated code review by Gemini 4 Hydrogen in Antigravity using our /review (/code-review) skill (.agents/skills/code-review/SKILL.md / AGENTS.md).
Summary
No blocking issues or defects found — this PR is clean and ready to approve.
- Priority 1 & 2 (Public Contracts & Feature Gating —
roborock/device_features.py,docs/V1_DEVICE_FEATURES.md):- Verified all dock capability sets and properties (
is_no_support_hot_wash_towel,is_multi_clean_fluid_supported,is_clean_carousel_supported, and the updates forF2R,K1S,Hera,F1RC,F1RS,F2RS) against the Roborock app's 72 dock configurations (both AM and non-AM variants). Every capability matches the app's dock table and getters. is_special_support_wash_tempis accurately documented as covering the dock-only portion of the app's check.
- Verified all dock capability sets and properties (
- Priority 3 (Wire Codes & Enums —
roborock/data/v1/v1_code_mappings.py):- Verified all
RoborockDockTypeCodevalues (0–3, 5–11, 13–24, 26–35, 37–46, 48–50): no app dock codes are missing.f1rc_dock = 48andf2rs_dock = 50match the app names, and aliasesshell_4_dock = 27andf1rs_dock = 49preserve canonical.nameand iteration behavior.
- Verified all
- Tests & Tooling (
tests/test_supported_features.py):- Table-driven
@pytest.mark.parametrizetests cover the new codes, aliases, AM/non-AM variants, and changed capabilities. pytest tests/test_supported_features.py tests/conformance/(541 passed, 53 xfailed, 11 snapshots passed) andruff checkon the changed Python files pass.
- Table-driven
| ### is_no_support_hot_wash_towel | ||
| **Docks:** Shell E | ||
| **Description:** The dock cannot wash mops with hot water. The app hides hot mop washing for these docks even when | ||
| `DeviceFeatures.is_hot_wash_towel_supported` is true. |
There was a problem hiding this comment.
Instead of adding a separate boolean that needs to be checked, can we make is_hot_wash_towel_supported accurate instead?
There was a problem hiding this comment.
Agreed, consumers should not have to combine two flags. I removed is_no_support_hot_wash_towel in 12ccf50.
I did not change is_hot_wash_towel_supported itself. It comes from the robot firmware and is cached with the device features, while the dock type is only known at runtime and can change when the dock is swapped. Folding the dock into that cached field would store dock-specific state. Its docs now say the Shell E dock cannot wash with hot water.
The dock check goes where the library knows both the robot and the dock: in the mop wash PR (#1045), the wash water temperature trait will not be created on Shell E docks. Consumers then only need to check whether that trait exists.
is_hot_wash_towel_supported stays the robot firmware signal and its docs now say the Shell E dock cannot wash with hot water. The wash water temperature trait will check the dock instead, so consumers do not need to combine two flags.
Lash-L
left a comment
There was a problem hiding this comment.
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 (6c87b48 → 12ccf50)
No blocking issues or defects found — this PR remains clean and passes /review.
- Priority 1 & 2 (Public Contracts, Lifecycle & Feature Gating —
roborock/device_features.py,docs/V1_DEVICE_FEATURES.md):- Dropping
_NO_HOT_WASH_TOWEL_DOCK_TYPESandRoborockDockFeatures.is_no_support_hot_wash_towelavoids exposing a negative dock flag that consumers would have to combine manually withDeviceFeatures.is_hot_wash_towel_supported. - Cross-verified against the Roborock app bundle:
noHotWashTowel: trueis set only onShellE(dockType: 21,hasAM: false) andShellEA(dockType: 21,hasAM: true), andDock.isNoSupportHotWashTowelhas only a single caller (FM.isHotWashTowelSupported(), which combines firmware bit 41 with!Dock.isNoSupportHotWashTowel). - Keeping
DeviceFeatures.is_hot_wash_towel_supportedas the pure cached firmware bit (with the Shell E caveat documented indocs/V1_DEVICE_FEATURES.md) and gating the wash water temperature trait where bothDeviceFeaturesand runtimedock_typeare available avoids mixing runtime dock state into cached device features and introduces no regression (is_hot_wash_towel_supportedis not yet consumed by any trait onmain).
- Dropping
- Tests & CI (
tests/test_supported_features.py):- Removed obsolete test cases cleanly with no leftover references; all CI checks (
lint,Lint Commit Messages,test,test-mqtt,Build Package,Test Semantic Release) are green on12ccf50.
- Removed obsolete test cases cleanly with no leftover references; all CI checks (
Lash-L
left a comment
There was a problem hiding this comment.
values appear to be correct
Summary
Adds the V1 dock types that the library did not know and fixes three dock capabilities, so dock options can be gated on the right dock.
f1rc_dock = 48andf2rs_dock = 50. Until now these codes fell back tounknown, so the dock counted as missing and no dock traits were offered.shell_4_dock(27) andf1rs_dock(49).type_27_dockandtype_49_dockstay the canonical names, so.name,keys()and existing code are unchanged.is_multi_clean_fluid_supported(Shell 4S without AM).is_clean_carousel_supported(dock has a carousel/strainer).is_hot_wash_towel_supportednow say that it is reported by the robot firmware and does not account for the dock: a Shell E dock cannot wash with hot water. The mop wash PR (feat: add V1 dock mop wash settings and tray self-clean #1045, not merged yet) will not offer the wash water temperature on Shell E docks, so consumers will not need a separate flag.docs/V1_DEVICE_FEATURES.md. It explains that the "A"/"AM" dock variants (Shell 2SA, O5AM, ...) are not separate codes: they report the samedock_typeand differ byStatus.has_am.The dock list and capabilities were compared with the dock table in the newest Roborock app V1 plugins and now match it.
Changed existing values
These results change for docks the library already knew.
is_clean_carousel_self_clean_supportedis_clean_fluid_auto_delivery_supportedis_hatch_door_dock_cool_fan_supportedKnown difference, not changed here
is_special_support_wash_tempis True only for the Shell 2E Lite dock. Whether wash temperature is offered also depends on the product: every product except the PearlE Pro gets it, and the PearlE Pro only with a Shell 2E Lite dock. The library does not use this property yet. It will be fixed when the wash temperature options start using it.Testing
tests/test_supported_features.pyfor each new code and changed value, with and without AM, and for the aliases.pre-commit run --all-filesand the fullpytestsuite pass.Part of #738