hoffmation-base 3.0.0-alpha.99 → 3.0.0-beta.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.
@@ -31,9 +31,12 @@ class ZigbeeTuyaValve extends BaseDevices_1.ZigbeeHeater {
31
31
  this._desiredTemperatur = val;
32
32
  this.checkTempDiff();
33
33
  }
34
+ get roomTemperature() {
35
+ return super.roomTemperature;
36
+ }
34
37
  /** @inheritDoc */
35
- set roomTemperatur(value) {
36
- this._roomTemperature = value;
38
+ set roomTemperature(value) {
39
+ super.roomTemperature = value;
37
40
  if (this.settings.useOwnTemperatur) {
38
41
  return;
39
42
  }
@@ -81,7 +84,7 @@ class ZigbeeTuyaValve extends BaseDevices_1.ZigbeeHeater {
81
84
  if (this.settings.useOwnTemperatur) {
82
85
  return;
83
86
  }
84
- const desiredDiff = services_1.Utils.round(this.desiredTemperature - this._roomTemperature, 1);
87
+ const desiredDiff = services_1.Utils.round(this.desiredTemperature - this.roomTemperature, 1);
85
88
  const currentDiff = this.tempDiff;
86
89
  const missingDiff = services_1.Utils.round(desiredDiff - currentDiff, 1);
87
90
  if (Math.abs(missingDiff) < 0.15) {
@@ -97,7 +100,7 @@ class ZigbeeTuyaValve extends BaseDevices_1.ZigbeeHeater {
97
100
  }
98
101
  const newLocalDiff = Math.sign(desiredDiff) * -9;
99
102
  this.setLocalDiff(newLocalDiff);
100
- this.setTargetTemperatur(this._localTempVal + this._roomTemperature + newLocalDiff + this.desiredTemperature);
103
+ this.setTargetTemperatur(this._localTempVal + this.roomTemperature + newLocalDiff + this.desiredTemperature);
101
104
  }
102
105
  setLocalDiff(newLocalDiff) {
103
106
  this.log(models_1.LogLevel.Debug, `Setting new Local Calibration Diff (${newLocalDiff}) for Tuya Valve`);