|
| 1 | +STATE_CODE_TO_STATUS = { |
| 2 | + 1: "starting", |
| 3 | + 2: "charger_disconnected", |
| 4 | + 3: "idle", |
| 5 | + 4: "remote_control_active", |
| 6 | + 5: "cleaning", |
| 7 | + 6: "returning_home", |
| 8 | + 7: "manual_mode", |
| 9 | + 8: "charging", |
| 10 | + 9: "charging_problem", |
| 11 | + 10: "paused", |
| 12 | + 11: "spot_cleaning", |
| 13 | + 12: "error", |
| 14 | + 13: "shutting_down", |
| 15 | + 14: "updating", |
| 16 | + 15: "docking", |
| 17 | + 16: "going_to_target", |
| 18 | + 17: "zoned_cleaning", |
| 19 | + 18: "segment_cleaning", |
| 20 | + 22: "emptying_the_bin", # on s7+, see #1189 |
| 21 | + 23: "washing_the_mop", # on a46, #1435 |
| 22 | + 26: "going_to_wash_the_mop", # on a46, #1435 |
| 23 | + 100: "charging_complete", |
| 24 | + 101: "device_offline", |
| 25 | +} |
| 26 | + |
| 27 | +ERROR_CODE_TO_TEXT = { |
| 28 | + 0: "None", |
| 29 | + 1: "LiDAR turret or laser blocked. Check for obstruction and retry.", |
| 30 | + 2: "Bumper stuck. Clean it and lightly tap to release it.", |
| 31 | + 3: "Wheels suspended. Move robot and restart.", |
| 32 | + 4: "Cliff sensor error. Clean cliff sensors, move robot away from drops and restart.", |
| 33 | + 5: "Main brush jammed. Clean main brush and bearings.", |
| 34 | + 6: "Side brush jammed. Remove and clean side brush.", |
| 35 | + 7: "Wheels jammed. Move the robot and restart.", |
| 36 | + 8: "Robot trapped. Clear obstacles surrounding robot.", |
| 37 | + 9: "No dustbin. Install dustbin and filter.", |
| 38 | + 12: "Low battery. Recharge and retry.", |
| 39 | + 13: "Charging error. Clean charging contacts and retry.", |
| 40 | + 14: "Battery error.", |
| 41 | + 15: "Wall sensor dirty. Clean wall sensor.", |
| 42 | + 16: "Robot tilted. Move to level ground and restart.", |
| 43 | + 17: "Side brush error. Reset robot.", |
| 44 | + 18: "Fan error. Reset robot.", |
| 45 | + 21: "Vertical bumper pressed. Move robot and retry.", |
| 46 | + 22: "Dock locator error. Clean and retry.", |
| 47 | + 23: "Could not return to dock. Clean dock location beacon and retry.", |
| 48 | + 24: "No-go zone or invisible wall detected. Move the robot.", |
| 49 | + 27: "VibraRise system jammed. Check for obstructions.", |
| 50 | + 28: "Robot on carpet. Move robot to floor and retry.", |
| 51 | + 29: "Filter blocked or wet. Clean, dry, and retry.", |
| 52 | + 30: "No-go zone or Invisible Wall detected. Move robot from this area.", |
| 53 | + 31: "Cannot cross carpet. Move robot across carpet and restart.", |
| 54 | + 32: "Internal error. Reset the robot.", |
| 55 | +} |
| 56 | + |
| 57 | +FAN_SPEED_CODES = { |
| 58 | + 105: "off", |
| 59 | + 101: "silent", |
| 60 | + 102: "balanced", |
| 61 | + 103: "turbo", |
| 62 | + 104: "max", |
| 63 | + 108: "max_plus", |
| 64 | + 106: "custom", |
| 65 | +} |
| 66 | + |
| 67 | +MOP_MODE_CODES = { |
| 68 | + 300: "standard", |
| 69 | + 301: "deep", |
| 70 | + 303: "deep_plus", |
| 71 | + 302: "custom", |
| 72 | +} |
| 73 | + |
| 74 | +MOP_INTENSITY_CODES = { |
| 75 | + 200: "off", |
| 76 | + 201: "mild", |
| 77 | + 202: "moderate", |
| 78 | + 203: "intense", |
| 79 | + 204: "custom", |
| 80 | +} |
0 commit comments