eufy-security-client 3.7.2-dev.1 → 3.7.2

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.
@@ -55,7 +55,7 @@ class ParameterHelper {
55
55
  //if (typeof value !== "string") return value;
56
56
  if (typeof value !== "string") {
57
57
  log.debug("Watch out for this object! .", {
58
- value: JSON.stringify(value, null, 2),
58
+ value: JSON.stringify(value, null, 2)
59
59
  });
60
60
  return value;
61
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"parameter.js","sourceRoot":"","sources":["../../src/http/parameter.ts"],"names":[],"mappings":";;;AAEA,gCAAyD;AACzD,wCAAqE;AACrE,oCAA+C;AAC/C,mCAAoC;AACpC,mCAA6C;AAC7C,oCAAuC;AAEvC,MAAa,eAAe;IAClB,MAAM,CAAU,wBAAwB,GAAG,IAAI,GAAG,CAAS;QACjE,iBAAS,CAAC,WAAW;QACrB,iBAAS,CAAC,mBAAmB;QAC7B,iBAAW,CAAC,oCAAoC;QAChD,iBAAW,CAAC,8BAA8B;QAC1C,iBAAW,CAAC,cAAc;QAC1B,iBAAW,CAAC,cAAc;QAC1B,iBAAW,CAAC,cAAc;QAC1B,iBAAW,CAAC,cAAc;QAC1B,iBAAW,CAAC,cAAc;QAC1B,iBAAW,CAAC,aAAa;QACzB,iBAAW,CAAC,aAAa;QACzB,iBAAW,CAAC,+CAA+C;QAC3D,iBAAW,CAAC,iDAAiD;QAC7D,iBAAW,CAAC,+CAA+C;QAC3D,iBAAW,CAAC,+CAA+C;QAC3D,iBAAW,CAAC,8BAA8B;QAC1C,iBAAW,CAAC,oBAAoB;QAChC,iBAAW,CAAC,+BAA+B;QAC3C,iBAAW,CAAC,gCAAgC;QAC5C,iBAAW,CAAC,kCAAkC;QAC9C,iBAAW,CAAC,iCAAiC;QAC7C,iBAAW,CAAC,wCAAwC;QACpD,iBAAW,CAAC,mCAAmC;QAC/C,iBAAW,CAAC,mCAAmC;KAChD,CAAC,CAAC;IAEK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OAAO,KAAK,CAAC;IACf,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,IAAY,EAAE,KAAa;QAClD,IAAI,KAAK,EAAE,CAAC;YACV,IACE,IAAI,KAAK,iBAAS,CAAC,WAAW;gBAC9B,IAAI,KAAK,iBAAS,CAAC,mBAAmB;gBACtC,IAAI,KAAK,iBAAW,CAAC,oCAAoC;gBACzD,IAAI,KAAK,iBAAW,CAAC,8BAA8B,EACnD,CAAC;gBACD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC/D,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;;AA7GH,0CA8GC"}
@@ -97,9 +97,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
97
97
  !device_1.Device.isLockWifiT8506(stationData.device_type) &&
98
98
  !device_1.Device.isLockWifiT8502(stationData.device_type) &&
99
99
  !device_1.Device.isLockWifiT8510P(stationData.device_type, stationData.station_sn) &&
100
- !device_1.Device.isLockWifiT8520P(stationData.device_type, stationData.station_sn) &&
101
- !device_1.Device.isLockWifiT85L0(stationData.device_type) &&
102
- !device_1.Device.isLockWifiT85V0(stationData.device_type, stationData.station_sn)) {
100
+ !device_1.Device.isLockWifiT8520P(stationData.device_type, stationData.station_sn)) {
103
101
  publicKey = await api.getPublicKey(stationData.station_sn, types_1.PublicKeyType.LOCK);
104
102
  }
105
103
  return new Station(api, stationData, ipAddress, listeningPort, publicKey, enableEmbeddedPKCS1Support);
@@ -406,10 +404,6 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
406
404
  if (property.name === types_1.PropertyName.Model && device_1.Device.isLockWifiT8510P(this.getDeviceType(), this.getSerial())) {
407
405
  return "T8510P";
408
406
  }
409
- else if (property.name === types_1.PropertyName.Model &&
410
- device_1.Device.isLockWifiT85V0(this.getDeviceType(), this.getSerial())) {
411
- return "T85V0";
412
- }
413
407
  else if (property.type === "number") {
414
408
  const numericProperty = property;
415
409
  try {
@@ -5667,12 +5661,6 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
5667
5661
  });
5668
5662
  }
5669
5663
  if (!device.hasCommand(types_1.CommandName.DeviceTriggerAlarmSound)) {
5670
- logging_1.rootHTTPLogger.debug(`This functionality is not implemented or supported by this device - triggerDeviceAlarmSound`, {
5671
- device: device.getSerial(),
5672
- station: this.getSerial(),
5673
- commandName: commandData.name,
5674
- commandValue: commandData.value,
5675
- });
5676
5664
  throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", {
5677
5665
  context: {
5678
5666
  device: device.getSerial(),
@@ -5745,11 +5733,6 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
5745
5733
  value: value,
5746
5734
  };
5747
5735
  if (!this.hasProperty(propertyData.name)) {
5748
- logging_1.rootHTTPLogger.debug(`This functionality is not implemented or supported - setStationAlarmTone`, {
5749
- propertyName: propertyData.name,
5750
- propertyValue: propertyData.value,
5751
- station: this.getSerial(),
5752
- });
5753
5736
  throw new error_1.NotSupportedError("This functionality is not implemented or supported", {
5754
5737
  context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() },
5755
5738
  });
@@ -6045,12 +6028,6 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
6045
6028
  });
6046
6029
  }
6047
6030
  if (!device.hasProperty(propertyData.name)) {
6048
- logging_1.rootHTTPLogger.debug(`This functionality is not implemented or supported by this device - setRTSPStream`, {
6049
- device: device.getSerial(),
6050
- station: this.getSerial(),
6051
- propertyName: propertyData.name,
6052
- propertyValue: propertyData.value,
6053
- });
6054
6031
  throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", {
6055
6032
  context: {
6056
6033
  device: device.getSerial(),
@@ -7339,9 +7316,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
7339
7316
  else if (device.isLockWifiT8506() ||
7340
7317
  device.isLockWifiT8502() ||
7341
7318
  device.isLockWifiT8510P() ||
7342
- device.isLockWifiT8520P() ||
7343
- device.isLockWifiT85L0() ||
7344
- device.isLockWifiT85V0()) {
7319
+ device.isLockWifiT8520P()) {
7345
7320
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.ON_OFF_LOCK, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockUnlock(this.rawStation.member.admin_user_id, value, this.rawStation.member.nick_name, this.rawStation.member.short_user_id));
7346
7321
  logging_1.rootHTTPLogger.debug("Station lock device - Locking/unlocking device...", {
7347
7322
  station: this.getSerial(),
@@ -8859,9 +8834,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
8859
8834
  else if (device.isLockWifiT8506() ||
8860
8835
  device.isLockWifiT8502() ||
8861
8836
  device.isLockWifiT8510P() ||
8862
- device.isLockWifiT8520P() ||
8863
- device.isLockWifiT85L0() ||
8864
- device.isLockWifiT85V0()) {
8837
+ device.isLockWifiT8520P()) {
8865
8838
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.ON_OFF_LOCK, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockCalibrate(this.rawStation.member.admin_user_id));
8866
8839
  logging_1.rootHTTPLogger.debug("Station calibrate lock - Calibrate lock...", {
8867
8840
  station: this.getSerial(),
@@ -10990,9 +10963,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
10990
10963
  else if (device.isLockWifiT8506() ||
10991
10964
  device.isLockWifiT8502() ||
10992
10965
  device.isLockWifiT8510P() ||
10993
- device.isLockWifiT8520P() ||
10994
- device.isLockWifiT85L0() ||
10995
- device.isLockWifiT85V0()) {
10966
+ device.isLockWifiT8520P()) {
10996
10967
  this.setSmartLockParams(device, types_1.PropertyName.DeviceScramblePasscode, value);
10997
10968
  }
10998
10969
  else if (device.isSmartSafe()) {
@@ -11048,9 +11019,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
11048
11019
  else if (device.isLockWifiT8506() ||
11049
11020
  device.isLockWifiT8502() ||
11050
11021
  device.isLockWifiT8510P() ||
11051
- device.isLockWifiT8520P() ||
11052
- device.isLockWifiT85L0() ||
11053
- device.isLockWifiT85V0()) {
11022
+ device.isLockWifiT8520P()) {
11054
11023
  this.setSmartLockParams(device, types_1.PropertyName.DeviceWrongTryProtection, value);
11055
11024
  }
11056
11025
  else if (device.isSmartSafe()) {
@@ -11106,9 +11075,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
11106
11075
  else if (device.isLockWifiT8506() ||
11107
11076
  device.isLockWifiT8502() ||
11108
11077
  device.isLockWifiT8510P() ||
11109
- device.isLockWifiT8520P() ||
11110
- device.isLockWifiT85L0() ||
11111
- device.isLockWifiT85V0()) {
11078
+ device.isLockWifiT8520P()) {
11112
11079
  this.setSmartLockParams(device, types_1.PropertyName.DeviceWrongTryAttempts, value);
11113
11080
  }
11114
11081
  else if (device.isSmartSafe()) {
@@ -11164,9 +11131,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
11164
11131
  else if (device.isLockWifiT8506() ||
11165
11132
  device.isLockWifiT8502() ||
11166
11133
  device.isLockWifiT8510P() ||
11167
- device.isLockWifiT8520P() ||
11168
- device.isLockWifiT85L0() ||
11169
- device.isLockWifiT85V0()) {
11134
+ device.isLockWifiT8520P()) {
11170
11135
  this.setSmartLockParams(device, types_1.PropertyName.DeviceWrongTryLockdownTime, value);
11171
11136
  }
11172
11137
  else if (device.isSmartSafe()) {
@@ -11703,9 +11668,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
11703
11668
  else if (device.isLockWifiT8506() ||
11704
11669
  device.isLockWifiT8502() ||
11705
11670
  device.isLockWifiT8510P() ||
11706
- device.isLockWifiT8520P() ||
11707
- device.isLockWifiT85L0() ||
11708
- device.isLockWifiT85V0()) {
11671
+ device.isLockWifiT8520P()) {
11709
11672
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.ADD_PW, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockAddUser(this.rawStation.member.admin_user_id, shortUserId, (0, utils_1.encodePasscode)(passcode), username, schedule));
11710
11673
  logging_1.rootHTTPLogger.debug("Station smart lock device - Add user...", {
11711
11674
  station: this.getSerial(),
@@ -11819,9 +11782,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
11819
11782
  else if (device.isLockWifiT8506() ||
11820
11783
  device.isLockWifiT8502() ||
11821
11784
  device.isLockWifiT8510P() ||
11822
- device.isLockWifiT8520P() ||
11823
- device.isLockWifiT85L0() ||
11824
- device.isLockWifiT85V0()) {
11785
+ device.isLockWifiT8520P()) {
11825
11786
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.DELETE_USER, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockDeleteUser(this.rawStation.member.admin_user_id, shortUserId));
11826
11787
  logging_1.rootHTTPLogger.debug("Station delete user - payload", {
11827
11788
  station: this.getSerial(),
@@ -11949,9 +11910,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
11949
11910
  else if (device.isLockWifiT8506() ||
11950
11911
  device.isLockWifiT8502() ||
11951
11912
  device.isLockWifiT8510P() ||
11952
- device.isLockWifiT8520P() ||
11953
- device.isLockWifiT85L0() ||
11954
- device.isLockWifiT85V0()) {
11913
+ device.isLockWifiT8520P()) {
11955
11914
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.UPDATE_USER_TIME, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockUpdateSchedule(this.rawStation.member.admin_user_id, shortUserId, username, schedule));
11956
11915
  logging_1.rootHTTPLogger.debug("Station update user schedule - payload", {
11957
11916
  station: this.getSerial(),
@@ -12078,9 +12037,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12078
12037
  else if (device.isLockWifiT8506() ||
12079
12038
  device.isLockWifiT8502() ||
12080
12039
  device.isLockWifiT8510P() ||
12081
- device.isLockWifiT8520P() ||
12082
- device.isLockWifiT85L0() ||
12083
- device.isLockWifiT85V0()) {
12040
+ device.isLockWifiT8520P()) {
12084
12041
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.UPDATE_PW, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockModifyPassword(this.rawStation.member.admin_user_id, passwordId, (0, utils_1.encodePasscode)(passcode)));
12085
12042
  logging_1.rootHTTPLogger.debug("Station update user passcode - payload", {
12086
12043
  station: this.getSerial(),
@@ -12235,9 +12192,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12235
12192
  if (device.isLockWifiT8506() ||
12236
12193
  device.isLockWifiT8502() ||
12237
12194
  device.isLockWifiT8510P() ||
12238
- device.isLockWifiT8520P() ||
12239
- device.isLockWifiT85L0() ||
12240
- device.isLockWifiT85V0()) {
12195
+ device.isLockWifiT8520P()) {
12241
12196
  let payload;
12242
12197
  switch (property) {
12243
12198
  case types_1.PropertyName.DeviceWrongTryProtection:
@@ -12339,9 +12294,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12339
12294
  else if (device.isLockWifiT8506() ||
12340
12295
  device.isLockWifiT8502() ||
12341
12296
  device.isLockWifiT8510P() ||
12342
- device.isLockWifiT8520P() ||
12343
- device.isLockWifiT85L0() ||
12344
- device.isLockWifiT85V0()) {
12297
+ device.isLockWifiT8520P()) {
12345
12298
  this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLock, value);
12346
12299
  }
12347
12300
  else {
@@ -12394,9 +12347,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12394
12347
  else if (device.isLockWifiT8506() ||
12395
12348
  device.isLockWifiT8502() ||
12396
12349
  device.isLockWifiT8510P() ||
12397
- device.isLockWifiT8520P() ||
12398
- device.isLockWifiT85L0() ||
12399
- device.isLockWifiT85V0()) {
12350
+ device.isLockWifiT8520P()) {
12400
12351
  this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLockSchedule, value);
12401
12352
  }
12402
12353
  else {
@@ -12449,9 +12400,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12449
12400
  else if (device.isLockWifiT8506() ||
12450
12401
  device.isLockWifiT8502() ||
12451
12402
  device.isLockWifiT8510P() ||
12452
- device.isLockWifiT8520P() ||
12453
- device.isLockWifiT85L0() ||
12454
- device.isLockWifiT85V0()) {
12403
+ device.isLockWifiT8520P()) {
12455
12404
  this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLockScheduleStartTime, value);
12456
12405
  }
12457
12406
  else {
@@ -12504,9 +12453,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12504
12453
  else if (device.isLockWifiT8506() ||
12505
12454
  device.isLockWifiT8502() ||
12506
12455
  device.isLockWifiT8510P() ||
12507
- device.isLockWifiT8520P() ||
12508
- device.isLockWifiT85L0() ||
12509
- device.isLockWifiT85V0()) {
12456
+ device.isLockWifiT8520P()) {
12510
12457
  this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLockScheduleEndTime, value);
12511
12458
  }
12512
12459
  else {
@@ -12559,9 +12506,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12559
12506
  else if (device.isLockWifiT8506() ||
12560
12507
  device.isLockWifiT8502() ||
12561
12508
  device.isLockWifiT8510P() ||
12562
- device.isLockWifiT8520P() ||
12563
- device.isLockWifiT85L0() ||
12564
- device.isLockWifiT85V0()) {
12509
+ device.isLockWifiT8520P()) {
12565
12510
  this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLockTimer, value);
12566
12511
  }
12567
12512
  else {
@@ -12614,9 +12559,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12614
12559
  else if (device.isLockWifiT8506() ||
12615
12560
  device.isLockWifiT8502() ||
12616
12561
  device.isLockWifiT8510P() ||
12617
- device.isLockWifiT8520P() ||
12618
- device.isLockWifiT85L0() ||
12619
- device.isLockWifiT85V0()) {
12562
+ device.isLockWifiT8520P()) {
12620
12563
  this.setSmartLockParams(device, types_1.PropertyName.DeviceOneTouchLocking, value);
12621
12564
  }
12622
12565
  else {
@@ -12669,9 +12612,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12669
12612
  else if (device.isLockWifiT8506() ||
12670
12613
  device.isLockWifiT8502() ||
12671
12614
  device.isLockWifiT8510P() ||
12672
- device.isLockWifiT8520P() ||
12673
- device.isLockWifiT85L0() ||
12674
- device.isLockWifiT85V0()) {
12615
+ device.isLockWifiT8520P()) {
12675
12616
  this.setSmartLockParams(device, types_1.PropertyName.DeviceSound, value);
12676
12617
  }
12677
12618
  else {
@@ -12735,7 +12676,6 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12735
12676
  device.isLockWifiT8510P() ||
12736
12677
  device.isLockWifiT8520P() ||
12737
12678
  device.isLockWifiR10() ||
12738
- device.isLockWifiT85L0() ||
12739
12679
  device.isLockWifiR20()) {
12740
12680
  let oldvalue = 0;
12741
12681
  const rawproperty = device.getRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE);
@@ -12814,7 +12754,6 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12814
12754
  device.isLockWifiT8510P() ||
12815
12755
  device.isLockWifiT8520P() ||
12816
12756
  device.isLockWifiR10() ||
12817
- device.isLockWifiT85L0() ||
12818
12757
  device.isLockWifiR20()) {
12819
12758
  let oldvalue = 0;
12820
12759
  const rawproperty = device.getRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE);
@@ -12893,7 +12832,6 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
12893
12832
  device.isLockWifiT8510P() ||
12894
12833
  device.isLockWifiT8520P() ||
12895
12834
  device.isLockWifiR10() ||
12896
- device.isLockWifiT85L0() ||
12897
12835
  device.isLockWifiR20()) {
12898
12836
  let oldvalue = 0;
12899
12837
  const rawproperty = device.getRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE);
@@ -13049,9 +12987,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
13049
12987
  else if (device.isLockWifiT8506() ||
13050
12988
  device.isLockWifiT8502() ||
13051
12989
  device.isLockWifiT8510P() ||
13052
- device.isLockWifiT8520P() ||
13053
- device.isLockWifiT85L0() ||
13054
- device.isLockWifiT85V0()) {
12990
+ device.isLockWifiT8520P()) {
13055
12991
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.QUERY_ALL_USERS, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockGetUserList(this.rawStation.member.admin_user_id));
13056
12992
  logging_1.rootHTTPLogger.debug("Station get user list - payload", {
13057
12993
  station: this.getSerial(),
@@ -13218,7 +13154,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
13218
13154
  flag: 0,
13219
13155
  res_unzip: 1,
13220
13156
  start_date: format(startDate, "YYYYMMDD"),
13221
- start_time: `${format(startDate, "YYYYMMDD")}000000`,
13157
+ start_time: `${format(endDate, "YYYYMMDD")}000000`,
13222
13158
  storage_cloud: storageType === types_2.FilterStorageType.NONE ||
13223
13159
  (storageType !== types_2.FilterStorageType.LOCAL && storageType !== types_2.FilterStorageType.CLOUD)
13224
13160
  ? -1
@@ -15473,9 +15409,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
15473
15409
  if (device_1.Device.isLockWifiT8506(this.getDeviceType()) ||
15474
15410
  device_1.Device.isLockWifiT8502(this.getDeviceType()) ||
15475
15411
  device_1.Device.isLockWifiT8510P(this.getDeviceType(), this.getSerial()) ||
15476
- device_1.Device.isLockWifiT8520P(this.getDeviceType(), this.getSerial()) ||
15477
- device_1.Device.isLockWifiT85V0(this.getDeviceType(), this.getSerial()) ||
15478
- device_1.Device.isLockWifiT85L0(this.getDeviceType())) {
15412
+ device_1.Device.isLockWifiT8520P(this.getDeviceType(), this.getSerial())) {
15479
15413
  logging_1.rootHTTPLogger.debug(`Station smart lock send get lock parameters command`, { stationSN: this.getSerial() });
15480
15414
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.GET_LOCK_PARAM, 0, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockGetParams(this.rawStation.member.admin_user_id));
15481
15415
  this.p2pSession.sendCommandWithStringPayload(command.payload);
@@ -15491,9 +15425,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
15491
15425
  if (device_1.Device.isLockWifiT8506(this.getDeviceType()) ||
15492
15426
  device_1.Device.isLockWifiT8502(this.getDeviceType()) ||
15493
15427
  device_1.Device.isLockWifiT8510P(this.getDeviceType(), this.getSerial()) ||
15494
- device_1.Device.isLockWifiT8520P(this.getDeviceType(), this.getSerial()) ||
15495
- device_1.Device.isLockWifiT85V0(this.getDeviceType(), this.getSerial()) ||
15496
- device_1.Device.isLockWifiT85L0(this.getDeviceType())) {
15428
+ device_1.Device.isLockWifiT8520P(this.getDeviceType(), this.getSerial())) {
15497
15429
  logging_1.rootHTTPLogger.debug(`Station smart lock send get lock status command`, { stationSN: this.getSerial() });
15498
15430
  const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.QUERY_STATUS_IN_LOCK, 0, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockStatus(this.rawStation.member.admin_user_id));
15499
15431
  this.p2pSession.sendCommandWithStringPayload(command.payload);