Skip to content

Show robots the server has never heard from as Not paired yet - #111

Closed
virtitnerd wants to merge 3 commits into
DonSidro:masterfrom
virtitnerd:pr/not-paired-card
Closed

virtitnerd wants to merge 3 commits into
DonSidro:masterfrom
virtitnerd:pr/not-paired-card

Conversation

@virtitnerd

@virtitnerd virtitnerd commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Depends on: #109, Python-roborock/local_roborock_server#251

Why

A robot comes from the cloud import whether or not it was ever paired to the server, so a robot that had never connected
showed as Offline, like one that had dropped off.

What

The server's last-known state says whether it has ever heard from the robot. When it has not, the card says Not paired
yet and tapping it opens Add vacuum with that robot already chosen, loading the list with the saved admin password.
Offline keeps meaning a robot that was paired and went quiet.

Notes

If the server is older than the last-known PR the check fails quietly and the cards look as before.

virtitnerd and others added 3 commits November 12, 2026 19:38
GET /user/devices/{duid}/last_known gives the last status, battery, error and position the
server heard, and with map=1 the last map the robot sent. Adds kotlinx-datetime for showing
when.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
When a robot has not answered for 10 seconds, the detail screen fetches the server's
last-known state, draws the last map it sent (with the robot's last position on it), and
says when it went offline and what it last reported. It clears itself when the robot answers.
The current time comes from the platform epoch helper, since kotlinx.datetime's
Clock.System does not resolve in common code with this kotlinx-datetime version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A robot comes from the cloud import whether or not it was ever paired to the
server, so it showed as Offline like a robot that had dropped off. The server's
last-known state says whether it has ever heard from the robot: when it has not,
the card says Not paired yet and opens Add vacuum with that robot already chosen,
using the saved admin password to load the list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@virtitnerd

Copy link
Copy Markdown
Contributor Author

Folded into #115 together with #109 so they can be reviewed as one; closing this one.

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