Skip to content

docs: document map-edit, customised clean, timer and retry commands - #1035

Merged
allenporter merged 1 commit into
Python-roborock:mainfrom
art804:docs/v1-map-edit-commands
Nov 24, 2026
Merged

allenporter merged 1 commit into
Python-roborock:mainfrom
art804:docs/v1-map-edit-commands

Conversation

@art804

@art804 art804 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Fills in several empty or missing entries in docs/V1_API_COMMANDS.md: save_map, carpet areas, door sills, Remove-tool areas, floor material, customised (per-room) cleaning, room cleans with per-room settings, map backup, device timers, and the need_retry / retry_request handshake.

Everything comes from local app traffic captured on a Saros 20 (firmware 02.57.88), with the map read back after each edit. Entries say where something is inferred rather than seen. Example coordinates are made up.

AI disclosure: the captures were decoded and this text was written with Claude (Anthropic's AI assistant), checked against the captured traffic before submitting.

🤖 Generated with Claude Code

Fill in or add V1 command entries from local app traffic captured on a
Saros 20 (firmware 02.57.88): save_map, set_carpet_area,
app_set_smart_door_sill, app_set_beautify_blocks, start_edit_map,
set_segment_ground_material, get/set_customize_clean_mode,
app_segment_clean_subdivision, app_start, manual_bak_map, set_timer,
upd_timer, del_timer and the retry_request handshake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@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

This documentation-only PR (docs/V1_API_COMMANDS.md, +245 / -12) is clean, well-scoped, and accurate. No blocking issues or factual inaccuracies survived adversarial review.

Protocol & Schema Verification

All documented RPC names, payload structures, key names, value types, and bitfields were cross-checked against the Roborock Android app bundles (including the Saros 20 bundle) and roborock/roborock_typing.py:

  • Retry handshake (retry_request, need_retry: 1): Matches the app's RPC retry wrapper — wraps array parameters as {"data": [...], "need_retry": 1} for retry-enabled commands (including save_map, set_timer, and set_customize_clean_mode) and polls retry_request with {"retry_id", "retry_count", "method"} every 2 seconds on ["retry"].
  • Per-room cleaning (app_segment_clean_subdivision, get_customize_clean_mode, set_customize_clean_mode): Matches the app's payload keys (data, id, fan_power, water_box_mode, mop_mode, seq_type, repeat, wash_mode, need_wash, clean_order_mode, is_new_clean, auto_dustCollection, auto_dry).
  • Map editing (start_edit_map/end_edit_map, save_map, set_carpet_area, app_set_smart_door_sill, app_set_beautify_blocks, set_segment_ground_material, manual_bak_map):
    • save_map: Zone type tags (0 no-go, 1 invisible wall, 2 no-mop) and [100, map_flag] trailer match.
    • set_carpet_area: Parallel zone_data/flags schema and flags bit layout (bits 7–14 carpetId, bit 15 deepClean, bits 20–22 cleanMode) match the app's MapCarpetCleanFlags definition.
    • app_set_smart_door_sill: Keys (map_index, zones, attrs, sides_infos, side_heights) match.
    • app_set_beautify_blocks: Keys (map_index, data) and type 0 prefix match.
    • set_segment_ground_material: Material/direction pairs (0, -1 default; 3, 0|90 wood; 4, -1 tile) and partial-update behavior match.
    • manual_bak_map: {"map_flag": 0} matches.
    • start_edit_map / end_edit_map: [] params and error-ignoring behavior match.
  • Timers (set_timer, upd_timer, del_timer): Wire formats (set_timer with need_retry: 1, upd_timer with ["<timer id>", "on"|"off"], del_timer with ["<timer id>"]) match ("on" is confirmed as the counterpart to "off" in the app).
  • TOC & links: All Table of Contents anchor links resolve to existing headings with no duplicate sections.

Verdict

Passes /review with zero surviving findings — ready to merge.

@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 for the docs update!

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

Labels

documentation Improvements or additions to documentation 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