Skip to content

feat: add resolve_error to StatusTrait - #968

Open
paolostivanin wants to merge 1 commit into
Python-roborock:mainfrom
paolostivanin:feat/resolve-error
Open

paolostivanin wants to merge 1 commit into
Python-roborock:mainfrom
paolostivanin:feat/resolve-error

Conversation

@paolostivanin

Copy link
Copy Markdown

Dock errors such as water_empty (38, clean water tank empty) stay latched on the device until "Resolved" is tapped in the Roborock app, even after the tank has been refilled. There was no way to clear them from the library or from Home Assistant.

Changes

  • StatusTrait.resolve_error(error_code=None) sends resolve_error with dict params {"error_code": N} and then refreshes the status. Without an explicit code it resolves the current dock error, falling back to the current robot error, and sends nothing when there is no error.
  • New resolve-error --device_id X [--error_code N] CLI command.
  • Tests for an explicit code, the dock-error and robot-error defaults, the no-error case and exception propagation.

Testing

On a Qrevo Master (roborock.vacuum.a117, fw 02.29.48, shell_3_dock), I reproduced the error by lifting the clean water tank and sending app_start_wash. The robot reported clear_water_box_hoare (38), and 30 s later the dock reported water_empty (38). After putting the tank back, resolve_error with {"error_code": 38} cleared dock_error_status back to ok within a second.

Array-style params are rejected by the firmware with -10007 invalid params (see #834), so this uses a dict.

Closes #702

A dock error such as water_empty (38) stays latched on the device until
it is resolved in the app, even after the tank has been refilled.

Add StatusTrait.resolve_error(), which sends resolve_error with dict
params {"error_code": N} and refreshes the status. Without an explicit
code it resolves the current dock error, else the current robot error.
Array params are rejected by the firmware with -10007 (see Python-roborock#834).

Also add a resolve-error CLI command.

Verified on a Qrevo Master (roborock.vacuum.a117, fw 02.29.48): dock
error water_empty went back to ok within a second.

Closes Python-roborock#702

This branch has not been deployed

No deployments
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.

Unable to clear dock error (“Water finished”) via Home Assistant

1 participant