hoffmation-base 3.2.30 → 3.2.31
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/devices/BaseDevice.d.ts +1 -2
- package/lib/devices/BaseDevice.js +2 -2
- package/lib/devices/dachs/dachsTemperatureSensor.d.ts +0 -3
- package/lib/devices/dachs/dachsTemperatureSensor.js +0 -2
- package/lib/devices/espresense/detectedBluetoothDevice.d.ts +0 -2
- package/lib/devices/espresense/detectedBluetoothDevice.js +0 -2
- package/lib/devices/espresense/espresenseDevice.d.ts +0 -2
- package/lib/devices/espresense/espresenseDevice.js +0 -2
- package/lib/settingsObjects/deviceSettings/deviceSettings.d.ts +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -14,9 +14,8 @@ export declare abstract class BaseDevice implements iBaseDevice {
|
|
|
14
14
|
readonly deviceCapabilities: DeviceCapability[];
|
|
15
15
|
/**
|
|
16
16
|
* @inheritDoc
|
|
17
|
-
* @default undefined (no Settings)
|
|
18
17
|
*/
|
|
19
|
-
settings: iDeviceSettings
|
|
18
|
+
settings: iDeviceSettings;
|
|
20
19
|
/**
|
|
21
20
|
* The last actions this device performed
|
|
22
21
|
*/
|
|
@@ -9,6 +9,7 @@ const utils_1 = require("../utils");
|
|
|
9
9
|
const logging_1 = require("../logging");
|
|
10
10
|
const services_1 = require("../services");
|
|
11
11
|
const lodash_1 = __importDefault(require("lodash"));
|
|
12
|
+
const settingsObjects_1 = require("../settingsObjects");
|
|
12
13
|
class BaseDevice {
|
|
13
14
|
constructor(_info, deviceType) {
|
|
14
15
|
this._info = _info;
|
|
@@ -21,9 +22,8 @@ class BaseDevice {
|
|
|
21
22
|
this.deviceCapabilities = [];
|
|
22
23
|
/**
|
|
23
24
|
* @inheritDoc
|
|
24
|
-
* @default undefined (no Settings)
|
|
25
25
|
*/
|
|
26
|
-
this.settings =
|
|
26
|
+
this.settings = new settingsObjects_1.DeviceSettings();
|
|
27
27
|
/**
|
|
28
28
|
* The last actions this device performed
|
|
29
29
|
*/
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { iTemperatureCollector } from '../../interfaces';
|
|
2
|
-
import { DeviceSettings } from '../../settingsObjects';
|
|
3
2
|
import { TemperatureSensor } from '../sharedFunctions';
|
|
4
3
|
import { TemperatureSensorChangeAction } from '../../action';
|
|
5
4
|
import { RoomBaseDevice } from '../RoomBaseDevice';
|
|
6
5
|
export declare class DachsTemperatureSensor extends RoomBaseDevice implements iTemperatureCollector {
|
|
7
|
-
/** @inheritDoc */
|
|
8
|
-
settings: DeviceSettings | undefined;
|
|
9
6
|
/** @inheritDoc */
|
|
10
7
|
temperatureSensor: TemperatureSensor;
|
|
11
8
|
constructor(roomName: string, shortKey: string, longKey: string);
|
|
@@ -16,8 +16,6 @@ class DachsTemperatureSensor extends RoomBaseDevice_1.RoomBaseDevice {
|
|
|
16
16
|
info.room = roomName;
|
|
17
17
|
super(info, enums_1.DeviceType.DachsWarmWaterTemperature);
|
|
18
18
|
/** @inheritDoc */
|
|
19
|
-
this.settings = undefined;
|
|
20
|
-
/** @inheritDoc */
|
|
21
19
|
this.temperatureSensor = new sharedFunctions_1.TemperatureSensor(this);
|
|
22
20
|
this.deviceCapabilities.push(enums_1.DeviceCapability.temperatureSensor);
|
|
23
21
|
this.jsonOmitKeys.push(...['client', 'config', '_influxClient']);
|
|
@@ -5,8 +5,6 @@ import { iBluetoothDetector } from '../../interfaces/baseDevices/iBluetoothDetec
|
|
|
5
5
|
import { BaseDevice } from '../BaseDevice';
|
|
6
6
|
export declare class DetectedBluetoothDevice extends BaseDevice {
|
|
7
7
|
trackedDeviceId: string;
|
|
8
|
-
/** @inheritDoc */
|
|
9
|
-
settings: undefined;
|
|
10
8
|
/**
|
|
11
9
|
* A Map matching the distances to the trackers identified by {@link iBluetoothDetector.id}
|
|
12
10
|
*/
|
|
@@ -21,8 +21,6 @@ class DetectedBluetoothDevice extends BaseDevice_1.BaseDevice {
|
|
|
21
21
|
info.allDevicesKey = allDevicesKey;
|
|
22
22
|
super(info, enums_1.DeviceType.TrackableDevice);
|
|
23
23
|
this.trackedDeviceId = trackedDeviceId;
|
|
24
|
-
/** @inheritDoc */
|
|
25
|
-
this.settings = undefined;
|
|
26
24
|
/**
|
|
27
25
|
* A Map matching the distances to the trackers identified by {@link iBluetoothDetector.id}
|
|
28
26
|
*/
|
|
@@ -5,8 +5,6 @@ import { RoomBaseDevice } from '../RoomBaseDevice';
|
|
|
5
5
|
export declare class EspresenseDevice extends RoomBaseDevice implements iBluetoothDetector {
|
|
6
6
|
/** @inheritDoc */
|
|
7
7
|
readonly position: iTrilaterationBasePoint;
|
|
8
|
-
/** @inheritDoc */
|
|
9
|
-
settings: undefined;
|
|
10
8
|
/**
|
|
11
9
|
* The name of this device
|
|
12
10
|
*/
|
|
@@ -26,8 +26,6 @@ class EspresenseDevice extends RoomBaseDevice_1.RoomBaseDevice {
|
|
|
26
26
|
const allDevicesKey = `espresense-${roomName}-${name}`;
|
|
27
27
|
info.allDevicesKey = allDevicesKey;
|
|
28
28
|
super(info, enums_1.DeviceType.Espresense);
|
|
29
|
-
/** @inheritDoc */
|
|
30
|
-
this.settings = undefined;
|
|
31
29
|
this.deviceMap = new Map();
|
|
32
30
|
this.proximityCallbackMap = new Map();
|
|
33
31
|
this.deviceCapabilities.push(enums_1.DeviceCapability.bluetoothDetector);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { iBlockAutomaticSettings, iDeviceSettings, iExcessEnergyConsumerSettings, iTrilaterationCoordinate } from '../../interfaces';
|
|
2
2
|
import { ObjectSettings } from '../objectSettings';
|
|
3
3
|
import { BlockAutomaticCommand, iBaseCommand } from '../../command';
|
|
4
|
-
export declare
|
|
4
|
+
export declare class DeviceSettings extends ObjectSettings implements iDeviceSettings {
|
|
5
5
|
buildBlockAutomaticCommand(c: iBaseCommand): BlockAutomaticCommand | null | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* The position of the device in the room in meters
|