hoffmation-base 3.2.11-alpha.0 → 3.2.11
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/hmIPDevices/hmIpRoll.js +1 -0
- package/lib/devices/unifi/own-unifi-camera.js +1 -1
- package/lib/devices/unifi/unifi-protect.js +3 -1
- package/lib/devices/velux/veluxShutter.js +1 -0
- package/lib/devices/zigbee/BaseDevices/zigbeeShutter.js +1 -0
- package/lib/devices/zigbee/zigbeeAqaraPresence.d.ts +1 -0
- package/lib/devices/zigbee/zigbeeAqaraPresence.js +3 -0
- package/lib/devices/zigbee/zigbeeAquaraMotion.js +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ class HmIpRoll extends hmIpDevice_1.HmIPDevice {
|
|
|
26
26
|
this._currentLevel = -1;
|
|
27
27
|
this.jsonOmitKeys.push('_window');
|
|
28
28
|
this.deviceCapabilities.push(enums_1.DeviceCapability.shutter);
|
|
29
|
+
this.deviceCapabilities.push(enums_1.DeviceCapability.blockAutomatic);
|
|
29
30
|
this._setLevelSwitchID = `${this.info.fullID}.4.LEVEL`;
|
|
30
31
|
this.blockAutomationHandler = new services_1.BlockAutomaticHandler(this.restoreTargetAutomaticValue.bind(this), this.log.bind(this));
|
|
31
32
|
(_a = this.dbo) === null || _a === void 0 ? void 0 : _a.getLastDesiredPosition(this).then((val) => {
|
|
@@ -45,7 +45,7 @@ class OwnUnifiCamera extends index_1.CameraDevice {
|
|
|
45
45
|
for (const smartDetectType of detectedTypes) {
|
|
46
46
|
switch (smartDetectType) {
|
|
47
47
|
case 'licensePlate':
|
|
48
|
-
this.log(enums_1.LogLevel.Debug, `Detected "licensePlate": ${JSON.stringify(payloadAsEventAdd
|
|
48
|
+
this.log(enums_1.LogLevel.Debug, `Detected "licensePlate" Data: ${JSON.stringify(payloadAsEventAdd)}`);
|
|
49
49
|
break;
|
|
50
50
|
case 'person':
|
|
51
51
|
this.onNewPersonDetectedValue(true, enums_1.CommandSource.Automatic);
|
|
@@ -79,7 +79,9 @@ class UnifiProtect {
|
|
|
79
79
|
}
|
|
80
80
|
const ownCamera = UnifiProtect.ownCameras.get(ownName);
|
|
81
81
|
if (ownCamera !== undefined) {
|
|
82
|
-
|
|
82
|
+
utils_1.Utils.guardedFunction(() => {
|
|
83
|
+
ownCamera.update(packet, baseEvent);
|
|
84
|
+
}, this);
|
|
83
85
|
break;
|
|
84
86
|
}
|
|
85
87
|
break;
|
|
@@ -26,6 +26,7 @@ class VeluxShutter extends veluxDevice_1.VeluxDevice {
|
|
|
26
26
|
this._currentLevel = -1;
|
|
27
27
|
this.jsonOmitKeys.push('_window');
|
|
28
28
|
this.deviceCapabilities.push(enums_1.DeviceCapability.shutter);
|
|
29
|
+
this.deviceCapabilities.push(enums_1.DeviceCapability.blockAutomatic);
|
|
29
30
|
this._setLevelSwitchID = `${this.info.fullID}.targetPosition`;
|
|
30
31
|
this.blockAutomationHandler = new services_1.BlockAutomaticHandler(this.restoreTargetAutomaticValue.bind(this), this.log.bind(this));
|
|
31
32
|
(_a = this.dbo) === null || _a === void 0 ? void 0 : _a.getLastDesiredPosition(this).then((val) => {
|
|
@@ -28,6 +28,7 @@ class ZigbeeShutter extends zigbeeDevice_1.ZigbeeDevice {
|
|
|
28
28
|
/** @inheritDoc */
|
|
29
29
|
this.baseAutomaticLevel = 0;
|
|
30
30
|
this.deviceCapabilities.push(enums_1.DeviceCapability.shutter);
|
|
31
|
+
this.deviceCapabilities.push(enums_1.DeviceCapability.blockAutomatic);
|
|
31
32
|
this.jsonOmitKeys.push('_window');
|
|
32
33
|
// Initialize blockAutomationHandler for iTemporaryDisableAutomatic
|
|
33
34
|
this.blockAutomationHandler = new services_1.BlockAutomaticHandler(this.restoreTargetAutomaticValue.bind(this), this.log.bind(this));
|
|
@@ -4,4 +4,5 @@ export declare class ZigbeeAqaraPresence extends ZigbeeMotionSensor {
|
|
|
4
4
|
protected _needsMovementResetFallback: boolean;
|
|
5
5
|
protected readonly _occupancyStateId: string;
|
|
6
6
|
constructor(pInfo: IoBrokerDeviceInfo);
|
|
7
|
+
update(idSplit: string[], state: ioBroker.State, initial?: boolean): void;
|
|
7
8
|
}
|
|
@@ -9,5 +9,8 @@ class ZigbeeAqaraPresence extends BaseDevices_1.ZigbeeMotionSensor {
|
|
|
9
9
|
this._needsMovementResetFallback = false;
|
|
10
10
|
this._occupancyStateId = 'presence';
|
|
11
11
|
}
|
|
12
|
+
update(idSplit, state, initial = false) {
|
|
13
|
+
super.update(idSplit, state, initial, true);
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
exports.ZigbeeAqaraPresence = ZigbeeAqaraPresence;
|
|
@@ -37,7 +37,7 @@ class ZigbeeAquaraMotion extends BaseDevices_1.ZigbeeMotionSensor {
|
|
|
37
37
|
}
|
|
38
38
|
/** @inheritDoc */
|
|
39
39
|
update(idSplit, state, initial = false) {
|
|
40
|
-
this.log(
|
|
40
|
+
// this.log(LogLevel.DeepTrace, `Motion update: ID: ${idSplit.join('.')} JSON: ${JSON.stringify(state)}`);
|
|
41
41
|
super.update(idSplit, state, initial, true);
|
|
42
42
|
switch (idSplit[3]) {
|
|
43
43
|
case 'illuminance':
|