@7365admin1/core 3.137.0 → 3.138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.138.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e217005: Robots (Ounitech): every fault and alert code from the maker's troubleshooting list now reads in plain English with the maker's fix ("306 · Robot couldn't receive the chosen area. Clear the fault (press and release the emergency stop), then send the task again."); the robot profile carries the manual's step-by-step "how to clear this fault" (`profile.clearFault`); Clean area explains that "default" is the undivided map.
8
+
3
9
  ## 3.137.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -8092,6 +8092,8 @@ type TRobotInfo = {
8092
8092
  makerApp?: string;
8093
8093
  /** Things only the maker's app does ("patrol schedules"), so our screens say where to go. */
8094
8094
  makerAppOnly?: readonly string[];
8095
+ /** How a person clears a fault on the robot itself, step by step (the maker's manual); shown while it is in Error. */
8096
+ clearFault?: readonly string[];
8095
8097
  };
8096
8098
  type TRobotModelProfile = TRobotInfo & {
8097
8099
  /** "PadBot S2". */
@@ -8112,6 +8114,7 @@ type TRobotManifest = {
8112
8114
  alarms: string[];
8113
8115
  makerApp: string;
8114
8116
  makerAppOnly: string[];
8117
+ clearFault: string[];
8115
8118
  };
8116
8119
  };
