From de65cf5dd25c26c33b50e23d530343dd72209097 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 28 Nov 2026 22:53:13 -0500 Subject: [PATCH] Prepare v1.3.0-rc1 in the Beta add-on Bump the package to 1.3.0-rc1 and point the opt-in Beta add-on at it. The Beta add-on config is re-synced from stable so it gets the TURN options and UDP ports added since 1.1.0-rc2. The stable add-on stays on 1.2.1. Co-Authored-By: Claude Opus 5.5 --- docs/home_assistant.md | 4 +- docs/updating.md | 2 +- pyproject.toml | 2 +- roborock_local_server_beta_addon/CHANGELOG.md | 30 +++++++++- roborock_local_server_beta_addon/DOCS.md | 33 ++++++++-- roborock_local_server_beta_addon/config.yaml | 60 ++++++++++++++++++- src/roborock_local_server/__init__.py | 2 +- uv.lock | 2 +- 8 files changed, 120 insertions(+), 15 deletions(-) diff --git a/docs/home_assistant.md b/docs/home_assistant.md index 68ed61ba..f4d19a0a 100644 --- a/docs/home_assistant.md +++ b/docs/home_assistant.md @@ -62,8 +62,8 @@ If you need the MITM protocol sync secret for the Roborock app flow, sign in to ### Beta add-on -**Roborock Local Server Beta** is currently unused and remains on `1.1.0-rc2`. -Install **Roborock Local Server** for the stable `1.1.0` release. +**Roborock Local Server Beta** carries the `1.3.0-rc1` prerelease for testing. +Install **Roborock Local Server** for the stable `1.2.1` release. Beta and stable keep separate data. See [switching from Beta to stable](updating.md#switching-from-beta-to-stable) if you tested an RC using the Beta add-on. diff --git a/docs/updating.md b/docs/updating.md index c67b75fa..af8e61b6 100644 --- a/docs/updating.md +++ b/docs/updating.md @@ -76,7 +76,7 @@ The add-on does not automatically rewrite Home Assistant's Roborock integration ### Switching From Beta To Stable -The Beta add-on is currently unused. For `1.2.1`, use **Roborock Local Server**. +The Beta add-on carries the `1.3.0-rc1` prerelease. The stable release is `1.2.1`, in **Roborock Local Server**. Back up Beta before switching, then stop it and disable **Start on boot** before starting stable on the same ports. diff --git a/pyproject.toml b/pyproject.toml index 075c7a05..cd85d9c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "roborock-local-server" -version = "1.2.1" +version = "1.3.0-rc1" description = "private local Roborock server stack." requires-python = ">=3.11,<3.14" readme = "README.md" diff --git a/roborock_local_server_beta_addon/CHANGELOG.md b/roborock_local_server_beta_addon/CHANGELOG.md index 240a7ca0..20256a49 100644 --- a/roborock_local_server_beta_addon/CHANGELOG.md +++ b/roborock_local_server_beta_addon/CHANGELOG.md @@ -1,6 +1,34 @@ # Changelog -Beta is currently unused. Use **Roborock Local Server** for the stable `1.2.1` release. +## 1.3.0-rc1 + +Prerelease of everything merged since `1.2.1`. The stable **Roborock Local Server** add-on stays on `1.2.1`. + +New: +- Server-side schedules that run the way the Roborock cloud runs them. +- Each robot's last-known state, served at `/user/devices/{duid}/last_known`. +- Live camera video: the server answers the robot's TURN request and can provide its own TURN relay (`turn_mode`, off by default). +- Voice pack lists and packages are proxied for clients that pass the server's URL to the robot. +- Opt-in forwarding of a robot's Matter key request to the Roborock cloud (off by default). +- TLS listeners reload when the provided certificate or key files change, without dropping vacuum connections. +- Refresh the app plugin catalogs on demand with the stored cloud login. + +Fixed: +- A certificate renewal check could crash the MQTT TLS listener with "Address already in use" and take vacuums offline. +- The MQTT TLS handshake now runs off the accept loop with a timeout, so one stalled client can't block new connections. +- Access renewal on newer firmware (`/devices/{did}/sh`) and signed or V2-signed device info uploads. +- A vacuum's device record is only updated from its own MQTT login, and same-model vacuums are mapped by their learned DID/DUID pairs. +- The device time zone defaults to the server's, and the firmware version an onboarded vacuum reports is used. +- Many Roborock app responses: product details, agreements, device order, scene order and edits, room creation, the device plugin (including iOS and map loading), and activity and recommendation pages. +- Routines no longer send unset (`-1`) scene settings, and fan power from `set_clean_motor_mode` is kept. +- Up to 64 protocol login sessions are kept instead of 8. +- Service logs and HTTP/MQTT traces are size-limited, and MQTT CONNECT/AUTH packets are logged without their bytes. +- Updated container security dependencies. + +Known issues: +- Routines can still fail with `-10005` on robots in SmartPlan mode (#249). + +Beta has its own settings and data. Existing Beta installs keep their settings when updating; a new Beta install needs its own cloud import and pairing. ## 1.1.0-rc2 diff --git a/roborock_local_server_beta_addon/DOCS.md b/roborock_local_server_beta_addon/DOCS.md index c32e6443..c164a104 100644 --- a/roborock_local_server_beta_addon/DOCS.md +++ b/roborock_local_server_beta_addon/DOCS.md @@ -1,9 +1,30 @@ # Roborock Local Server Beta -**Currently unused.** Install **Roborock Local Server** for the stable `1.1.0` -release. This Beta entry remains on `1.1.0-rc2` for existing installations and -future prerelease testing. +This is an opt-in prerelease for testing the next release. Version `1.3.0-rc1` +contains everything merged since `1.2.1`; see the changelog for the list. -Beta and stable have separate settings and data. Follow -[switching from Beta to stable](https://python-roborock.github.io/local_roborock_server/updating/#switching-from-beta-to-stable) -if you used Beta during RC testing. +The stable **Roborock Local Server** add-on remains on `1.2.1`. Installing or +updating that add-on does not select this prerelease. Beta is a separate add-on, +with its own settings, cloud import, keys, and persistent `/data` directory. + +## Installing + +1. Wait until the `v1.3.0-rc1` GitHub prerelease has published its container image. +2. Back up the stable add-on, then stop it and disable **Start on boot**. Beta + uses the same ports, so only one of them can run at a time. +3. Install **Roborock Local Server Beta** from the add-on store, configure it the + same way as stable, and start it. +4. Open the admin dashboard, run the cloud import, and pair your vacuum again. + +To go back, stop Beta and start stable. See +[switching from Beta to stable](https://python-roborock.github.io/local_roborock_server/updating/#switching-from-beta-to-stable). + +## What to check + +- The vacuum connects and stays connected across a certificate reload and an + add-on restart. +- App control, maps and routines work as before. +- Any schedules you rely on run at the expected time. + +Report problems with the model, firmware, Beta version and what stopped working. +Redact credentials from any logs you share. diff --git a/roborock_local_server_beta_addon/config.yaml b/roborock_local_server_beta_addon/config.yaml index 5b380a0b..5038b884 100644 --- a/roborock_local_server_beta_addon/config.yaml +++ b/roborock_local_server_beta_addon/config.yaml @@ -1,7 +1,7 @@ name: Roborock Local Server Beta -version: "1.1.0-rc2" +version: "1.3.0-rc1" slug: roborock_local_server_beta -description: Currently unused. Install Roborock Local Server for the stable release. +description: Opt-in prerelease testing of the next Roborock local server release. stage: experimental url: "https://github.com/Python-roborock/local_roborock_server" image: "ghcr.io/python-roborock/local_roborock_server" @@ -14,9 +14,51 @@ arch: ports: 555/tcp: 555 8881/tcp: 8881 + 3478/udp: null + 49160/udp: null + 49161/udp: null + 49162/udp: null + 49163/udp: null + 49164/udp: null + 49165/udp: null + 49166/udp: null + 49167/udp: null + 49168/udp: null + 49169/udp: null + 49170/udp: null + 49171/udp: null + 49172/udp: null + 49173/udp: null + 49174/udp: null + 49175/udp: null + 49176/udp: null + 49177/udp: null + 49178/udp: null + 49179/udp: null ports_description: 555/tcp: Roborock HTTPS API 8881/tcp: Roborock MQTT TLS proxy + 3478/udp: TURN/STUN listener + 49160/udp: TURN media relay + 49161/udp: TURN media relay + 49162/udp: TURN media relay + 49163/udp: TURN media relay + 49164/udp: TURN media relay + 49165/udp: TURN media relay + 49166/udp: TURN media relay + 49167/udp: TURN media relay + 49168/udp: TURN media relay + 49169/udp: TURN media relay + 49170/udp: TURN media relay + 49171/udp: TURN media relay + 49172/udp: TURN media relay + 49173/udp: TURN media relay + 49174/udp: TURN media relay + 49175/udp: TURN media relay + 49176/udp: TURN media relay + 49177/udp: TURN media relay + 49178/udp: TURN media relay + 49179/udp: TURN media relay map: - ssl:ro - addon_config:rw @@ -43,6 +85,13 @@ options: admin_password: "" protocol_login_email: "" protocol_login_pin: "" + turn_mode: "disabled" + turn_host: "" + turn_port: 3478 + turn_username: "" + turn_password: "" + turn_realm: "" + turn_ttl: 86400 schema: stack_fqdn: str https_port: port @@ -64,3 +113,10 @@ schema: admin_password: password protocol_login_email: email protocol_login_pin: password + turn_mode: list(disabled|provided|external)? + turn_host: str? + turn_port: port? + turn_username: str? + turn_password: password? + turn_realm: str? + turn_ttl: int? diff --git a/src/roborock_local_server/__init__.py b/src/roborock_local_server/__init__.py index 28529f63..a6f39485 100644 --- a/src/roborock_local_server/__init__.py +++ b/src/roborock_local_server/__init__.py @@ -2,4 +2,4 @@ __all__ = ["__version__"] -__version__ = "1.2.1" +__version__ = "1.3.0-rc1" diff --git a/uv.lock b/uv.lock index 9f0722ce..a9d9ed6b 100644 --- a/uv.lock +++ b/uv.lock @@ -1261,7 +1261,7 @@ wheels = [ [[package]] name = "roborock-local-server" -version = "1.2.1" +version = "1.3.0rc1" source = { editable = "." } dependencies = [ { name = "aiohttp" },