hoffmation-base 2.18.12 → 2.18.13
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.
|
@@ -122,7 +122,7 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
checkAutomaticChange() {
|
|
125
|
-
var _a, _b
|
|
125
|
+
var _a, _b;
|
|
126
126
|
if (!this._initialSeasonCheckDone) {
|
|
127
127
|
this.checkSeasonTurnOff();
|
|
128
128
|
}
|
|
@@ -135,7 +135,12 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
|
|
|
135
135
|
if (!this.settings.useOwnTemperatur && !this.settings.controlByPid) {
|
|
136
136
|
this.setExternalTemperatureEnabled(true);
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const heatGroup = (_a = this.room) === null || _a === void 0 ? void 0 : _a.HeatGroup;
|
|
139
|
+
if (heatGroup === undefined) {
|
|
140
|
+
this.log(models_1.LogLevel.Warn, `HeatGroup is undefined for ${this.info.customName}`);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const heatGroupSettings = heatGroup.settings;
|
|
139
144
|
if ((heatGroupSettings === null || heatGroupSettings === void 0 ? void 0 : heatGroupSettings.automaticMode) == false) {
|
|
140
145
|
this.desiredTemperature = heatGroupSettings.manualTemperature;
|
|
141
146
|
return;
|
|
@@ -143,8 +148,7 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
|
|
|
143
148
|
if (!this.settings.automaticMode) {
|
|
144
149
|
return;
|
|
145
150
|
}
|
|
146
|
-
const
|
|
147
|
-
const targetTemperature = (_h = (_g = setting === null || setting === void 0 ? void 0 : setting.temperature) !== null && _g !== void 0 ? _g : heatGroupSettings === null || heatGroupSettings === void 0 ? void 0 : heatGroupSettings.automaticFallBackTemperatur) !== null && _h !== void 0 ? _h : 20;
|
|
151
|
+
const targetTemperature = (_b = heatGroup.desiredTemp) !== null && _b !== void 0 ? _b : 20;
|
|
148
152
|
if (this._desiredTemperatur !== targetTemperature) {
|
|
149
153
|
this.log(models_1.LogLevel.Debug, `Automatische Temperaturanpassung für ${this.info.customName} auf ${targetTemperature}°C`);
|
|
150
154
|
this.desiredTemperature = targetTemperature;
|