eufy-security-client 3.8.0-dev.10 → 3.8.0-dev.12

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);
@@ -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,