@riddix/hamh 2.1.0-alpha.619 → 2.1.0-alpha.620

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.
@@ -171698,8 +171698,8 @@ var config4 = {
171698
171698
  const direction = getHeatCoolOnlyDirection(entity, agent);
171699
171699
  return direction === "cooling" ? Thermostat3.SystemMode.Cool : Thermostat3.SystemMode.Heat;
171700
171700
  }
171701
- const hasHeatCool = modes.includes(ClimateHvacMode.heat_cool);
171702
- if (hasHeatCool) {
171701
+ const hasMatterAuto = modes.includes(ClimateHvacMode.heat_cool) || modes.includes(ClimateHvacMode.auto);
171702
+ if (hasMatterAuto) {
171703
171703
  return systemMode;
171704
171704
  }
171705
171705
  const hasCooling = modes.some((m) => m === ClimateHvacMode.cool);
@@ -171887,7 +171887,7 @@ function ClimateDevice(homeAssistantEntity) {
171887
171887
  minCoolSetpointLimit: toMatterTemp(attributes7.min_temp) ?? 0,
171888
171888
  maxCoolSetpointLimit: toMatterTemp(attributes7.max_temp) ?? 5e3
171889
171889
  };
171890
- const autoMode = supportsHeating && supportsCooling && attributes7.hvac_modes.includes(ClimateHvacMode.heat_cool) && (attributes7.hvac_modes.includes(ClimateHvacMode.heat) || attributes7.hvac_modes.includes(ClimateHvacMode.cool));
171890
+ const autoMode = supportsHeating && supportsCooling && (attributes7.hvac_modes.includes(ClimateHvacMode.heat_cool) || attributes7.hvac_modes.includes(ClimateHvacMode.auto)) && (attributes7.hvac_modes.includes(ClimateHvacMode.heat) || attributes7.hvac_modes.includes(ClimateHvacMode.cool));
171891
171891
  return ClimateDeviceType(
171892
171892
  supportsOnOff,
171893
171893
  supportsHumidity,