hoffmation-base 3.0.0-alpha.58 → 3.0.0-alpha.59
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.
|
@@ -40,6 +40,10 @@ export declare class AcSettings extends DeviceSettings {
|
|
|
40
40
|
* Whether this AC should be turned off for some time manually
|
|
41
41
|
*/
|
|
42
42
|
manualDisabled: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The minimum outside temperature (max. of day) in Celsius to even consider cooling.
|
|
45
|
+
*/
|
|
46
|
+
minOutdoorTempForCooling: number;
|
|
43
47
|
fromPartialObject(data: Partial<AcSettings>): void;
|
|
44
48
|
protected toJSON(): Partial<AcSettings>;
|
|
45
49
|
}
|
|
@@ -46,9 +46,13 @@ class AcSettings extends deviceSettings_1.DeviceSettings {
|
|
|
46
46
|
* Whether this AC should be turned off for some time manually
|
|
47
47
|
*/
|
|
48
48
|
this.manualDisabled = false;
|
|
49
|
+
/**
|
|
50
|
+
* The minimum outside temperature (max. of day) in Celsius to even consider cooling.
|
|
51
|
+
*/
|
|
52
|
+
this.minOutdoorTempForCooling = 21;
|
|
49
53
|
}
|
|
50
54
|
fromPartialObject(data) {
|
|
51
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
55
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
52
56
|
this.minimumHours = (_a = data.minimumHours) !== null && _a !== void 0 ? _a : this.minimumHours;
|
|
53
57
|
this.minimumMinutes = (_b = data.minimumMinutes) !== null && _b !== void 0 ? _b : this.minimumMinutes;
|
|
54
58
|
this.maximumHours = (_c = data.maximumHours) !== null && _c !== void 0 ? _c : this.maximumHours;
|
|
@@ -58,6 +62,7 @@ class AcSettings extends deviceSettings_1.DeviceSettings {
|
|
|
58
62
|
this.useOwnTemperature = (_g = data.useOwnTemperature) !== null && _g !== void 0 ? _g : this.useOwnTemperature;
|
|
59
63
|
this.useAutomatic = (_h = data.useAutomatic) !== null && _h !== void 0 ? _h : this.useAutomatic;
|
|
60
64
|
this.manualDisabled = (_j = data.manualDisabled) !== null && _j !== void 0 ? _j : this.manualDisabled;
|
|
65
|
+
this.minOutdoorTempForCooling = (_k = data.minOutdoorTempForCooling) !== null && _k !== void 0 ? _k : this.minOutdoorTempForCooling;
|
|
61
66
|
super.fromPartialObject(data);
|
|
62
67
|
}
|
|
63
68
|
toJSON() {
|
|
@@ -29,7 +29,7 @@ class AcDevice {
|
|
|
29
29
|
return false;
|
|
30
30
|
}
|
|
31
31
|
if (weather_1.WeatherService.active &&
|
|
32
|
-
weather_1.WeatherService.todayMaxTemp <
|
|
32
|
+
weather_1.WeatherService.todayMaxTemp < this.settings.minOutdoorTempForCooling &&
|
|
33
33
|
weather_1.WeatherService.todayMaxTemp !== devices_1.UNDEFINED_TEMP_VALUE) {
|
|
34
34
|
// As it is quite cold outside there is no need to cool
|
|
35
35
|
return false;
|