hoffmation-base 3.2.1-alpha.0 → 3.2.1-alpha.10
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.
- package/lib/action/actuatorChangeAction.js +1 -1
- package/lib/action/baseAction.d.ts +2 -1
- package/lib/action/baseAction.js +1 -2
- package/lib/action/batteryLevelChangeAction.js +1 -1
- package/lib/action/handleChangeAction.js +1 -1
- package/lib/action/humiditySensorChangeAction.js +1 -1
- package/lib/action/motionSensorAction.js +1 -1
- package/lib/action/presenceGroupAnyMovementAction.d.ts +2 -2
- package/lib/action/presenceGroupFirstEnterAction.d.ts +2 -2
- package/lib/action/presenceGroupLastLeftAction.d.ts +2 -2
- package/lib/action/shutterPositionChangedAction.js +1 -1
- package/lib/action/temperatureSensorChangeAction.js +1 -1
- package/lib/command/baseCommand.d.ts +7 -1
- package/lib/command/baseCommand.js +17 -8
- package/lib/devices/BaseDevice.js +8 -1
- package/lib/devices/CameraDevice.d.ts +1 -2
- package/lib/devices/CameraDevice.js +1 -10
- package/lib/devices/dachs/dachs.d.ts +0 -2
- package/lib/devices/dachs/dachs.js +11 -15
- package/lib/devices/dachs/dachsTemperatureSensor.d.ts +0 -6
- package/lib/devices/dachs/dachsTemperatureSensor.js +1 -22
- package/lib/devices/espresense/detectedBluetoothDevice.d.ts +3 -4
- package/lib/devices/espresense/detectedBluetoothDevice.js +1 -7
- package/lib/devices/espresense/espresenseDevice.d.ts +1 -3
- package/lib/devices/espresense/espresenseDevice.js +8 -11
- package/lib/devices/govee/own-govee-device.js +0 -1
- package/lib/devices/hmIPDevices/hmIpRoll.d.ts +0 -2
- package/lib/devices/hmIPDevices/hmIpRoll.js +1 -7
- package/lib/devices/sharedFunctions/lampUtils.js +0 -1
- package/lib/devices/tv/tvDevice.js +2 -6
- package/lib/devices/velux/veluxShutter.d.ts +0 -2
- package/lib/devices/velux/veluxShutter.js +1 -7
- package/lib/devices/victron/victron-device.js +1 -1
- package/lib/interfaces/iJsonCustomPrepend.d.ts +9 -0
- package/lib/interfaces/iJsonCustomPrepend.js +2 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/interfaces/index.js +1 -0
- package/lib/services/ac/ac-device.js +2 -6
- package/lib/services/ac/own-daikin-device.d.ts +0 -2
- package/lib/services/ac/own-daikin-device.js +1 -11
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/ringStorage.d.ts +1 -0
- package/lib/utils/ringStorage.js +3 -0
- package/lib/utils/utils.js +7 -1
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { iShutter, iWindow } from '../../interfaces';
|
|
|
3
3
|
import { ShutterSettings } from '../../settingsObjects';
|
|
4
4
|
import { IoBrokerDeviceInfo } from '../IoBrokerDeviceInfo';
|
|
5
5
|
import { ShutterSetLevelCommand } from '../../command';
|
|
6
|
-
import { IoBrokerBaseDevice } from '../IoBrokerBaseDevice';
|
|
7
6
|
export declare class VeluxShutter extends VeluxDevice implements iShutter {
|
|
8
7
|
/** @inheritDoc */
|
|
9
8
|
settings: ShutterSettings;
|
|
@@ -22,6 +21,5 @@ export declare class VeluxShutter extends VeluxDevice implements iShutter {
|
|
|
22
21
|
update(idSplit: string[], state: ioBroker.State, initial?: boolean): void;
|
|
23
22
|
persist(): void;
|
|
24
23
|
setLevel(command: ShutterSetLevelCommand): void;
|
|
25
|
-
toJSON(): Partial<IoBrokerBaseDevice>;
|
|
26
24
|
private setCurrentLevel;
|
|
27
25
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.VeluxShutter = void 0;
|
|
7
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
8
4
|
const veluxDevice_1 = require("./veluxDevice");
|
|
9
5
|
const settingsObjects_1 = require("../../settingsObjects");
|
|
10
6
|
const enums_1 = require("../../enums");
|
|
@@ -21,6 +17,7 @@ class VeluxShutter extends veluxDevice_1.VeluxDevice {
|
|
|
21
17
|
this._setLevel = -1;
|
|
22
18
|
this._setLevelTime = -1;
|
|
23
19
|
this._currentLevel = -1;
|
|
20
|
+
this.jsonOmitKeys.push('_window');
|
|
24
21
|
this.deviceCapabilities.push(enums_1.DeviceCapability.shutter);
|
|
25
22
|
this._setLevelSwitchID = `${this.info.fullID}.targetPosition`;
|
|
26
23
|
(_a = this.dbo) === null || _a === void 0 ? void 0 : _a.getLastDesiredPosition(this).then((val) => {
|
|
@@ -103,9 +100,6 @@ class VeluxShutter extends veluxDevice_1.VeluxDevice {
|
|
|
103
100
|
// Level is inverted for Velux Adapter (100 = 0, 0 = 100, 25 = 75, etc.)
|
|
104
101
|
this.setState(this._setLevelSwitchID, Math.abs(targetLevel - 100));
|
|
105
102
|
}
|
|
106
|
-
toJSON() {
|
|
107
|
-
return lodash_1.default.omit(super.toJSON(), ['_window']);
|
|
108
|
-
}
|
|
109
103
|
setCurrentLevel(value, initial = false) {
|
|
110
104
|
let correctedValue = Math.abs(value - 100);
|
|
111
105
|
if (correctedValue !== this._setLevel && utils_1.Utils.nowMS() - this._setLevelTime < 60 * 10000) {
|
|
@@ -135,7 +135,7 @@ class VictronDevice extends BaseDevice_1.BaseDevice {
|
|
|
135
135
|
injectingWattage: this.injectingWattage,
|
|
136
136
|
selfConsumingWattage: this.selfConsumingWattage,
|
|
137
137
|
},
|
|
138
|
-
...
|
|
138
|
+
...super.toJSON(),
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
@@ -16,6 +16,7 @@ export * from './iButtonCallback';
|
|
|
16
16
|
export * from './iButtonCapabilities';
|
|
17
17
|
export * from './iDeviceInfo';
|
|
18
18
|
export * from './iIdHolder';
|
|
19
|
+
export * from './iJsonCustomPrepend';
|
|
19
20
|
export * from './iJsonOmitKeys';
|
|
20
21
|
export * from './iLogSettings';
|
|
21
22
|
export * from './iAsusConfig';
|
package/lib/interfaces/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./iButtonCallback"), exports);
|
|
|
32
32
|
__exportStar(require("./iButtonCapabilities"), exports);
|
|
33
33
|
__exportStar(require("./iDeviceInfo"), exports);
|
|
34
34
|
__exportStar(require("./iIdHolder"), exports);
|
|
35
|
+
__exportStar(require("./iJsonCustomPrepend"), exports);
|
|
35
36
|
__exportStar(require("./iJsonOmitKeys"), exports);
|
|
36
37
|
__exportStar(require("./iLogSettings"), exports);
|
|
37
38
|
__exportStar(require("./iAsusConfig"), exports);
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AcDevice = void 0;
|
|
7
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
8
4
|
const devices_1 = require("../../devices");
|
|
9
5
|
const interfaces_1 = require("../../interfaces");
|
|
10
6
|
const enums_1 = require("../../enums");
|
|
@@ -301,9 +297,9 @@ class AcDevice extends devices_1.RoomBaseDevice {
|
|
|
301
297
|
/** @inheritDoc */
|
|
302
298
|
toJSON() {
|
|
303
299
|
// eslint-disable-next-line
|
|
304
|
-
const result =
|
|
300
|
+
const result = super.toJSON();
|
|
305
301
|
result['on'] = this.on;
|
|
306
|
-
return
|
|
302
|
+
return result;
|
|
307
303
|
}
|
|
308
304
|
}
|
|
309
305
|
exports.AcDevice = AcDevice;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.OwnDaikinDevice = void 0;
|
|
7
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
8
4
|
const ac_device_1 = require("./ac-device");
|
|
9
5
|
const daikin_controller_1 = require("daikin-controller");
|
|
10
6
|
const enums_1 = require("../../enums");
|
|
@@ -35,6 +31,7 @@ class OwnDaikinDevice extends ac_device_1.AcDevice {
|
|
|
35
31
|
/** @inheritDoc */
|
|
36
32
|
this.deviceType = enums_1.DeviceType.Daikin;
|
|
37
33
|
this._on = false;
|
|
34
|
+
this.jsonOmitKeys.push('_device');
|
|
38
35
|
}
|
|
39
36
|
get device() {
|
|
40
37
|
return this._device;
|
|
@@ -191,12 +188,5 @@ class OwnDaikinDevice extends ac_device_1.AcDevice {
|
|
|
191
188
|
}
|
|
192
189
|
});
|
|
193
190
|
}
|
|
194
|
-
/** @inheritDoc */
|
|
195
|
-
toJSON() {
|
|
196
|
-
// eslint-disable-next-line
|
|
197
|
-
const result = lodash_1.default.omit(super.toJSON(), ['device', '_device']);
|
|
198
|
-
result['on'] = this.on;
|
|
199
|
-
return utils_1.Utils.jsonFilter(result);
|
|
200
|
-
}
|
|
201
191
|
}
|
|
202
192
|
exports.OwnDaikinDevice = OwnDaikinDevice;
|