eufy-security-client 3.8.0-dev.19 → 3.8.0-dev.21

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,