hoffmation-base 3.2.1 → 3.2.2

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.
@@ -89,7 +89,7 @@ class Dachs extends RoomBaseDevice_1.RoomBaseDevice {
89
89
  /** @inheritDoc */
90
90
  get id() {
91
91
  var _a;
92
- return (_a = this.info.allDevicesKey) !== null && _a !== void 0 ? _a : `sonos-${this.info.room}-${this.info.customName}`;
92
+ return (_a = this.info.allDevicesKey) !== null && _a !== void 0 ? _a : `dachs-${this.info.room}-${this.info.customName}`;
93
93
  }
94
94
  get name() {
95
95
  return this.info.customName;
@@ -269,7 +269,10 @@ class Dachs extends RoomBaseDevice_1.RoomBaseDevice {
269
269
  if (this.heatingRod === undefined) {
270
270
  return;
271
271
  }
272
- const shouldBeOff = batteryLevel < this.settings.batteryLevelHeatingRodThreshold;
272
+ const shouldBeOff = batteryLevel < this.settings.batteryLevelHeatingRodThreshold &&
273
+ !(settings_service_1.SettingsService.heatMode === enums_1.HeatingMode.Winter &&
274
+ batteryLevel > this.settings.batteryLevelPreventStartThreshold &&
275
+ this.heatStorageTempSensor.temperatureSensor.temperature < 60);
273
276
  if (this.heatingRod.actuatorOn !== shouldBeOff) {
274
277
  return;
275
278
  }