@riddix/hamh 2.1.0-alpha.560 → 2.1.0-alpha.561
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/dist/backend/cli.js
CHANGED
|
@@ -175935,6 +175935,14 @@ var RvcRunModeServerBase = class extends RvcRunModeServer {
|
|
|
175935
175935
|
matchedAreaId = segmentId;
|
|
175936
175936
|
}
|
|
175937
175937
|
}
|
|
175938
|
+
if (matchedAreaId === null && segmentId != null) {
|
|
175939
|
+
for (const area of serviceArea.state.supportedAreas) {
|
|
175940
|
+
if (this.activeAreas.includes(area.areaId) && area.areaId % 1e4 === segmentId) {
|
|
175941
|
+
matchedAreaId = area.areaId;
|
|
175942
|
+
break;
|
|
175943
|
+
}
|
|
175944
|
+
}
|
|
175945
|
+
}
|
|
175938
175946
|
if (matchedAreaId === null && roomName) {
|
|
175939
175947
|
const area = serviceArea.state.supportedAreas.find(
|
|
175940
175948
|
(a) => a.areaInfo.locationInfo?.locationName?.toLowerCase() === roomName.toLowerCase()
|
|
@@ -175944,8 +175952,8 @@ var RvcRunModeServerBase = class extends RvcRunModeServer {
|
|
|
175944
175952
|
}
|
|
175945
175953
|
}
|
|
175946
175954
|
if (matchedAreaId === null) {
|
|
175947
|
-
logger189.
|
|
175948
|
-
`currentRoom sensor: no match for "${roomName}" (segmentId=${segmentId}), activeAreas=[${this.activeAreas.join(", ")}]`
|
|
175955
|
+
logger189.info(
|
|
175956
|
+
`currentRoom sensor: no match for "${roomName}" (segmentId=${segmentId}), activeAreas=[${this.activeAreas.join(", ")}], supportedAreas=[${serviceArea.state.supportedAreas.map((a) => `${a.areaId}:${a.areaInfo.locationInfo?.locationName}`).join(", ")}]`
|
|
175949
175957
|
);
|
|
175950
175958
|
return;
|
|
175951
175959
|
}
|
|
@@ -175954,11 +175962,15 @@ var RvcRunModeServerBase = class extends RvcRunModeServer {
|
|
|
175954
175962
|
this.completedAreas.add(this.lastCurrentArea);
|
|
175955
175963
|
}
|
|
175956
175964
|
this.lastCurrentArea = matchedAreaId;
|
|
175957
|
-
logger189.
|
|
175958
|
-
`currentRoom sensor: area ${matchedAreaId} ("${roomName}"), completed: [${[...this.completedAreas].join(", ")}]`
|
|
175965
|
+
logger189.info(
|
|
175966
|
+
`currentRoom sensor: transition to area ${matchedAreaId} ("${roomName}"), completed: [${[...this.completedAreas].join(", ")}]`
|
|
175959
175967
|
);
|
|
175960
175968
|
this.trySetCurrentArea(matchedAreaId);
|
|
175961
|
-
} catch {
|
|
175969
|
+
} catch (e) {
|
|
175970
|
+
const msg = e instanceof Error ? e.message : String(e);
|
|
175971
|
+
if (!msg.includes("No provider for") && !msg.includes("not supported")) {
|
|
175972
|
+
logger189.warn(`currentRoom sensor update failed: ${msg}`);
|
|
175973
|
+
}
|
|
175962
175974
|
}
|
|
175963
175975
|
}
|
|
175964
175976
|
/**
|