Skip to content

Commit

Permalink
feat(vendor.roborock): Add error mapping for error codes 27 35
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuefer authored and Hypfer committed Dec 14, 2024
1 parent c78e8c2 commit 9d3df05
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion backend/lib/robots/roborock/RoborockValetudoRobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,12 @@ RoborockValetudoRobot.MAP_ERROR_CODE = (vendorErrorCode) => {
parameters.subsystem = ValetudoRobotError.SUBSYSTEM.SENSORS;
parameters.message = "Wall sensor dirty";
break;
//27?
case 27:
parameters.severity.kind = ValetudoRobotError.SEVERITY_KIND.TRANSIENT;
parameters.severity.level = ValetudoRobotError.SEVERITY_LEVEL.CATASTROPHIC;
parameters.subsystem = ValetudoRobotError.SUBSYSTEM.ATTACHMENTS;
parameters.message = "Mop module stuck";
break;
//28?
case 29:
parameters.severity.kind = ValetudoRobotError.SEVERITY_KIND.TRANSIENT;
Expand All @@ -893,6 +898,13 @@ RoborockValetudoRobot.MAP_ERROR_CODE = (vendorErrorCode) => {
parameters.message = "Auto-Empty Dock filter clogged";
break;

case 35:
parameters.severity.kind = ValetudoRobotError.SEVERITY_KIND.PERMANENT;
parameters.severity.level = ValetudoRobotError.SEVERITY_LEVEL.WARNING;
parameters.subsystem = ValetudoRobotError.SUBSYSTEM.DOCK;
parameters.message = "Auto-Empty Dock voltage abnormal";
break;

case 38:
parameters.severity.kind = ValetudoRobotError.SEVERITY_KIND.PERMANENT;
parameters.severity.level = ValetudoRobotError.SEVERITY_LEVEL.WARNING;
Expand Down

0 comments on commit 9d3df05

Please sign in to comment.