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.
@@ -204,7 +204,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
204
204
  const val = value;
205
205
  if (property.key === types_1.ParamType.PRIVATE_MODE ||
206
206
  property.key === types_1.ParamType.OPEN_DEVICE ||
207
- property.key === types_2.CommandType.CMD_DEVS_SWITCH) {
207
+ property.key === types_2.CommandType.CMD_DEVS_SWITCH ||
208
+ property.key === types_2.CommandType.CMD_INDOOR_ENABLE_PRIVACY_MODE_S350) {
208
209
  if ((this.isIndoorCamera() && !this.isIndoorPanAndTiltCameraS350()) ||
209
210
  (this.isWiredDoorbell() && !this.isWiredDoorbellT8200X()) ||
210
211
  this.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8422 ||
@@ -1633,7 +1634,16 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1633
1634
  types_1.DeviceDetectionStatisticsRecordedEventsProperty;
1634
1635
  if (!this.isSmartDrop()) {
1635
1636
  //TODO: Check with future devices if this property overriding is correct (for example with indoor cameras etc.)
1636
- newMetadata[types_1.PropertyName.DeviceEnabled] = types_1.DeviceEnabledSoloProperty;
1637
+ // Outdoor pan/tilt cams (eufyCam S4 etc.) report enabled state
1638
+ // through the wrapped CMD_INDOOR_ENABLE_PRIVACY_MODE_S350 (6250)
1639
+ // param. Binding them to DeviceEnabledSoloProperty (key=1035) here
1640
+ // would re-anchor the read on a value the cam never updates again.
1641
+ if (this.isOutdoorPanAndTiltCamera()) {
1642
+ newMetadata[types_1.PropertyName.DeviceEnabled] = types_1.DeviceEnabledIndoorS350Property;
1643
+ }
1644
+ else {
1645
+ newMetadata[types_1.PropertyName.DeviceEnabled] = types_1.DeviceEnabledSoloProperty;
1646
+ }
1637
1647
  }
1638
1648
  metadata = newMetadata;
1639
1649
  }