@riddix/hamh 2.1.0-alpha.398 → 2.1.0-alpha.399
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
|
@@ -165627,9 +165627,9 @@ var OnOffServerBase = class extends OnOffServer {
|
|
|
165627
165627
|
};
|
|
165628
165628
|
logger158.info(`[${homeAssistant.entityId}] Turning ON -> ${action.action}`);
|
|
165629
165629
|
notifyLightTurnedOn(homeAssistant.entityId);
|
|
165630
|
+
applyPatchState(this.state, { onOff: true });
|
|
165630
165631
|
homeAssistant.callAction(action);
|
|
165631
165632
|
if (turnOff === null) {
|
|
165632
|
-
applyPatchState(this.state, { onOff: true });
|
|
165633
165633
|
setTimeout(this.callback(this.autoReset), 1e3);
|
|
165634
165634
|
}
|
|
165635
165635
|
}
|
|
@@ -165644,6 +165644,7 @@ var OnOffServerBase = class extends OnOffServer {
|
|
|
165644
165644
|
action: "homeassistant.turn_off"
|
|
165645
165645
|
};
|
|
165646
165646
|
logger158.info(`[${homeAssistant.entityId}] Turning OFF -> ${action.action}`);
|
|
165647
|
+
applyPatchState(this.state, { onOff: false });
|
|
165647
165648
|
homeAssistant.callAction(action);
|
|
165648
165649
|
}
|
|
165649
165650
|
autoReset() {
|
|
@@ -166878,7 +166879,7 @@ var FanFanControlServer = FanControlServer2(fanControlConfig);
|
|
|
166878
166879
|
var FanOnOffServer = OnOffServer2({
|
|
166879
166880
|
turnOn: () => ({ action: "fan.turn_on" }),
|
|
166880
166881
|
turnOff: () => ({ action: "fan.turn_off" })
|
|
166881
|
-
})
|
|
166882
|
+
});
|
|
166882
166883
|
|
|
166883
166884
|
// src/matter/endpoints/composed/composed-air-purifier-endpoint.ts
|
|
166884
166885
|
var logger160 = Logger.get("ComposedAirPurifierEndpoint");
|