hoffmation-base 3.2.11-alpha.1 → 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.
@@ -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.metadata.licensePlate)}`);
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
- ownCamera.update(packet, baseEvent);
82
+ utils_1.Utils.guardedFunction(() => {
83
+ ownCamera.update(packet, baseEvent);
84
+ }, this);
83
85
  break;
84
86
  }
85
87
  break;
@@ -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(enums_1.LogLevel.DeepTrace, `Motion update: ID: ${idSplit.join('.')} JSON: ${JSON.stringify(state)}`);
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':