hoffmation-base 3.2.10-alpha.0 → 3.2.10-alpha.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.
|
@@ -19,13 +19,12 @@ export declare class ZigbeeShutter extends ZigbeeDevice implements iShutter {
|
|
|
19
19
|
protected _window?: iWindow;
|
|
20
20
|
/** Implements iTemporaryDisableAutomatic */
|
|
21
21
|
readonly blockAutomationHandler: BlockAutomaticHandler;
|
|
22
|
-
|
|
22
|
+
/** @inheritDoc */
|
|
23
|
+
targetAutomaticValue: number;
|
|
23
24
|
/** @inheritDoc */
|
|
24
25
|
baseAutomaticLevel: number;
|
|
25
26
|
constructor(pInfo: IoBrokerDeviceInfo, pType: DeviceType);
|
|
26
27
|
/** @inheritDoc */
|
|
27
|
-
get targetAutomaticValue(): number;
|
|
28
|
-
/** @inheritDoc */
|
|
29
28
|
get currentLevel(): number;
|
|
30
29
|
/** @inheritDoc */
|
|
31
30
|
get window(): iWindow | undefined;
|
|
@@ -23,7 +23,8 @@ class ZigbeeShutter extends zigbeeDevice_1.ZigbeeDevice {
|
|
|
23
23
|
this._setLevelTime = -1;
|
|
24
24
|
this._shutterCalibrationData = new models_1.ShutterCalibration(this.info.fullID, 0, 0, 0, 0);
|
|
25
25
|
this._currentLevel = -1;
|
|
26
|
-
|
|
26
|
+
/** @inheritDoc */
|
|
27
|
+
this.targetAutomaticValue = 0;
|
|
27
28
|
/** @inheritDoc */
|
|
28
29
|
this.baseAutomaticLevel = 0;
|
|
29
30
|
this.deviceCapabilities.push(enums_1.DeviceCapability.shutter);
|
|
@@ -45,10 +46,6 @@ class ZigbeeShutter extends zigbeeDevice_1.ZigbeeDevice {
|
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
/** @inheritDoc */
|
|
48
|
-
get targetAutomaticValue() {
|
|
49
|
-
return this._targetAutomaticValue;
|
|
50
|
-
}
|
|
51
|
-
/** @inheritDoc */
|
|
52
49
|
get currentLevel() {
|
|
53
50
|
if (this._setLevel !== -1 && this._currentLevel !== this._setLevel) {
|
|
54
51
|
return this._setLevel;
|
|
@@ -131,7 +128,7 @@ class ZigbeeShutter extends zigbeeDevice_1.ZigbeeDevice {
|
|
|
131
128
|
* @param command - The command to restore the automatic value/state
|
|
132
129
|
*/
|
|
133
130
|
restoreTargetAutomaticValue(command) {
|
|
134
|
-
this.setLevel(new command_1.ShutterSetLevelCommand(command, this.
|
|
131
|
+
this.setLevel(new command_1.ShutterSetLevelCommand(command, this.targetAutomaticValue));
|
|
135
132
|
}
|
|
136
133
|
initializeMovementFinishTimeout(duration, endPosition) {
|
|
137
134
|
if (this._iMovementFinishTimeout !== null) {
|