Repository navigation
feat(camera): provide TURN relay and validate firmware bootstrap - #155
Merged
Merged
Conversation
…ra_domain in web ui
…ose turn_ttl in addon schema
…or camera bootstrap
- Keep package and add-on versions at 1.2.1 and leave the unused beta add-on untouched; version bumps and image publishing belong in a release PR. - Drop the never-released HA turn_enabled option and show turn_mode (default disabled) in the add-on options. config.toml still reads the [turn] enabled = true form from #144 as external mode. - Lowercase turn.mode before choosing the provided-mode username default. - createca docstring and known limitations now describe the model-specific bootstrap host (a144 country_domain, a87 token.r) instead of a single rule. - Remove stray blank lines and a placeholder-free f-string.
Lash-L
force-pushed
the
feat/camera-turn-ha-onboarding
branch
from
October 12, 2026 17:16
0139b35 to
da736a0
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Builds on #144 (merged), which added the
/fwapi/createcaroute and the[turn]config.Camera previews can fail after successful vacuum onboarding because firmware uses different bootstrap hosts: the tested Qrevo MaxV (a87) uses the stripped
token.rhostname and its explicit port, while the Saros 10R (a144) usescountry_domain. This change adds disabled/provided/external TURN modes and validates the selected model's actual camera endpoint before sending Wi-Fi settings.Changes
[turn] mode = disabled | provided | externalreplaces the boolean from feat(camera): answer the robot's fwapi/createca TURN request for live video (#18) #144;enabled = truewithout amodeis still read as external. Provided mode starts coturn in the container, reports relay health in status, and keeps HTTPS/MQTT running if the relay fails. Cleanup also runs after partial supervisor startup. Relay logs go to container stdout.compose.turn.yamloverlay, or explicit Home Assistant Network mappings (unpublished by default). The HA add-on exposesturn_mode(defaultdisabled), generates and persists a password for provided mode, and rejects custom listener ports in provided mode.docs/camera.mdcovers model-specific DNS/TLS requirements, certificate renewal choices, drawing-pattern PIN conversion, TURN mappings and troubleshooting.No version bumps: package and add-on versions stay at 1.2.1 and the beta add-on is untouched. Releasing this (version bump, changelog, image publish) is a separate release PR.
Validation
git diff --checkpasses.Limits
Only a87 and a144 bootstrap behavior is established. Preflight runs from the onboarding computer and cannot prove the robot's DNS visibility or UDP media connectivity. Supplied/proxy certificates need their own renewal arrangement; Actalis automatic issuance covers only the API hostname.