hoffmation-base 3.0.0-alpha.90 → 3.0.0-alpha.92

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.
@@ -1,6 +1,5 @@
1
- import { TemperatureSensorChangeAction } from '../../../models';
1
+ import { iJsonOmitKeys, TemperatureSensorChangeAction } from '../../../models';
2
2
  import { iTemperatureSensor } from '../baseDeviceInterfaces';
3
- import { iJsonOmitKeys } from '../../../models/iJsonOmitKeys';
4
3
  export declare class TemperatureSensor implements iJsonOmitKeys {
5
4
  private readonly _device;
6
5
  /** @inheritDoc */
@@ -17,6 +16,7 @@ export declare class TemperatureSensor implements iJsonOmitKeys {
17
16
  private _temperaturCallbacks;
18
17
  constructor(_device: iTemperatureSensor);
19
18
  set temperature(val: number);
19
+ get temperature(): number;
20
20
  /**
21
21
  * Persists the current temperature sensor information to the database
22
22
  */
@@ -28,6 +28,9 @@ class TemperatureSensor {
28
28
  cb(new models_1.TemperatureSensorChangeAction(this._device, val));
29
29
  }
30
30
  }
31
+ get temperature() {
32
+ return this._temperature;
33
+ }
31
34
  /**
32
35
  * Persists the current temperature sensor information to the database
33
36
  */
@@ -56,7 +56,7 @@ class ZigbeeWindowHandle extends index_1.ZigbeeDevice {
56
56
  super.update(idSplit, state, initial, pOverride);
57
57
  switch (idSplit[3]) {
58
58
  case 'position':
59
- this.handleSensor.position = this.toWindowPosition(state.val);
59
+ this.handleSensor.updatePosition(this.toWindowPosition(state.val));
60
60
  break;
61
61
  case 'battery':
62
62
  this.battery.level = state.val;