hoffmation-base 2.18.5 → 2.18.6

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.
@@ -8,12 +8,14 @@ export declare class ShellyTrv extends ShellyDevice implements iHeater {
8
8
  get lastBatteryPersist(): number;
9
9
  readonly persistHeaterInterval: NodeJS.Timeout;
10
10
  get battery(): number;
11
+ get minimumLevel(): number;
11
12
  private _automaticMode;
12
13
  private _battery;
13
14
  private _iAutomaticInterval;
14
15
  private _initialSeasonCheckDone;
15
16
  private _lastRecalc;
16
17
  private _level;
18
+ private _minimumValveLevel;
17
19
  private _recalcTimeout;
18
20
  private _temperatur;
19
21
  private _targetTempVal;
@@ -22,6 +24,7 @@ export declare class ShellyTrv extends ShellyDevice implements iHeater {
22
24
  private _pidController;
23
25
  private _lastBatteryPersist;
24
26
  private readonly _batteryId;
27
+ private readonly _minumumLevelId;
25
28
  private readonly _setAutomaticModeId;
26
29
  private readonly _setExternalTempId;
27
30
  private readonly _setEnableExternalTempId;
@@ -57,4 +60,5 @@ export declare class ShellyTrv extends ShellyDevice implements iHeater {
57
60
  private setExternalTemperature;
58
61
  private setExternalTemperatureEnabled;
59
62
  private setValve;
63
+ private setMinimumLevel;
60
64
  }
@@ -15,6 +15,9 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
15
15
  get battery() {
16
16
  return this._battery;
17
17
  }
18
+ get minimumLevel() {
19
+ return this._minimumValveLevel;
20
+ }
18
21
  constructor(pInfo) {
19
22
  super(pInfo, deviceType_1.DeviceType.ShellyTrv);
20
23
  this.settings = new models_1.HeaterSettings();
@@ -26,6 +29,7 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
26
29
  this._initialSeasonCheckDone = false;
27
30
  this._lastRecalc = 0;
28
31
  this._level = 0;
32
+ this._minimumValveLevel = 0;
29
33
  this._recalcTimeout = null;
30
34
  this._temperatur = baseDeviceInterfaces_1.UNDEFINED_TEMP_VALUE;
31
35
  this._targetTempVal = baseDeviceInterfaces_1.UNDEFINED_TEMP_VALUE;
@@ -52,7 +56,8 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
52
56
  this._setExternalTempId = `${this.info.fullID}.ext.temperature`;
53
57
  this._setEnableExternalTempId = `${this.info.fullID}.ext.enabled`;
54
58
  this._setPointTemperaturID = `${this.info.fullID}.tmp.shelly.temperatureTargetC`;
55
- this._temperatureId = `${this.info.fullID}.tmp..temperatureC`;
59
+ this._minumumLevelId = `${this.info.fullID}.tmp.minimumValvePosition`;
60
+ this._temperatureId = `${this.info.fullID}.tmp.temperatureC`;
56
61
  this._valvePosId = `${this.info.fullID}.tmp.valvePosition`;
57
62
  this._iAutomaticInterval = services_1.Utils.guardedInterval(this.checkAutomaticChange, 300000, this); // Alle 5 Minuten prüfen
58
63
  services_1.TimeCallbackService.addCallback(new models_1.TimeCallback(`${this.info.fullID} Season Check`, models_1.TimeCallbackType.TimeOfDay, () => {
@@ -126,6 +131,9 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
126
131
  if (this.seasonTurnOff) {
127
132
  return;
128
133
  }
134
+ if (this.settings.pidForcedMinimum !== this.minimumLevel) {
135
+ this.setMinimumLevel(this.settings.pidForcedMinimum);
136
+ }
129
137
  if (!this.settings.useOwnTemperatur && !this.settings.controlByPid) {
130
138
  this.setExternalTemperatureEnabled(true);
131
139
  }
@@ -167,6 +175,9 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
167
175
  case this._setEnableExternalTempId:
168
176
  this._useExternalTemperatureEnabled = state.val;
169
177
  break;
178
+ case this._minumumLevelId:
179
+ this._minimumValveLevel = state.val;
180
+ break;
170
181
  case this._temperatureId:
171
182
  this._temperatur = state.val;
172
183
  break;
@@ -259,5 +270,8 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
259
270
  this.log(models_1.LogLevel.Info, `Setting Valve to new value: "${target}%"`);
260
271
  this.setState(this._valvePosId, target);
261
272
  }
273
+ setMinimumLevel(pidForcedMinimum) {
274
+ this.setState(this._minumumLevelId, pidForcedMinimum);
275
+ }
262
276
  }
263
277
  exports.ShellyTrv = ShellyTrv;