hoffmation-base 3.2.3-alpha.0 → 3.2.3-alpha.1
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.
|
@@ -280,7 +280,7 @@ class Dachs extends RoomBaseDevice_1.RoomBaseDevice {
|
|
|
280
280
|
this.heatingRod.setActuator(setAction);
|
|
281
281
|
}
|
|
282
282
|
shouldDachsBeStarted(action, batteryLevel) {
|
|
283
|
-
var _a, _b;
|
|
283
|
+
var _a, _b, _c;
|
|
284
284
|
const dayType = services_1.TimeCallbackService.dayType(new models_1.SunTimeOffsets());
|
|
285
285
|
if (this.blockDachsStart !== undefined) {
|
|
286
286
|
if ((dayType === enums_1.TimeOfDay.Daylight || dayType === enums_1.TimeOfDay.BeforeSunrise) &&
|
|
@@ -302,11 +302,13 @@ class Dachs extends RoomBaseDevice_1.RoomBaseDevice {
|
|
|
302
302
|
const liftAction = new command_1.ActuatorSetStateCommand(action, false, `Battery reached ${batteryLevel}%, Dachs is now allowed to run if needed`, null);
|
|
303
303
|
this.blockDachsStart.setActuator(liftAction);
|
|
304
304
|
}
|
|
305
|
-
else if (utils_1.Utils.nowMS() - this._blockStarted > 180 * 60 * 60
|
|
305
|
+
else if (utils_1.Utils.nowMS() - this._blockStarted > 180 * 60 * 60 &&
|
|
306
|
+
(((_a = settings_service_1.SettingsService.settings.heaterSettings) === null || _a === void 0 ? void 0 : _a.mode) === enums_1.HeatingMode.Winter ||
|
|
307
|
+
this.warmWaterDachsAlternativeActuator === undefined)) {
|
|
306
308
|
const liftAction = new command_1.ActuatorSetStateCommand(action, false, `Battery is at ${batteryLevel}%, but Dachs wasn't allowed to run for 3 hours, Dachs is now allowed to run if needed`, null);
|
|
307
309
|
this.blockDachsStart.setActuator(liftAction);
|
|
308
310
|
}
|
|
309
|
-
else if (((
|
|
311
|
+
else if (((_b = settings_service_1.SettingsService.settings.heaterSettings) === null || _b === void 0 ? void 0 : _b.mode) === enums_1.HeatingMode.Winter &&
|
|
310
312
|
this.heatStorageTempSensor.temperatureSensor.temperature < this.settings.winterMinimumPreNightHeatStorageTemp &&
|
|
311
313
|
utils_1.Utils.dateByTimeSpan(21, 30) < new Date()) {
|
|
312
314
|
const liftWinterAction = new command_1.ActuatorSetStateCommand(action, false, `Battery at ${batteryLevel}% but it is winter, we are nearing night and heat storage is kinda cold: Dachs is now allowed to run if needed`, null);
|
|
@@ -321,7 +323,7 @@ class Dachs extends RoomBaseDevice_1.RoomBaseDevice {
|
|
|
321
323
|
// We are already running
|
|
322
324
|
return false;
|
|
323
325
|
}
|
|
324
|
-
if (((
|
|
326
|
+
if (((_c = settings_service_1.SettingsService.settings.heaterSettings) === null || _c === void 0 ? void 0 : _c.mode) === enums_1.HeatingMode.Winter &&
|
|
325
327
|
this.heatStorageTempSensor.temperatureSensor.temperature < this.settings.winterMinimumHeatStorageTemp) {
|
|
326
328
|
// It is winter and heat storage is kinda cold --> Start
|
|
327
329
|
return true;
|