@homebridge-eufy-security/eufy-security-client 3.7.2-dev.5 → 3.8.0-dev.7

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.
@@ -204,6 +204,7 @@ export interface StationEvents {
204
204
  "sensor status": (station: Station, channel: number, status: number) => void;
205
205
  "garage door status": (station: Station, channel: number, doorId: number, status: number) => void;
206
206
  "storage info hb3": (station: Station, channel: number, storageInfo: StorageInfoBodyHB3) => void;
207
+ "hub notify update": (station: Station) => void;
207
208
  }
208
209
  export interface DeviceEvents {
209
210
  "property changed": (device: Device, name: string, value: PropertyValue, ready: boolean) => void;
@@ -375,6 +375,7 @@ export declare class Station extends TypedEmitter<StationEvents> {
375
375
  getLockParameters(): void;
376
376
  getLockStatus(): void;
377
377
  private onSequenceError;
378
+ private onHubNotifyUpdate;
378
379
  updateUsername(device: Device, username: string, passwordId: string): void;
379
380
  setOpenMethod(device: Device, value: number): void;
380
381
  setMotionActivatedPrompt(device: Device, value: boolean): void;
@@ -80,6 +80,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
80
80
  this.p2pSession.on("garage door status", (channel, doorId, status) => this.onGarageDoorStatus(channel, doorId, status));
81
81
  this.p2pSession.on("storage info hb3", (channel, storageInfo) => this.onStorageInfoHB3(channel, storageInfo));
82
82
  this.p2pSession.on("sequence error", (channel, command, sequence, serialnumber) => this.onSequenceError(channel, command, sequence, serialnumber));
83
+ this.p2pSession.on("hub notify update", () => this.onHubNotifyUpdate());
83
84
  }
84
85
  initializeState() {
85
86
  this.update(this.rawStation);
@@ -6592,7 +6593,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
6592
6593
  command: commandData,
6593
6594
  });
6594
6595
  }
6595
- else if (device.isOutdoorPanAndTiltCamera()) {
6596
+ else if (device.isOutdoorPanAndTiltCamera() || device.isBatteryDoorbellDualE340() || device.isFloodLightT8425()) {
6596
6597
  logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_DOORBELL_SET_PAYLOAD (1)`, {
6597
6598
  stationSN: this.getSerial(),
6598
6599
  deviceSN: device.getSerial(),
@@ -6644,8 +6645,8 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
6644
6645
  command: commandData,
6645
6646
  });
6646
6647
  }
6647
- else if (((device.isIndoorPanAndTiltCameraS350() || device.isIndoorCamC24()) && this.isDeviceControlledByHomeBase()) ||
6648
- device.isFloodLightT8425()) {
6648
+ else if ((device.isIndoorPanAndTiltCameraS350() || device.isIndoorCamC24()) &&
6649
+ this.isDeviceControlledByHomeBase()) {
6649
6650
  logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_SET_PAYLOAD`, {
6650
6651
  stationSN: this.getSerial(),
6651
6652
  deviceSN: device.getSerial(),
@@ -15532,6 +15533,9 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
15532
15533
  serialnumber: serialnumber,
15533
15534
  });
15534
15535
  }
15536
+ onHubNotifyUpdate() {
15537
+ this.emit("hub notify update", this);
15538
+ }
15535
15539
  updateUsername(device, username, passwordId) {
15536
15540
  const commandData = {
15537
15541
  name: types_1.CommandName.DeviceUpdateUsername,