@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.
@@ -49,6 +49,7 @@ export interface P2PClientProtocolEvents {
49
49
  "garage door status": (channel: number, doorId: number, status: number) => void;
50
50
  "storage info hb3": (channel: number, storageInfo: StorageInfoBodyHB3) => void;
51
51
  "sequence error": (channel: number, command: number, sequence: number, serialnumber: string) => void;
52
+ "hub notify update": () => void;
52
53
  }
53
54
  export interface P2PQueueMessage {
54
55
  p2pCommandType: InternalP2PCommandType;
@@ -2376,8 +2376,17 @@ class P2PClientProtocol extends tiny_typed_emitter_1.TypedEmitter {
2376
2376
  this.emit("parameter", message.channel, types_1.CommandType.CMD_SMARTLOCK_QUERY_BATTERY_LEVEL, payload.slBattery);
2377
2377
  this.emit("parameter", message.channel, types_1.CommandType.CMD_SMARTLOCK_QUERY_STATUS, payload.slState);
2378
2378
  }
2379
+ else if (json.cmd === types_1.CommandType.CMD_HUB_NOTIFY_UPDATE) {
2380
+ logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Homebase notify update`, {
2381
+ stationSN: this.rawStation.station_sn,
2382
+ commandIdName: types_1.CommandType[json.cmd],
2383
+ commandId: json.cmd,
2384
+ message: data.toString(),
2385
+ });
2386
+ this.emit("hub notify update");
2387
+ }
2379
2388
  else {
2380
- logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Not implemented`, {
2389
+ logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Not implemented 1`, {
2381
2390
  stationSN: this.rawStation.station_sn,
2382
2391
  commandIdName: types_1.CommandType[json.cmd],
2383
2392
  commandId: json.cmd,
@@ -2842,8 +2851,17 @@ class P2PClientProtocol extends tiny_typed_emitter_1.TypedEmitter {
2842
2851
  this.emit("storage info hb3", message.channel, payload.body);
2843
2852
  }
2844
2853
  }
2854
+ else if (json.cmd === types_1.CommandType.CMD_HUB_NOTIFY_UPDATE) {
2855
+ logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Homebase notify update`, {
2856
+ stationSN: this.rawStation.station_sn,
2857
+ commandIdName: types_1.CommandType[json.cmd],
2858
+ commandId: json.cmd,
2859
+ message: data.toString(),
2860
+ });
2861
+ this.emit("hub notify update");
2862
+ }
2845
2863
  else {
2846
- logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Not implemented`, {
2864
+ logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Not implemented 2`, {
2847
2865
  stationSN: this.rawStation.station_sn,
2848
2866
  commandIdName: types_1.CommandType[json.cmd],
2849
2867
  commandId: json.cmd,