@riddix/hamh 2.1.0-alpha.563 → 2.1.0-alpha.565
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
|
@@ -175691,7 +175691,7 @@ function SensorDevice(homeAssistantEntity) {
|
|
|
175691
175691
|
}
|
|
175692
175692
|
return TemperatureSensorType.set({ homeAssistantEntity });
|
|
175693
175693
|
}
|
|
175694
|
-
if (deviceClass === SensorDeviceClass.humidity) {
|
|
175694
|
+
if (deviceClass === SensorDeviceClass.humidity || deviceClass === SensorDeviceClass.moisture) {
|
|
175695
175695
|
return HumiditySensorType.set({ homeAssistantEntity });
|
|
175696
175696
|
}
|
|
175697
175697
|
if (deviceClass === SensorDeviceClass.illuminance) {
|
|
@@ -177925,6 +177925,18 @@ var RvcOperationalStateServerBase = class extends RvcOperationalStateServer {
|
|
|
177925
177925
|
this.state.operationalError = { errorStateId: ErrorState.NoError };
|
|
177926
177926
|
await super.initialize();
|
|
177927
177927
|
const homeAssistant = await this.agent.load(HomeAssistantEntityBehavior);
|
|
177928
|
+
try {
|
|
177929
|
+
const events = this.events;
|
|
177930
|
+
events.operationalError$Changed?.on(() => {
|
|
177931
|
+
logger195.info(
|
|
177932
|
+
`#287 diag[3]: operationalError$Changed fired for ${homeAssistant.entityId}`
|
|
177933
|
+
);
|
|
177934
|
+
});
|
|
177935
|
+
} catch (e) {
|
|
177936
|
+
logger195.warn(
|
|
177937
|
+
`#287 diag[3]: failed to attach operationalError$Changed listener: ${e instanceof Error ? e.message : String(e)}`
|
|
177938
|
+
);
|
|
177939
|
+
}
|
|
177928
177940
|
this.update(homeAssistant.entity);
|
|
177929
177941
|
this.reactTo(homeAssistant.onChange, this.update);
|
|
177930
177942
|
}
|
|
@@ -177937,6 +177949,9 @@ var RvcOperationalStateServerBase = class extends RvcOperationalStateServer {
|
|
|
177937
177949
|
this.agent
|
|
177938
177950
|
);
|
|
177939
177951
|
const previousState = this.state.operationalState;
|
|
177952
|
+
logger195.info(
|
|
177953
|
+
`#287 diag[2]: update() reactor invoked for ${entity.entity_id} \u2014 prevState=${previousState} newState=${newState} nonceBefore=${this.keepaliveNonce}`
|
|
177954
|
+
);
|
|
177940
177955
|
this.keepaliveNonce = !this.keepaliveNonce;
|
|
177941
177956
|
const errorStateId = newState === OperationalState4.Error ? ErrorState.Stuck : ErrorState.NoError;
|
|
177942
177957
|
const operationalError = { errorStateId };
|
|
@@ -181180,6 +181195,9 @@ var ServerModeVacuumEndpoint = class _ServerModeVacuumEndpoint extends EntityEnd
|
|
|
181180
181195
|
this.flushUpdate = debounce6(this.flushPendingUpdate.bind(this), 50);
|
|
181181
181196
|
this.keepaliveTimer = setInterval(() => {
|
|
181182
181197
|
if (this.lastState) {
|
|
181198
|
+
logger203.info(
|
|
181199
|
+
`#287 diag[1]: keepalive tick for ${this.entityId} \u2014 scheduling flushUpdate`
|
|
181200
|
+
);
|
|
181183
181201
|
this.pendingMappedChange = true;
|
|
181184
181202
|
this.flushUpdate(this.lastState);
|
|
181185
181203
|
}
|