8117
8120
  /**
@@ -10573,6 +10576,7 @@ declare function fleetStateItem(id: string, s: TFleetRobot, lastSeenAt?: number
10573
10576
  alarms: string[];
10574
10577
  makerApp: string;
10575
10578
  makerAppOnly: string[];
10579
+ clearFault: string[];
10576
10580
  };
10577
10581
  cleaning: TRobotCleaning | null;
10578
10582
  lastSeenAt: Date | null;
package/dist/index.js CHANGED
@@ -11358,7 +11358,7 @@ function robotFaultText(robotName, fault) {
11358
11358
  }
11359
11359
  return {
11360
11360
  title: "Robot fault",
11361
- body: `${robotName || "A robot"} reports a fault: ${fault.message || fault.code}.`
11361
+ body: `${robotName || "A robot"} reports a fault: ${String(fault.message || fault.code).replace(/\.\s*$/, "")}.`
11362
11362
  };
11363
11363
  }
11364
11364
  function robotConnectionText(robotName, online, minutes) {
@@ -64713,7 +64713,7 @@ function robotManifest(brand, reportedModel) {
64713
64713
  const b = robotBrandFor(brand);
64714
64714
  const reported = typeof reportedModel === "string" ? reportedModel.trim().slice(0, 60) : "";
64715
64715
  if (!b)
64716
- return { capabilities: {}, profile: { model: reported, modelKnown: false, alarms: [], makerApp: "", makerAppOnly: [] } };
64716
+ return { capabilities: {}, profile: { model: reported, modelKnown: false, alarms: [], makerApp: "", makerAppOnly: [], clearFault: [] } };
64717
64717
  const prefix = modelKey(b.brand);
64718
64718
  let key = modelKey(reported);
64719
64719
  if (prefix && key.startsWith(prefix) && key !== prefix)
@@ -64726,7 +64726,8 @@ function robotManifest(brand, reportedModel) {
64726
64726
  modelKnown: Boolean(m),
64727
64727
  alarms: [...m?.alarms ?? b.info?.alarms ?? []],
64728
64728
  makerApp: m?.makerApp ?? b.info?.makerApp ?? "",
64729
- makerAppOnly: [...m?.makerAppOnly ?? b.info?.makerAppOnly ?? []]
64729
+ makerAppOnly: [...m?.makerAppOnly ?? b.info?.makerAppOnly ?? []],
64730
+ clearFault: [...m?.clearFault ?? b.info?.clearFault ?? []]
64730
64731
  }
64731
64732
  };
64732
64733
  }
@@ -65559,6 +65560,246 @@ function useRobotCloudService(credentials, options = {}) {
65559
65560
  // src/services/ounitech.adapter.ts
65560
65561
  var import_axios4 = __toESM(require("axios"));
65561
65562
  var import_node_server_utils164 = require("@7365admin1/node-server-utils");
65563
+
65564
+ // src/utils/ounitech-codes.util.ts
65565
+ var CLEAR = "Clear the fault (press and release the emergency stop)";
65566
+ var SUPPORT = "If it keeps happening, call Ounitech support";
65567
+ var DOCK = "Push it onto its charging dock so it can find its position again";
65568
+ var WAIT = "Wait until it is ready, then try again";
65569
+ var WHEEL = "Clear anything caught in the wheel and check the floor for holes";
65570
+ var NONE = "Normal when the emergency stop is pressed or released - no action needed";
65571
+ var T = {
65572
+ "100": ["Charging dock is over-heating", "Unplug the dock and let it cool down"],
65573
+ "101": ["Charging dock's clean-water tank is empty", "Fill the dock's clean-water tank"],
65574
+ "102": ["Charging dock's waste-water tank is full", "Drain the dock (unlock the dock, long-press Drain)"],
65575
+ "103": ["Charging dock valve or pump fault", `Check the pump connections. ${SUPPORT}`],
65576
+ "104": ["Charging dock valve or pump fault", `Check the pump connections. ${SUPPORT}`],
65577
+ "105": ["Charging dock valve or pump fault", `Check the pump connections. ${SUPPORT}`],
65578
+ "106": ["Charging dock valve or pump fault", `Check the pump connections. ${SUPPORT}`],
65579
+ "107": ["Charging dock valve or pump fault", `Check the pump connections. ${SUPPORT}`],
65580
+ "200": ["Battery not responding (flat for a long time)", "Charge it on the dock, or take the battery out and put it back"],
65581
+ "204": ["Wheel driver board offline", `Check the wheel wiring. ${SUPPORT}`],
65582
+ "205": ["Side-brush driver offline (side brush won't turn)", "Check the side-brush motor wire"],
65583
+ "206": ["Button panel offline (handle lights off)", `Check the handle's cable contact. ${SUPPORT}`],
65584
+ "207": ["Vacuum fan stalled", "Clean the vacuum pipe, HEPA filter, dust bag and tray"],
65585
+ "209": ["Vacuum fan fault", `${CLEAR}. ${SUPPORT}`],
65586
+ "210": ["Roller mop motor fault", "Take out the roller and clear anything tangled in it"],
65587
+ "211": ["Roller brush motor fault", "Take out the roller and clear anything tangled in it"],
65588
+ "212": ["Left side-brush motor fault", "Clear anything tangled in the side brush"],
65589
+ "213": ["Right side-brush motor fault", "Clear anything tangled in the side brush"],
65590
+ "214": ["Clean-water pump fault", `Re-plug the pump board. ${SUPPORT}`],
65591
+ "218": ["Waste-water pump fault", `Re-plug the pump board. ${SUPPORT}`],
65592
+ "219": ["Mop lift motor fault", `Restart the robot (power switch at the back). ${SUPPORT}`],
65593
+ "220": ["Brush lift motor fault", `Restart the robot (power switch at the back). ${SUPPORT}`],
65594
+ "221": ["Wheel fault", WHEEL],
65595
+ "222": ["Wheel fault", WHEEL],
65596
+ "223": ["Wheel stalled", WHEEL],
65597
+ "224": ["Wheel stalled", WHEEL],
65598
+ "228": ["Cooling fan fault", "Call Ounitech support"],
65599
+ "233": ["Battery short circuit", "Stop using the robot and call Ounitech support to replace the battery"],
65600
+ "234": ["Battery over-charged", "Take it off charge and call Ounitech support"],
65601
+ "245": ["Water-suction fan stalled", "Unclog the suction pipe and replace the filter"],
65602
+ "248": ["Squeegee motor fault", `Check the squeegee cable and motor. ${SUPPORT}`],
65603
+ "250": ["Battery full"],
65604
+ "251": ["Battery low"],
65605
+ "252": ["Battery too low to charge", "Call Ounitech support"],
65606
+ "255": ["Battery charging current high"],
65607
+ "256": ["Battery over-charged", "Take it off charge and call Ounitech support"],
65608
+ "257": ["Battery over 70 \xB0C", "Stop charging and let it cool down"],
65609
+ "302": ["Robot can't load its map", "Call Ounitech support"],
65610
+ "303": ["The map's area layout is damaged", "Re-edit the areas in the Ounitech app and save"],
65611
+ "304": ["The area layout doesn't match the map", "In the Ounitech app, switch to another floor map and back"],
65612
+ "305": ["Lost contact with its motion controller", "Restart the robot (power switch at the back)"],
65613
+ "306": ["Robot couldn't receive the chosen area", `${CLEAR}, then send the task again`],
65614
+ "307": ["Robot is finding its position again", "If the site has changed, push it onto its charging dock"],
65615
+ "308": ["Robot couldn't find its position", DOCK],
65616
+ "310": ["No signal from the charging dock", `Check the dock is powered. ${SUPPORT}`],
65617
+ "312": ["Couldn't dock", "Check the dock hasn't been moved"],
65618
+ "314": ["Couldn't dock - trying again", "Check the dock hasn't been moved"],
65619
+ "315": ["Couldn't dock - trying again", "Check the dock hasn't been moved"],
65620
+ "316": ["Lost the wireless link to its charging dock", "Check the dock is powered"],
65621
+ "319": ["Robot was moved while charging", "Press the emergency stop and push it back onto the dock"],
65622
+ "401": ["Battery below 10% - going to charge"],
65623
+ "403": ["Robot has left its charging dock"],
65624
+ "404": ["Charging dock reports a fault", "See the dock's other alerts"],
65625
+ "405": ["Couldn't call the lift"],
65626
+ "407": ["Lift is full"],
65627
+ "409": ["Couldn't switch map", "Call Ounitech support"],
65628
+ "410": ["Internal communication problem", SUPPORT],
65629
+ "415": ["Gyro data fault", `Check the cables. ${SUPPORT}`],
65630
+ "416": ["Wheel odometer data fault", `Check the cables. ${SUPPORT}`],
65631
+ "417": ["Laser scanner data fault", `Check the cables. ${SUPPORT}`],
65632
+ "418": ["Couldn't dock - trying again", "Check the dock hasn't been moved"],
65633
+ "419": ["Couldn't dock - trying again", "Check the dock hasn't been moved"],
65634
+ "420": ["Docking failed several times", "Check the dock's position and the robot's position"],
65635
+ "423": ["Dust box blocked", "Empty the dust box and clear the pipe"],
65636
+ "431": ["Robot's waste-water tank is high - returning to empty"],
65637
+ "432": ["Robot's clean water is low - returning to refill"],
65638
+ "433": ["Robot over-heating while charging", "Let it cool down"],
65639
+ "443": ["No charging current", "Seat the battery and clean the charging contacts"],
65640
+ "445": ["Area laser fault", "Call Ounitech support"],
65641
+ "446": ["Area laser board offline", "Call Ounitech support"],
65642
+ "448": ["Wheel drawing too much current", WHEEL],
65643
+ "449": ["Wheel over-current fault", `${WHEEL}, then clear the fault (press and release the emergency stop)`],
65644
+ "450": ["Wheels slipping", "Check the wheels"],
65645
+ "453": ["Robot tried to leave a no-go area", DOCK],
65646
+ "454": ["Robot hasn't moved for a long time", "Clear its path and wipe its sensors"],
65647
+ "457": ["Left bumper hit something", "Tap the bumper if it stays stuck"],
65648
+ "458": ["Right bumper hit something", "Tap the bumper if it stays stuck"],
65649
+ "459": ["Water suction blocked", "Clean the suction pipe and filters"],
65650
+ "460": ["Front camera fault", `Check the camera cable. ${SUPPORT}`],
65651
+ "462": ["Left camera fault", `Check the camera cable. ${SUPPORT}`],
65652
+ "464": ["Right camera fault", `Check the camera cable. ${SUPPORT}`],
65653
+ "469": ["The map's floor doesn't match the floor it senses", "Check it is on the right floor; the air-pressure sensor may need recalibrating"],
65654
+ "470": ["Gyro offline", "Call Ounitech support"],
65655
+ "471": ["Roller motor needs servicing", "Book a service"],
65656
+ "472": ["Fan needs servicing", "Book a service"],
65657
+ "500": ["Scheduled job skipped: floor can't be reached", "Cross-floor jobs need lift control"],
65658
+ "501": ["Scheduled job skipped: robot not ready to clean", "Check battery, water, tanks and dust box"],
65659
+ "502": ["Waited over 20 minutes for the lift - going to charge"],
65660
+ "503": ["Scheduled job done - going to charge"],
65661
+ "504": ["Job done - going to charge"],
65662
+ "505": ["Job cancelled - going to charge"],
65663
+ "506": ["Couldn't leave the charging dock", "Check the wheels"],
65664
+ "507": ["Clean water low - returning to refill, then continuing"],
65665
+ "508": ["Waste water high - returning to empty, then continuing"],
65666
+ "509": ["Dust box missing", "Fit the dust box"],
65667
+ "510": ["Clean-water tank missing", "Fit the clean-water tank"],
65668
+ "511": ["Waste-water tank missing", "Fit the waste-water tank"],
65669
+ "512": ["Tank cover missing", "Fit the tank cover"],
65670
+ "513": ["Top cover open", "Close the top cover"],
65671
+ "514": ["Handle is up (manual mode) - the app can't start a job", "Lower the handle"],
65672
+ "515": ["Battery below 10% - can't clean", "Let it charge"],
65673
+ "517": ["Robot is starting up - not ready yet", WAIT],
65674
+ "518": ["Robot is shutting down"],
65675
+ "519": ["Robot is resuming - not ready yet", WAIT],
65676
+ "520": ["Robot is finding its position - not ready yet", WAIT],
65677
+ "521": ["Robot is downloading its map - not ready yet", WAIT],
65678
+ "522": ["Couldn't resume: clean water below half", "Wait for it to refill"],
65679
+ "523": ["Couldn't resume: waste water too high", "Wait for it to empty"],
65680
+ "524": ["Charging dock doesn't match this robot", "Re-scan the dock's QR code in the Ounitech app"],
65681
+ "525": ["Scheduled time ended before the job finished", "Give the schedule a longer time window"],
65682
+ "527": ["Software updating", "Don't use the robot until it finishes"],
65683
+ "528": ["Software updating", "Don't use the robot until it finishes"],
65684
+ "529": ["Software updating", "Don't use the robot until it finishes"],
65685
+ "530": ["Software updating", "Don't use the robot until it finishes"],
65686
+ "531": ["Manual mode - the app's command was refused", "Lower the handle"],
65687
+ "532": ["Finding its starting position"],
65688
+ "534": ["Finding its starting position after a map switch"],
65689
+ "535": ["Areas updated"],
65690
+ "536": ["Virtual walls updated"],
65691
+ "537": ["Safe zones updated"],
65692
+ "538": ["Map saved"],
65693
+ "539": ["Couldn't save the map", "Save it again"],
65694
+ "540": ["Cliff sensor switched on"],
65695
+ "541": ["Cliff sensor switched off"],
65696
+ "542": ["Stopped at a drop (cliff sensor)", `Pull it back by the handle, ${CLEAR.charAt(0).toLowerCase()}${CLEAR.slice(1)}, and add a virtual wall there`],
65697
+ "543": ["Slowing down near a drop (cliff sensor)", "Add a virtual wall there if it keeps happening"],
65698
+ "544": ["Scheduled shutdown soon - returning to the dock"],
65699
+ "545": ["Edge cleaning started"],
65700
+ "546": ["Edge cleaning finished"],
65701
+ "549": ["Asking to switch map"],
65702
+ "552": ["No floor switch needed"],
65703
+ "553": ["Area can't be reached - job ended", "In the Ounitech app, switch map and back, or re-save an area"],
65704
+ "554": ["Sensor calibration"],
65705
+ "555": ["Sensor calibration - clear obstacles around the robot"],
65706
+ "556": ["Sensor calibration - clear obstacles around the robot"],
65707
+ "557": ["Slow zones updated"],
65708
+ "560": ["Fan stalled - returning to the dock", "Press and release the emergency stop, then check the fan"],
65709
+ "561": ["Couldn't reconnect to the charging dock", "Check the dock"],
65710
+ "562": ["Scheduled shutdown soon - no new jobs"],
65711
+ "563": ["Robot is in a fault state", "Find the cause, clear it (press and release the emergency stop), and check the robot"],
65712
+ "564": ["Fault cleared - robot on standby"],
65713
+ "565": ["Handling waste water"],
65714
+ "566": ["Waste water handled"],
65715
+ "567": ["Fan stalled", "Clear the fan, then resume"],
65716
+ "568": ["No charging dock on this floor", "Set the dock's floor in the Ounitech app"],
65717
+ "570": ["Finding its starting position - can't start yet", WAIT],
65718
+ "571": ["Stopped too long - side brush switched off", "Pause, then resume"],
65719
+ "572": ["Lift ride took too long - job cancelled", "Push it back onto its charging dock"],
65720
+ "573": ["Camera saw a drop", "Add a virtual wall 1 m from the drop"],
65721
+ "574": ["Map updating", WAIT],
65722
+ "575": ["Air-pressure sensor reading invalid", "Recalibrate the air-pressure sensor"],
65723
+ "576": ["Air-pressure sensor calibration"],
65724
+ "577": ["Air-pressure sensor calibration"],
65725
+ "578": ["Air-pressure sensor calibration"],
65726
+ "581": ["Taught route started"],
65727
+ "582": ["Taught route ended"],
65728
+ "583": ["Taught route cleared"],
65729
+ "585": ["An area's positioning mode changed"],
65730
+ "587": ["Battery discharging while on charge", "Seat the battery and clean the charging contacts"],
65731
+ "588": ["Switched off with the power button"],
65732
+ "589": ["Switched off by the timed power schedule"],
65733
+ "590": ["Switched on"],
65734
+ "591": ["Switched on with the power button"],
65735
+ "592": ["Switched on by the timed power schedule"],
65736
+ "593": ["Still finding its position - can't take commands yet", WAIT],
65737
+ "600": ["Left wheel driver offline", NONE],
65738
+ "601": ["Left wheel driver reset", NONE],
65739
+ "603": ["Left wheel drawing too much current", WHEEL],
65740
+ "604": ["Left wheel drawing too much current", WHEEL],
65741
+ "605": ["Left wheel stalled", WHEEL],
65742
+ "620": ["Right wheel driver offline", NONE],
65743
+ "621": ["Right wheel driver reset", NONE],
65744
+ "622": ["Right wheel driver error", "Call Ounitech support"],
65745
+ "623": ["Right wheel drawing too much current", WHEEL],
65746
+ "624": ["Right wheel drawing too much current", WHEEL],
65747
+ "625": ["Right wheel stalled", WHEEL],
65748
+ "640": ["A part is overdue for replacement - won't clean", "Replace the part"],
65749
+ "641": ["A running job is blocking the schedule", "Cancel the job or wait"],
65750
+ "642": ["Can't find its position while charging", "Put it on standby first"],
65751
+ "643": ["Can't reset the dock while charging", "Put it on standby first"],
65752
+ "644": ["Can't set its starting position while charging", "Put it on standby first"],
65753
+ "700": ["Vacuum button pressed"],
65754
+ "701": ["Standard button pressed"],
65755
+ "702": ["Dust-mop button pressed"],
65756
+ "703": ["Cancel button pressed"],
65757
+ "704": ["Strong button pressed"],
65758
+ "705": ["Mop button pressed"],
65759
+ "706": ["Pause button pressed"],
65760
+ "707": ["Recall button pressed"],
65761
+ "708": ["Pause button held"],
65762
+ "709": ["Pause button held"],
65763
+ "710": ["Wheel drawing too much current", WHEEL],
65764
+ "711": ["Wheel over-heating", "Let it cool and check the wheel"],
65765
+ "712": ["Wheel kept drawing too much current", `${WHEEL}, then clear the fault (press and release the emergency stop)`],
65766
+ "713": ["Switching lift - timed power paused"],
65767
+ "731": ["Robot locked by the dealer", "Ask the dealer"],
65768
+ "732": ["Voice file updated"],
65769
+ "733": ["Switched off from the app"],
65770
+ "737": ["Laser scanner motion-sensor fault", "Call Ounitech support"],
65771
+ "738": ["Can't start: clean water low", "Fill the clean-water tank"],
65772
+ "739": ["Can't start: waste water high", "Empty the waste-water tank"],
65773
+ "760": ["Map file missing", "Call Ounitech support"],
65774
+ "761": ["Map file damaged", "Call Ounitech support"],
65775
+ "762": ["Started from the wrong place (it was pushed)", "Push it back onto its charging dock"],
65776
+ "775": ["Moved by a person during a lift ride", "Cancel the job and push it back onto its charging dock"],
65777
+ "776": ["Boxed in", `Clear its path, wipe its sensors. ${DOCK}`],
65778
+ "777": ["Can't reach its target", `Clear its path, wipe its sensors. ${DOCK}`],
65779
+ "778": ["Couldn't dock - recovering by itself", "Check the dock's sensor and that the dock hasn't moved"],
65780
+ "779": ["Robot settings changed"],
65781
+ "780": ["Top cover open", "Close the top cover"],
65782
+ "781": ["Dust box not fitted", "Fit the dust box"],
65783
+ "782": ["Waste-water tank not fitted", "Fit the waste-water tank"],
65784
+ "785": ["Position ready"]
65785
+ };
65786
+ var _a;
65787
+ for (const c of [...range(740, 759), 763, 764, 783, 784])
65788
+ T[_a = String(c)] ?? (T[_a] = ["Sensor or camera calibration", "Recalibrate if it failed"]);
65789
+ var _a2;
65790
+ for (const c of range(765, 773))
65791
+ T[_a2 = String(c)] ?? (T[_a2] = ["QR code return-point / position scan", "Rescan if it failed"]);
65792
+ T["774"] ?? (T["774"] = ["Taught route saved"]);
65793
+ function range(a, b) {
65794
+ return Array.from({ length: b - a + 1 }, (_, i) => a + i);
65795
+ }
65796
+ var OUNITECH_CODES = T;
65797
+ function ounitechCodeWords(code) {
65798
+ const c = OUNITECH_CODES[code];
65799
+ return c ? c[1] ? `${c[0]}. ${c[1]}.` : c[0] : null;
65800
+ }
65801
+
65802
+ // src/services/ounitech.adapter.ts
65562
65803
  var OUNITECH_BRAND = "ounitech";
65563
65804
  var OUNITECH_CAPABILITIES = {
65564
65805
  // Pose in the chapter-6 robot list (metres) and the tracking stream.
@@ -65587,8 +65828,9 @@ var OUNITECH_CAPABILITIES = {
65587
65828
  // taskState carries the job and its %, shown in the status words; there is
65588
65829
  // no command id to follow a job WE started, so completion is not claimed.
65589
65830
  processCompletion: false,
65831
+ // The manual: "Combined cleaning" across floors exists in the Ounitech app and needs its
65832
+ // lift-control module (code 500 = floor unreachable); no API call starts one.
65590
65833
  multiFloor: false,
65591
- // plans can name floors; no API starts a cross-floor job
65592
65834
  // `start-spot-cleaning` takes a PIXEL polygon while poses are metres, and
65593
65835
  // whether y is flipped between the two is not documented. Hidden until one
65594
65836
  // real robot confirms the frame.
@@ -65744,9 +65986,9 @@ function ounitechFault(list) {
65744
65986
  }
65745
65987
  function faultWords(a) {
65746
65988
  if (!a.code)
65747
- return { code: "error", message: a.message.slice(0, 200) };
65748
- const words = a.message.startsWith(`Robot alert ${a.code}:`) ? a.message : `${a.message} (fault ${a.code})`;
65749
- return { code: a.code.slice(0, 60), message: words.slice(0, 200) };
65989
+ return { code: "error", message: a.message.slice(0, 300) };
65990
+ const words = alertWords(a.code) ?? a.vendorText ?? a.message;
65991
+ return { code: a.code.slice(0, 60), message: `${a.code} \xB7 ${words}`.slice(0, 300) };
65750
65992
  }
65751
65993
  function ounitechMapShare(map, x, y, clamp4 = false) {
65752
65994
  const w = map?.width, h = map?.height, r = map?.resolution;
@@ -65894,22 +66136,8 @@ function ounitechTaskRecord(t, maps = [], tz = 480) {
65894
66136
  floorNo: Number.isInteger(t.floorNo) ? t.floorNo : map?.floorNo ?? null
65895
66137
  };
65896
66138
  }
65897
- var ALERT_WORDS = {
65898
- "205": "Side brush driver offline",
65899
- "206": "Button panel offline",
65900
- // 306 "接收定点指定区域故障": seen live 30 Sep right after start-area-cleaning on an area with no centre point.
65901
- "306": "Robot couldn't receive the chosen cleaning area",
65902
- "540": "Floor check: cliff sensor switched on",
65903
- "563": "Robot is in a fault state",
65904
- "588": "Switched off with the power button",
65905
- "589": "Switched off by the timed power schedule",
65906
- "593": "Still finding its position - try again shortly",
65907
- "601": "Left wheel driver reset",
65908
- "620": "Right wheel driver offline",
65909
- "621": "Right wheel driver reset",
65910
- "734": "IMU zero offset too large",
65911
- "785": "Localisation ready"
65912
- };
66139
+ var VENDOR_TEXT_EN = { "734": "IMU zero offset too large" };
66140
+ var alertWords = (code) => code ? ounitechCodeWords(code) ?? VENDOR_TEXT_EN[code] ?? null : null;
65913
66141
  var ALERT_LEVEL_WORDS = { \u63D0\u793A: "Notice", \u8B66\u544A: "Warning", \u6545\u969C: "Fault", \u9519\u8BEF: "Error", \u4E25\u91CD: "Critical" };
65914
66142
  function ounitechAlertRecord(a, tz = 480) {
65915
66143
  const raw = String(a.errMsg ?? a.errCode ?? "").trim();
@@ -65925,7 +66153,7 @@ function ounitechAlertRecord(a, tz = 480) {
65925
66153
  code,
65926
66154
  level: lv ? ALERT_LEVEL_WORDS[lv[1].trim()] ?? lv[1].trim() : null,
65927
66155
  // An untranslated Chinese text keeps its code up front, so the row is never only Chinese.
65928
- message: ALERT_WORDS[code] ?? (/[㐀-鿿]/.test(rest || raw) && code ? `Robot alert ${code}: ${rest || raw}` : rest || raw),
66156
+ message: alertWords(code) ?? (/[㐀-鿿]/.test(rest || raw) && code ? `Robot alert ${code}: ${rest || raw}` : rest || raw),
65929
66157
  vendorText: rest || raw,
65930
66158
  resolved,
65931
66159
  at: ounitechTime(a.createTime, tz)
@@ -66303,7 +66531,7 @@ function createOunitechAdapter(credentials, options) {
66303
66531
  const blind = command.areas.filter((n) => centre.has(n) && !centre.get(n));
66304
66532
  if (blind.length) {
66305
66533
  throw new import_node_server_utils164.BadRequestError(
66306
- `${blind.map((n) => `"${n}"`).join(", ")} has no centre point on the robot's map, so the robot can't be sent there (it stops with fault 306). Use Clean all, or redraw the area in the Ounitech app.`
66534
+ `${blind.map((n) => `"${n}"`).join(", ")} has no centre point on the robot's map, so the robot can't be sent there (it stops with fault 306). ` + (blind.includes("default") ? `"default" is the whole map before it is divided into areas. Use Clean all, or divide the map in the Ounitech app (Control -> Divide areas).` : "Use Clean all, or redraw the area in the Ounitech app.")
66307
66535
  );
66308
66536
  }
66309
66537
  await cloud.startAreaCleaning(robotSn, command.areas, options2);
@@ -66566,7 +66794,17 @@ var OUNITECH_BRAND_DEFINITION = {
66566
66794
  { name: "Q3-G", codes: ["Q3G", "Q3-G"] },
66567
66795
  { name: "Q3-W", codes: ["Q3W", "Q3-W"] }
66568
66796
  ],
66569
- info: { makerApp: "the Ounitech app", makerAppOnly: ["pausing or stopping a job", "cleaning across floors", "changing maps, areas and schedules"] },
66797
+ info: {
66798
+ makerApp: "the Ounitech app",
66799
+ makerAppOnly: ["pausing or stopping a job", "cleaning across floors", "changing maps, areas and schedules"],
66800
+ // Q3-G User Manual / Troubleshooting Checklist (2026-09-30). The API has no documented way to clear an Error.
66801
+ clearFault: [
66802
+ 'Press the red emergency stop on top of the robot, then turn it clockwise to release it. It says "emergency stop button bounced" and the fault clears.',
66803
+ "If it has lost its position: lift the handle, push it onto its charging dock until the metal contacts touch, then press and release the emergency stop. It relocates by itself.",
66804
+ "Still stuck: restart it with the power switch at the back. It is ready when only the child-lock light stays on.",
66805
+ "Handle buttons not responding: press Child lock 3 times to unlock them."
66806
+ ]
66807
+ },
66570
66808
  create: (credentials) => createOunitechAdapter(credentials)
66571
66809
  };
66572
66810
  function registerOunitechBrand() {
@@ -71858,7 +72096,7 @@ function toBuildingYaml(name, rmf) {
71858
72096
  }
71859
72097
  const lifts = {};
71860
72098
  for (const l of rmf.lifts) {
71861
- const range = liftFloorRange(l, rmf.levels);
72099
+ const range2 = liftFloorRange(l, rmf.levels);
71862
72100
  lifts[l.name] = {
71863
72101
  x: l.x,
71864
72102
  y: l.y,
@@ -71866,9 +72104,9 @@ function toBuildingYaml(name, rmf) {
71866
72104
  width: l.widthM,
71867
72105
  depth: l.depthM,
71868
72106
  reference_floor_name: l.referenceFloor,
71869
- initial_floor_name: range.initial,
71870
- lowest_floor: range.lowest,
71871
- highest_floor: range.highest,
72107
+ initial_floor_name: range2.initial,
72108
+ lowest_floor: range2.lowest,
72109
+ highest_floor: range2.highest,
71872
72110
  doors: Object.fromEntries(
71873
72111
  l.doors.map((d) => [d.name, { door_type: LIFT_DOOR_TYPE_INT[d.type] ?? 2, x: d.x, y: d.y, width: d.widthM, motion_axis_orientation: d.axisYawRad }])
71874
72112
  ),
@@ -71918,13 +72156,13 @@ function toNavGraphs(name, rmf) {
71918
72156
  const out = {};
71919
72157
  const elevation = new Map(rmf.levels.map((l) => [l.name, l.elevationM]));
71920
72158
  const shafts = rmf.lifts.map((l) => {
71921
- const range = liftFloorRange(l, rmf.levels);
72159
+ const range2 = liftFloorRange(l, rmf.levels);
71922
72160
  return {
71923
72161
  lift: l,
71924
72162
  verts: liftShaft(l),
71925
72163
  // lift.py: no lowest / highest floor = no bound; a lift with no level_doors marks nothing.
71926
- lo: elevation.get(range.lowest) ?? -Infinity,
71927
- hi: elevation.get(range.highest) ?? Infinity,
72164
+ lo: elevation.get(range2.lowest) ?? -Infinity,
72165
+ hi: elevation.get(range2.highest) ?? Infinity,
71928
72166
  hasDoors: l.levelDoors.length > 0
71929
72167
  };
71930
72168
  });