@riddix/hamh 2.1.0-alpha.407 → 2.1.0-alpha.408
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
|
@@ -167512,7 +167512,7 @@ function thermostatPreInitialize(self) {
|
|
|
167512
167512
|
if (self.features.autoMode) {
|
|
167513
167513
|
self.state.minSetpointDeadBand = self.state.minSetpointDeadBand ?? 0;
|
|
167514
167514
|
}
|
|
167515
|
-
self.state.controlSequenceOfOperation = self.features.cooling && self.features.heating ? Thermostat3.ControlSequenceOfOperation.CoolingAndHeating : self.features.
|
|
167515
|
+
self.state.controlSequenceOfOperation = self.features.cooling && self.features.heating && self.features.autoMode ? Thermostat3.ControlSequenceOfOperation.CoolingAndHeating : self.features.heating ? Thermostat3.ControlSequenceOfOperation.HeatingOnly : Thermostat3.ControlSequenceOfOperation.CoolingOnly;
|
|
167516
167516
|
}
|
|
167517
167517
|
async function thermostatPostInitialize(self) {
|
|
167518
167518
|
const homeAssistant = await self.agent.load(HomeAssistantEntityBehavior);
|
|
@@ -168096,7 +168096,22 @@ var config4 = {
|
|
|
168096
168096
|
(m) => m === ClimateHvacMode.heat || m === ClimateHvacMode.heat_cool || m === ClimateHvacMode.auto
|
|
168097
168097
|
);
|
|
168098
168098
|
if (hasCooling && hasHeating) {
|
|
168099
|
-
|
|
168099
|
+
const hasAutoMode = modes.includes(ClimateHvacMode.heat_cool) && (modes.includes(ClimateHvacMode.heat) || modes.includes(ClimateHvacMode.cool));
|
|
168100
|
+
if (hasAutoMode) {
|
|
168101
|
+
return Thermostat3.ControlSequenceOfOperation.CoolingAndHeating;
|
|
168102
|
+
}
|
|
168103
|
+
if (modes.includes(ClimateHvacMode.heat) && modes.includes(ClimateHvacMode.cool)) {
|
|
168104
|
+
return Thermostat3.ControlSequenceOfOperation.CoolingAndHeating;
|
|
168105
|
+
}
|
|
168106
|
+
const hvacMode = entity.state;
|
|
168107
|
+
if (hvacMode === ClimateHvacMode.cool) {
|
|
168108
|
+
return Thermostat3.ControlSequenceOfOperation.CoolingOnly;
|
|
168109
|
+
}
|
|
168110
|
+
if (hvacMode === ClimateHvacMode.heat) {
|
|
168111
|
+
return Thermostat3.ControlSequenceOfOperation.HeatingOnly;
|
|
168112
|
+
}
|
|
168113
|
+
const direction = getHeatCoolOnlyDirection(entity, agent);
|
|
168114
|
+
return direction === "cooling" ? Thermostat3.ControlSequenceOfOperation.CoolingOnly : Thermostat3.ControlSequenceOfOperation.HeatingOnly;
|
|
168100
168115
|
}
|
|
168101
168116
|
if (hasCooling) {
|
|
168102
168117
|
return Thermostat3.ControlSequenceOfOperation.CoolingOnly;
|