Skip to content

chore: add Qrevo S Pro device data - #1052

Merged
Lash-L merged 1 commit into
Python-roborock:mainfrom
lacroixdavid1:add-qrevo-s-pro-device-data
Nov 21, 2026
Merged

Lash-L merged 1 commit into
Python-roborock:mainfrom
lacroixdavid1:add-qrevo-s-pro-device-data

Conversation

@lacroixdavid1

Copy link
Copy Markdown
Contributor

Adds the device_info.yaml entry for the Qrevo S Pro (roborock.vacuum.a326), which the catalogue does not have yet.

  • Source: the Home Assistant diagnostics of my robot (Home Assistant 2026.11.1, python-roborock 7.12.0, robot firmware 02.49.24).
  • How it was built: I did not run the CLI. A small script took the fields roborock get-device-info --diagnostic-file reads, in the same order, and dumped them the same way (yaml.safe_dump(sort_keys=False)). Re-dumping the 16 existing entries that way gives each of them back byte for byte. The entry is appended at the end of the file, as in chore: add Saros 10R device info #1031.
  • product.name is **REDACTED** because the diagnostics redact it. Home Assistant shows the robot as "Qrevo S Pro Series".
  • product_nickname is Unknown, which is what main gives this model today. feat: add V1 product nicknames for models that fall back to PEARLPLUS #1046 maps a325/a326 to PEARLEH; I can update the line here if that lands first.
  • The schema is the Qrevo 2 Pro's (a294) without data point 143, and with a plain "0" to "9" range on 138 (clean_task_type).

Only device_info.yaml changes. SUPPORTED_FEATURES.md is not regenerated here, as in #1028 and #1031.

Done with AI assistance.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MDuicnBiqDx6Yc8hyG6p1o

Add the device_info.yaml entry for the Qrevo S Pro (roborock.vacuum.a326),
built from the Home Assistant diagnostics of a robot on firmware 02.49.24.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MDuicnBiqDx6Yc8hyG6p1o
@Lash-L Lash-L added Small PR Small pull request (<200 lines) Data model changes Changes to data models, device info, or feature mappings V1 V1 platform labels Nov 18, 2026

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

Thanks for adding the Qrevo S Pro. I checked the new entry against the Qrevo 2 Pro (a294) on main and it matches that schema exactly except for data point 143, which you already call out in the description, and the feature_info and new_feature_info values line up too. Appending the entry at the end of the file follows the existing convention.

Two small questions, neither blocking:

  1. Data point 143 (map_diff) is present on the Qrevo 2 Pro but missing here. Is it genuinely absent from the S Pro's diagnostics, or was it dropped by the dump script? A quick look at the raw diagnostics would settle it.

  2. clean_task_type (138) has a bare "0" to "9" range here, while the Qrevo 2 Pro carries the documented label for each value ("0 空闲", "1 全屋清洁", "2 选区清洁", and so on through "9 整理"). If the S Pro's values mean the same things, carrying the labels over would keep the file consistent. If the S Pro's dump genuinely reports bare numbers, it is fine as is.

One related note: open PR #1046 maps a325 and a326 to PEARLEH in the V1 code mappings, so these two PRs are related. This one touches device_info.yaml and that one touches the code mappings, so they do not conflict, but it is worth knowing the order they land in.

I also noticed the product id is redacted here. The product name redaction has precedent in the file (a123 and a27 both redact the name), but no entry redacts the id, so a future re-dump check would need the real id. Not a problem for this PR, just noting it.

Approving: the entry looks right, and the points above are questions rather than defects.

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

Review Summary

Scope: Data-only addition to device_info.yaml (+144 lines) adding the Qrevo S Pro (roborock.vacuum.a326).

  • Priority 1 (Public Trait APIs & Consumer Contracts): No changes; N/A.
  • Priority 2 (Data Lifecycle & State Management): No changes; N/A.
  • Priority 3 (Wire Protocols, Codecs & Cryptography): No changes; N/A.
  • Data, Schema & Privacy Verification:
    • Format & Deserialization: Valid YAML matching yaml.safe_dump(..., sort_keys=False) output of roborock get-device-info --diagnostic-file byte-for-byte, with all embedded JSON property strings valid. Verified deserialization through HomeDataProduct.from_dict() (RoborockCategory.VACUUM, 21 schema entries) and DeviceFeatures.from_feature_flags() (110 supported features resolved cleanly).
    • Privacy / Redaction: No personal or device-unique data present (no DUIDs, tokens, local keys, MACs, SSIDs, IPs, emails, or serial numbers). product.name is '**REDACTED**' (matching existing a123 and a27 entries), and product.id (4Snq4xVLaWSyq2PjbSGV1j) is the shared cloud product ID (consistent with all other product entries in device_info.yaml).
    • Conventions: Appending to device_info.yaml without regenerating SUPPORTED_FEATURES.md matches recent precedents (#1028, #1031); product_nickname: Unknown matches main today (pending #1046 mapping a325/a326 to PEARLEH); Conventional Commit title/message and hygiene checks pass.

Verdict: Clean — no defects found after adversarial self-check; ready to approve.

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

@Lash-L
Lash-L merged commit 71fde3b into Python-roborock:main Nov 21, 2026
9 checks passed
@lacroixdavid1

Copy link
Copy Markdown
Contributor Author

Thanks for the merge!

For the record, on the review questions: 143 is genuinely absent (the schema in the raw Home Assistant diagnostics stops at 142, publish_dsp), and 138 is a bare "0" to "9" range at the source too, so both were kept as reported. #1046 now sets PEARLEH on the a326 line as well, so nothing else is needed here.


Generated by Claude Code

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