Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/home_assistant.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
30 changes: 29 additions & 1 deletion roborock_local_server_beta_addon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
33 changes: 27 additions & 6 deletions roborock_local_server_beta_addon/DOCS.md
Original file line number Diff line number Diff line change
@@ -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.
60 changes: 58 additions & 2 deletions roborock_local_server_beta_addon/config.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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?
2 changes: 1 addition & 1 deletion src/roborock_local_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__all__ = ["__version__"]

__version__ = "1.2.1"
__version__ = "1.3.0-rc1"
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.