pyezvizapi 1.0.2.4__tar.gz → 1.0.2.6__tar.gz
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.
Potentially problematic release.
This version of pyezvizapi might be problematic. Click here for more details.
- {pyezvizapi-1.0.2.4/pyezvizapi.egg-info → pyezvizapi-1.0.2.6}/PKG-INFO +1 -1
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/client.py +40 -1
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/constants.py +1 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6/pyezvizapi.egg-info}/PKG-INFO +1 -1
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/setup.py +1 -1
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/LICENSE +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/LICENSE.md +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/MANIFEST.in +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/README.md +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/__init__.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/__main__.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/api_endpoints.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/camera.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/cas.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/exceptions.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/light_bulb.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/models.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/mqtt.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/test_cam_rtsp.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/test_mqtt.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi/utils.py +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi.egg-info/SOURCES.txt +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi.egg-info/dependency_links.txt +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi.egg-info/entry_points.txt +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi.egg-info/requires.txt +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/pyezvizapi.egg-info/top_level.txt +0 -0
- {pyezvizapi-1.0.2.4 → pyezvizapi-1.0.2.6}/setup.cfg +0 -0
|
@@ -732,11 +732,50 @@ class EzvizClient:
|
|
|
732
732
|
return self.set_device_config_by_key(serial, value, key="batteryCameraWorkMode")
|
|
733
733
|
|
|
734
734
|
def set_detection_mode(self, serial: str, value: int) -> bool:
|
|
735
|
-
"""Set detection mode.
|
|
735
|
+
"""Set detection mode.
|
|
736
|
+
|
|
737
|
+
Deprecated in favour of set_alarm_detect_human_car() but kept for
|
|
738
|
+
backwards compatibility with older callers inside the integration.
|
|
739
|
+
"""
|
|
740
|
+
return self.set_alarm_detect_human_car(serial, value)
|
|
741
|
+
|
|
742
|
+
def set_alarm_detect_human_car(self, serial: str, value: int) -> bool:
|
|
743
|
+
"""Update Alarm_DetectHumanCar type on the device."""
|
|
736
744
|
return self.set_device_config_by_key(
|
|
737
745
|
serial, value=f'{{"type":{value}}}', key="Alarm_DetectHumanCar"
|
|
738
746
|
)
|
|
739
747
|
|
|
748
|
+
def set_alarm_advanced_detect(self, serial: str, value: int) -> bool:
|
|
749
|
+
"""Update Alarm_AdvancedDetect type on the device."""
|
|
750
|
+
return self.set_device_config_by_key(
|
|
751
|
+
serial, value=f'{{"type":{value}}}', key="Alarm_AdvancedDetect"
|
|
752
|
+
)
|
|
753
|
+
|
|
754
|
+
def set_algorithm_param(
|
|
755
|
+
self,
|
|
756
|
+
serial: str,
|
|
757
|
+
subtype: str | int,
|
|
758
|
+
value: int,
|
|
759
|
+
channel: int = 1,
|
|
760
|
+
) -> bool:
|
|
761
|
+
"""Update a single AlgorithmInfo subtype value via devconfig."""
|
|
762
|
+
|
|
763
|
+
payload = {
|
|
764
|
+
"AlgorithmInfo": [
|
|
765
|
+
{
|
|
766
|
+
"SubType": str(subtype),
|
|
767
|
+
"Value": str(value),
|
|
768
|
+
"channel": channel,
|
|
769
|
+
}
|
|
770
|
+
]
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
return self.set_device_config_by_key(
|
|
774
|
+
serial,
|
|
775
|
+
value=json.dumps(payload, separators=(",", ":")),
|
|
776
|
+
key="AlgorithmInfo",
|
|
777
|
+
)
|
|
778
|
+
|
|
740
779
|
def set_night_vision_mode(
|
|
741
780
|
self, serial: str, mode: int, luminance: int = 100
|
|
742
781
|
) -> bool:
|
|
@@ -233,6 +233,7 @@ class SupportExt(Enum):
|
|
|
233
233
|
SupportMultiChannelFlip = 732
|
|
234
234
|
SupportMultiChannelSharedService = 720
|
|
235
235
|
SupportMultiChannelType = 719
|
|
236
|
+
SupportAdvancedDetectType = 793
|
|
236
237
|
SupportMultiScreen = 17
|
|
237
238
|
SupportMultiSubsys = 255
|
|
238
239
|
SupportMultilensPlay = 665
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|