hoffmation-base 3.2.18 → 3.2.21

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.
@@ -204,7 +204,7 @@ class Dachs extends RoomBaseDevice_1.RoomBaseDevice {
204
204
  if (!shouldDachsBeStarted) {
205
205
  return;
206
206
  }
207
- const setStateCommand = new command_1.ActuatorSetStateCommand(action, true, 'Energy Level of battery dropped to critical level', new command_1.BlockAutomaticCommand(action, 5 * 60 * 1000, 'Dachs is starting/on', enums_1.CollisionSolving.overrideIfGreater, false));
207
+ const setStateCommand = new command_1.ActuatorSetStateCommand(action, true, 'Energy Level of battery dropped to critical level', new command_1.BlockAutomaticCommand(action, 15 * 60 * 1000, 'Dachs is starting/on', enums_1.CollisionSolving.overrideIfGreater, false));
208
208
  setStateCommand.overrideCommandSource = enums_1.CommandSource.Automatic;
209
209
  this.setActuator(setStateCommand);
210
210
  }
@@ -242,6 +242,10 @@ class Dachs extends RoomBaseDevice_1.RoomBaseDevice {
242
242
  desiredWwPumpState = false;
243
243
  reason = `Temperature of warm water pump ${wwTemp}°C is higher than temperature of heat storage ${heatStorageTemp}°C`;
244
244
  }
245
+ else if (wwTemp > this.settings.warmWaterDesiredMaxTemp) {
246
+ desiredWwPumpState = false;
247
+ reason = `Temperature of warm water pump ${wwTemp}°C is higher than the desired max value`;
248
+ }
245
249
  else if (this._dachsOn) {
246
250
  desiredWwPumpState = true;
247
251
  reason = 'Dachs is on anyways';
@@ -57,6 +57,10 @@ export interface iDachsDeviceSettings extends iActuatorSettings {
57
57
  * Defines the desired minimum temperature for warm water.
58
58
  */
59
59
  warmWaterDesiredMinTemp: number;
60
+ /**
61
+ * Defines the desired maximum temperature for warm water using dachs.
62
+ */
63
+ warmWaterDesiredMaxTemp: number;
60
64
  /**
61
65
  * Defines the desired minimum temperature for heat storage during winter.
62
66
  */
@@ -24,6 +24,8 @@ export declare class DachsDeviceSettings extends ActuatorSettings implements iDa
24
24
  /** @inheritDoc */
25
25
  warmWaterDesiredMinTemp: number;
26
26
  /** @inheritDoc */
27
+ warmWaterDesiredMaxTemp: number;
28
+ /** @inheritDoc */
27
29
  winterMinimumHeatStorageTemp: number;
28
30
  /** @inheritDoc */
29
31
  winterMinimumPreNightHeatStorageTemp: number;
@@ -29,12 +29,14 @@ class DachsDeviceSettings extends actuatorSettings_1.ActuatorSettings {
29
29
  /** @inheritDoc */
30
30
  this.warmWaterDesiredMinTemp = 45;
31
31
  /** @inheritDoc */
32
+ this.warmWaterDesiredMaxTemp = 75;
33
+ /** @inheritDoc */
32
34
  this.winterMinimumHeatStorageTemp = 55;
33
35
  /** @inheritDoc */
34
36
  this.winterMinimumPreNightHeatStorageTemp = 65;
35
37
  }
36
38
  fromPartialObject(data) {
37
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
39
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
38
40
  this.disableHeatingRod = (_a = data.disableHeatingRod) !== null && _a !== void 0 ? _a : this.disableHeatingRod;
39
41
  this.disableDachsOwnWW = (_b = data.disableDachsOwnWW) !== null && _b !== void 0 ? _b : this.disableDachsOwnWW;
40
42
  this.disableDachsTemporarily = (_c = data.disableDachsTemporarily) !== null && _c !== void 0 ? _c : this.disableDachsTemporarily;
@@ -49,9 +51,10 @@ class DachsDeviceSettings extends actuatorSettings_1.ActuatorSettings {
49
51
  (_j = data.batteryLevelPreventStartAtNightThreshold) !== null && _j !== void 0 ? _j : this.batteryLevelPreventStartAtNightThreshold;
50
52
  this.batteryLevelAllowStartThreshold = (_k = data.batteryLevelAllowStartThreshold) !== null && _k !== void 0 ? _k : this.batteryLevelAllowStartThreshold;
51
53
  this.warmWaterDesiredMinTemp = (_l = data.warmWaterDesiredMinTemp) !== null && _l !== void 0 ? _l : this.warmWaterDesiredMinTemp;
52
- this.winterMinimumHeatStorageTemp = (_m = data.winterMinimumHeatStorageTemp) !== null && _m !== void 0 ? _m : this.winterMinimumHeatStorageTemp;
54
+ this.warmWaterDesiredMaxTemp = (_m = data.warmWaterDesiredMaxTemp) !== null && _m !== void 0 ? _m : this.warmWaterDesiredMaxTemp;
55
+ this.winterMinimumHeatStorageTemp = (_o = data.winterMinimumHeatStorageTemp) !== null && _o !== void 0 ? _o : this.winterMinimumHeatStorageTemp;
53
56
  this.winterMinimumPreNightHeatStorageTemp =
54
- (_o = data.winterMinimumPreNightHeatStorageTemp) !== null && _o !== void 0 ? _o : this.winterMinimumPreNightHeatStorageTemp;
57
+ (_p = data.winterMinimumPreNightHeatStorageTemp) !== null && _p !== void 0 ? _p : this.winterMinimumPreNightHeatStorageTemp;
55
58
  super.fromPartialObject(data);
56
59
  }
57
60
  toJSON() {