Skip to content

feat: Add T2320 room discovery from metadata DPS#419

Open
Cloudore wants to merge 2 commits into
damacus:mainfrom
Cloudore:cloudore/upstream-t2320-room-discovery
Open

feat: Add T2320 room discovery from metadata DPS#419
Cloudore wants to merge 2 commits into
damacus:mainfrom
Cloudore:cloudore/upstream-t2320-room-discovery

Conversation

@Cloudore
Copy link
Copy Markdown

Summary

  • decode T2320 room metadata from DP165 (protobuf payload) and expose discovered rooms via room_names attributes
  • bootstrap room names once from Tuya cloud (tuya.m.device.dp.get) when local DPS payloads are not yet available
  • include Eufy credentials in vacuum entity setup so cloud room discovery can run

Why

On T2320, room labels (for room clean targeting) live in metadata DPS payloads and may be unavailable locally at startup. This adds reliable room discovery without changing other cleaning control behavior.

Decode T2320 room metadata payloads and expose room_names, with a one-time Tuya cloud bootstrap path to populate rooms when local DPS data is not yet available.
@Cloudore
Copy link
Copy Markdown
Author

This PR is more aimed at giving a clear view of how to recursively get room names and codes with just the Eufy credentials.

This is working on my T2320 now and the rooms are being passed to HA, however, my repo is different from this one as it is heavily modified by AI for my vacuum.

But I think how my vibecoded repo decoded room names from the cloud would still be useful. Sorry if not.

Introduce a per-model room discovery strategy layer with local and cloud discovery hooks so additional vacuums can be onboarded without changing core update flow. Keep T2320 mapped to the existing DP165 decoder and Tuya cloud fallback.
bdamokos added a commit to bdamokos/robovac that referenced this pull request May 14, 2026
Based on the room discovery work from damacus#419, but keeps T2320 room metadata on DPS 165 and selected-room commands on DPS 152 so DPS 168 remains consumables.
bdamokos added a commit to bdamokos/robovac that referenced this pull request May 14, 2026
Based on the room discovery work from damacus#419, but keeps T2320 room metadata on DPS 165 and selected-room commands on DPS 152 so DPS 168 remains consumables.
bdamokos added a commit to bdamokos/robovac that referenced this pull request May 14, 2026
Based on damacus#419's DPS 165 room discovery and Tuya cloud fallback approach.

Adds selected-room support using DPS 152 ModeCtrlRequest payloads. Later room-clean experiments tried DPS 168 with DPS 152, but this branch keeps DPS 168 reserved for consumable telemetry.
@damacus damacus changed the title Add T2320 room discovery from metadata DPS feat: Add T2320 room discovery from metadata DPS May 17, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant