eufy-security-client 3.8.0-dev.20 → 3.8.0-dev.22

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.
@@ -6374,6 +6374,29 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
6374
6374
  property: propertyData,
6375
6375
  });
6376
6376
  }
6377
+ else if (device.isOutdoorPanAndTiltCamera()) {
6378
+ // Outdoor pan/tilt cams (eufyCam S4 / T8172 etc.) behind a HomeBase 3
6379
+ // silently drop raw CMD_DEVS_SWITCH frames. Pcap comparison against
6380
+ // the iOS Eufy app shows they accept the same wrapped envelope as
6381
+ // INDOOR_PT_CAMERA_S350 — outer CMD_SET_PAYLOAD carrying inner
6382
+ // CMD_INDOOR_ENABLE_PRIVACY_MODE_S350.
6383
+ param_value = value === true ? 0 : 1;
6384
+ this.p2pSession.sendCommandWithStringPayload({
6385
+ commandType: types_2.CommandType.CMD_SET_PAYLOAD,
6386
+ value: JSON.stringify({
6387
+ account_id: this.rawStation.member.admin_user_id,
6388
+ cmd: types_2.CommandType.CMD_INDOOR_ENABLE_PRIVACY_MODE_S350,
6389
+ mChannel: device.getChannel(),
6390
+ mValue3: 0,
6391
+ payload: {
6392
+ switch: param_value,
6393
+ },
6394
+ }),
6395
+ channel: device.getChannel(),
6396
+ }, {
6397
+ property: propertyData,
6398
+ });
6399
+ }
6377
6400
  else {
6378
6401
  this.p2pSession.sendCommandWithIntString({
6379
6402
  commandType: types_2.CommandType.CMD_DEVS_SWITCH,
@@ -10840,6 +10863,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
10840
10863
  device.isWallLightCam() ||
10841
10864
  device.isGarageCamera() ||
10842
10865
  device.isOutdoorPanAndTiltCamera() ||
10866
+ device.isBatteryDoorbellDualE340() ||
10843
10867
  (device.isIndoorPanAndTiltCameraS350() && !this.isDeviceControlledByHomeBase())) {
10844
10868
  this.p2pSession.sendCommandWithStringPayload({
10845
10869
  commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD,
@@ -10908,6 +10932,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
10908
10932
  device.isWallLightCam() ||
10909
10933
  device.isGarageCamera() ||
10910
10934
  device.isOutdoorPanAndTiltCamera() ||
10935
+ device.isBatteryDoorbellDualE340() ||
10911
10936
  (device.isIndoorPanAndTiltCameraS350() && !this.isDeviceControlledByHomeBase())) {
10912
10937
  this.p2pSession.sendCommandWithStringPayload({
10913
10938
  commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD,