You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add S7 MaxV camera preflight with normal region settings - #185
S7 MaxV (roborock.vacuum.a27, firmware 02.59.36) can stream through the local server with a short token.r on port 443 while keeping country_domain=eu. Camera preflight currently only runs when country_domain contains a slash, so this working configuration skips the camera checks.
Add --camera to explicitly run camera preflight without changing the region, and recognize a27 as using the token endpoint. For example, --server https://api-vac.cc:443 --camera --country-domain eu checks vac.cc:443 before pairing. Existing camera-domain behavior and ordinary non-camera pairing are preserved.
Hardware validation used server base c3b3284, provided coturn, and a provided RSA-2048 Let's Encrypt certificate covering the API and bootstrap aliases. The robot's Internet access remained blocked at the router throughout:
The existing remote-view PIN was accepted. Charging rejected preview with -10011 (robot in charge, denied preview).
Off-dock preview initially returned -10014 (request turnserver failed). After configuring the camera-capable server and re-pairing with the short token endpoint, go2rtc 1.9.14 received 640×480 H.264 video.
A test-only go2rtc build (c245815, Roborock peer configuration set to Pion ICETransportPolicyRelay) decoded 240 frames over 20 seconds through the local relay, with no decoder errors reported in that sample.
Normal status and saved-map access still worked afterward. Audio and remote driving were not tested.
Validation: 406 pytest tests passed; mkdocs build --strict passed; the new a27 preflight passed against the live local server. Regression tests cover preserving the region, checking only the token endpoint, rejecting a long token, blocking pairing when TURN is disabled, and leaving ordinary pairing unaffected.
Another data point for this PR: S8 MaxV Ultra (roborock.vacuum.a97, firmware 02.39.60, US) also bootstraps the camera from token.r while keeping the normal region.
First pairing:--server api-myvac.example.com:555 --country-domain us, which gives token.r = myvac.example.com:555/. That is within MAX_STACK_SERVER_LENGTH = 32 (start_onboarding.py L44) but longer than 15 characters.
Everything except video worked.
The server never logged a fwapi/createca request from the robot.
Onboarding gave no warning, because camera preflight returns early when country_domain has no / (onboarding_shared.py L112-L113). That is the case --camera fixes.
Re-paired:--server api-r.vacex.cc:555 --country-domain us, with no --camera-domain. This gives token.r = r.vacex.cc:555/, exactly 15 characters with the port kept.
On the first view request, the robot called https://r.vacex.cc:555/iot.roborock.com/fwapi/createca.
Live view in the official iOS app (existing remote-view PIN) then worked on the LAN with provided TURN.
Status, maps, rooms and HA were unchanged.
Certificate: a provided ZeroSSL SAN certificate covering both api-r.vacex.cc and r.vacex.cc. I kept an older, longer API hostname for existing clients, so the single-base wildcard from cloudflare_acme didn't fit. A fresh setup with base_domain = vacex.cc should work too.
Suggestion: add roborock.vacuum.a97 alongside a27/a87 in camera_bootstrap_endpoints (L145-L157) and next to them in docs/camera.md. Optionally, print a non-fatal hint when TURN is enabled, --camera was not passed, and token.r is longer than 15 characters. That is how I would have caught this on the first pass.
I can push a follow-up commit or PR for a97 if that's easier.
Lash-L
added
area: camera
Camera activation, live video, audio and TURN/WebRTC.
area: onboarding
Device pairing, bootstrap and migration to the local server.
feature
PR adding capability; under this two-type scheme also covers additive documentation.
labels
Nov 15, 2026
This PR has merge conflicts with main, so I've converted it to draft and added the needs rebase label.
Please rebase onto the current main. Several docs and routine changes have landed recently, including #205 and #264. Then mark it ready for review again, and it will go through the automated review before a human review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
area: cameraCamera activation, live video, audio and TURN/WebRTC.area: onboardingDevice pairing, bootstrap and migration to the local server.featurePR adding capability; under this two-type scheme also covers additive documentation.needs rebaseRebase requested or merge conflicts observed; remove after resolution.
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
S7 MaxV (
roborock.vacuum.a27, firmware02.59.36) can stream through the local server with a shorttoken.ron port 443 while keepingcountry_domain=eu. Camera preflight currently only runs whencountry_domaincontains a slash, so this working configuration skips the camera checks.Add
--camerato explicitly run camera preflight without changing the region, and recognize a27 as using the token endpoint. For example,--server https://api-vac.cc:443 --camera --country-domain euchecksvac.cc:443before pairing. Existing camera-domain behavior and ordinary non-camera pairing are preserved.Hardware validation used server base
c3b3284, provided coturn, and a provided RSA-2048 Let's Encrypt certificate covering the API and bootstrap aliases. The robot's Internet access remained blocked at the router throughout:-10011(robot in charge, denied preview).-10014(request turnserver failed). After configuring the camera-capable server and re-pairing with the short token endpoint, go2rtc 1.9.14 received 640×480 H.264 video.c245815, Roborock peer configuration set to PionICETransportPolicyRelay) decoded 240 frames over 20 seconds through the local relay, with no decoder errors reported in that sample.Validation: 406 pytest tests passed;
mkdocs build --strictpassed; the new a27 preflight passed against the live local server. Regression tests cover preserving the region, checking only the token endpoint, rejecting a long token, blocking pairing when TURN is disabled, and leaving ordinary pairing unaffected.Related investigation: #140