anker-eufy-security 0.1.0__py3-none-any.whl
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.
- anker_eufy_security/__init__.py +719 -0
- anker_eufy_security/_lazy.py +40 -0
- anker_eufy_security/_logging.py +539 -0
- anker_eufy_security/cli/__init__.py +23 -0
- anker_eufy_security/cli/__main__.py +9 -0
- anker_eufy_security/cli/app.py +187 -0
- anker_eufy_security/cli/commands.py +843 -0
- anker_eufy_security/cli/config.py +374 -0
- anker_eufy_security/cli/render.py +1214 -0
- anker_eufy_security/client.py +2063 -0
- anker_eufy_security/cloud/__init__.py +56 -0
- anker_eufy_security/cloud/api.py +4092 -0
- anker_eufy_security/cloud/arming.py +511 -0
- anker_eufy_security/cloud/const.py +397 -0
- anker_eufy_security/cloud/crypto.py +238 -0
- anker_eufy_security/cloud/models.py +836 -0
- anker_eufy_security/cloud/status.py +136 -0
- anker_eufy_security/detection_delivery.py +239 -0
- anker_eufy_security/devices/__init__.py +169 -0
- anker_eufy_security/devices/_device_alarm_data.py +9253 -0
- anker_eufy_security/devices/_live_open_data.py +2042 -0
- anker_eufy_security/devices/_lock_routes_data.py +41 -0
- anker_eufy_security/devices/_model_names_data.py +167 -0
- anker_eufy_security/devices/_ptz_data.py +3268 -0
- anker_eufy_security/devices/_station_config_data.py +754 -0
- anker_eufy_security/devices/_webrtc_routing_data.py +329 -0
- anker_eufy_security/devices/app_models.py +241 -0
- anker_eufy_security/devices/capabilities.py +727 -0
- anker_eufy_security/devices/command_types.py +547 -0
- anker_eufy_security/devices/conditions.py +327 -0
- anker_eufy_security/devices/data/__init__.py +1 -0
- anker_eufy_security/devices/data/models/INDEX.json +171 -0
- anker_eufy_security/devices/data/models/T2801.json +2067 -0
- anker_eufy_security/devices/data/models/T280B.json +2102 -0
- anker_eufy_security/devices/data/models/T2880.json +2067 -0
- anker_eufy_security/devices/data/models/T6010.json +513 -0
- anker_eufy_security/devices/data/models/T6310.json +3025 -0
- anker_eufy_security/devices/data/models/T7000.json +1502 -0
- anker_eufy_security/devices/data/models/T7100.json +2164 -0
- anker_eufy_security/devices/data/models/T7400.json +523 -0
- anker_eufy_security/devices/data/models/T7401.json +532 -0
- anker_eufy_security/devices/data/models/T8001.json +650 -0
- anker_eufy_security/devices/data/models/T8002.json +628 -0
- anker_eufy_security/devices/data/models/T8010.json +797 -0
- anker_eufy_security/devices/data/models/T8020.json +534 -0
- anker_eufy_security/devices/data/models/T8021.json +190 -0
- anker_eufy_security/devices/data/models/T8023.json +598 -0
- anker_eufy_security/devices/data/models/T8024.json +633 -0
- anker_eufy_security/devices/data/models/T8025.json +1136 -0
- anker_eufy_security/devices/data/models/T8026.json +633 -0
- anker_eufy_security/devices/data/models/T8028.json +509 -0
- anker_eufy_security/devices/data/models/T8030.json +1169 -0
- anker_eufy_security/devices/data/models/T8040.json +1624 -0
- anker_eufy_security/devices/data/models/T8110.json +2912 -0
- anker_eufy_security/devices/data/models/T8110E.json +2750 -0
- anker_eufy_security/devices/data/models/T8111.json +2057 -0
- anker_eufy_security/devices/data/models/T8112.json +1808 -0
- anker_eufy_security/devices/data/models/T8113.json +2263 -0
- anker_eufy_security/devices/data/models/T8114.json +1885 -0
- anker_eufy_security/devices/data/models/T8115.json +2839 -0
- anker_eufy_security/devices/data/models/T8119.json +2735 -0
- anker_eufy_security/devices/data/models/T8122.json +2304 -0
- anker_eufy_security/devices/data/models/T8123.json +2418 -0
- anker_eufy_security/devices/data/models/T8124.json +2413 -0
- anker_eufy_security/devices/data/models/T8124R.json +2503 -0
- anker_eufy_security/devices/data/models/T8130.json +2060 -0
- anker_eufy_security/devices/data/models/T8131.json +2234 -0
- anker_eufy_security/devices/data/models/T8134.json +2816 -0
- anker_eufy_security/devices/data/models/T8140.json +2132 -0
- anker_eufy_security/devices/data/models/T8142.json +2252 -0
- anker_eufy_security/devices/data/models/T8144.json +2680 -0
- anker_eufy_security/devices/data/models/T814X.json +2983 -0
- anker_eufy_security/devices/data/models/T814XS.json +2982 -0
- anker_eufy_security/devices/data/models/T8150.json +2058 -0
- anker_eufy_security/devices/data/models/T8151.json +2102 -0
- anker_eufy_security/devices/data/models/T8152.json +2102 -0
- anker_eufy_security/devices/data/models/T8160.json +2351 -0
- anker_eufy_security/devices/data/models/T8160C.json +2372 -0
- anker_eufy_security/devices/data/models/T8161.json +2174 -0
- anker_eufy_security/devices/data/models/T8162.json +3081 -0
- anker_eufy_security/devices/data/models/T8170.json +3536 -0
- anker_eufy_security/devices/data/models/T8170E.json +2875 -0
- anker_eufy_security/devices/data/models/T8171.json +3330 -0
- anker_eufy_security/devices/data/models/T8172.json +3911 -0
- anker_eufy_security/devices/data/models/T8173.json +3365 -0
- anker_eufy_security/devices/data/models/T8174.json +3540 -0
- anker_eufy_security/devices/data/models/T817L.json +3447 -0
- anker_eufy_security/devices/data/models/T8180.json +3619 -0
- anker_eufy_security/devices/data/models/T81A0.json +2273 -0
- anker_eufy_security/devices/data/models/T8200.json +1495 -0
- anker_eufy_security/devices/data/models/T8200X.json +1591 -0
- anker_eufy_security/devices/data/models/T8201.json +1495 -0
- anker_eufy_security/devices/data/models/T8201X.json +1595 -0
- anker_eufy_security/devices/data/models/T8202.json +1617 -0
- anker_eufy_security/devices/data/models/T8203.json +1754 -0
- anker_eufy_security/devices/data/models/T8210.json +2237 -0
- anker_eufy_security/devices/data/models/T8210C.json +2058 -0
- anker_eufy_security/devices/data/models/T8213.json +2600 -0
- anker_eufy_security/devices/data/models/T8214.json +4157 -0
- anker_eufy_security/devices/data/models/T8214C.json +3778 -0
- anker_eufy_security/devices/data/models/T8215.json +4478 -0
- anker_eufy_security/devices/data/models/T8217.json +4074 -0
- anker_eufy_security/devices/data/models/T8220.json +1857 -0
- anker_eufy_security/devices/data/models/T8221.json +1792 -0
- anker_eufy_security/devices/data/models/T8222.json +1902 -0
- anker_eufy_security/devices/data/models/T8223.json +3031 -0
- anker_eufy_security/devices/data/models/T8224.json +2890 -0
- anker_eufy_security/devices/data/models/T8352.json +3043 -0
- anker_eufy_security/devices/data/models/T8354.json +3049 -0
- anker_eufy_security/devices/data/models/T8400.json +3147 -0
- anker_eufy_security/devices/data/models/T8401.json +3129 -0
- anker_eufy_security/devices/data/models/T8404.json +3034 -0
- anker_eufy_security/devices/data/models/T8410.json +3541 -0
- anker_eufy_security/devices/data/models/T8410C.json +3775 -0
- anker_eufy_security/devices/data/models/T8411.json +3129 -0
- anker_eufy_security/devices/data/models/T8414.json +3231 -0
- anker_eufy_security/devices/data/models/T8416.json +3635 -0
- anker_eufy_security/devices/data/models/T8417.json +3601 -0
- anker_eufy_security/devices/data/models/T8419.json +3111 -0
- anker_eufy_security/devices/data/models/T8420.json +1836 -0
- anker_eufy_security/devices/data/models/T8420X.json +1896 -0
- anker_eufy_security/devices/data/models/T8422.json +1932 -0
- anker_eufy_security/devices/data/models/T8423.json +2602 -0
- anker_eufy_security/devices/data/models/T8424.json +1953 -0
- anker_eufy_security/devices/data/models/T8425.json +3238 -0
- anker_eufy_security/devices/data/models/T8426.json +3162 -0
- anker_eufy_security/devices/data/models/T8440.json +2354 -0
- anker_eufy_security/devices/data/models/T8441.json +2607 -0
- anker_eufy_security/devices/data/models/T8442.json +2661 -0
- anker_eufy_security/devices/data/models/T8452.json +1663 -0
- anker_eufy_security/devices/data/models/T8453.json +1671 -0
- anker_eufy_security/devices/data/models/T84A1.json +1972 -0
- anker_eufy_security/devices/data/models/T8500.json +548 -0
- anker_eufy_security/devices/data/models/T8501.json +192 -0
- anker_eufy_security/devices/data/models/T8502.json +273 -0
- anker_eufy_security/devices/data/models/T8503.json +457 -0
- anker_eufy_security/devices/data/models/T8504.json +462 -0
- anker_eufy_security/devices/data/models/T8506.json +338 -0
- anker_eufy_security/devices/data/models/T8510.json +320 -0
- anker_eufy_security/devices/data/models/T8510P.json +353 -0
- anker_eufy_security/devices/data/models/T8520.json +231 -0
- anker_eufy_security/devices/data/models/T8520P.json +370 -0
- anker_eufy_security/devices/data/models/T8530.json +1536 -0
- anker_eufy_security/devices/data/models/T8531.json +2038 -0
- anker_eufy_security/devices/data/models/T8532.json +3489 -0
- anker_eufy_security/devices/data/models/T85D0.json +306 -0
- anker_eufy_security/devices/data/models/T85D2.json +306 -0
- anker_eufy_security/devices/data/models/T85F0.json +306 -0
- anker_eufy_security/devices/data/models/T85F1.json +290 -0
- anker_eufy_security/devices/data/models/T85L0.json +342 -0
- anker_eufy_security/devices/data/models/T85L1.json +333 -0
- anker_eufy_security/devices/data/models/T85M0.json +3346 -0
- anker_eufy_security/devices/data/models/T85M1.json +3394 -0
- anker_eufy_security/devices/data/models/T85P0.json +360 -0
- anker_eufy_security/devices/data/models/T85P1.json +360 -0
- anker_eufy_security/devices/data/models/T85V0.json +2698 -0
- anker_eufy_security/devices/data/models/T8600.json +2665 -0
- anker_eufy_security/devices/data/models/T86C1.json +3125 -0
- anker_eufy_security/devices/data/models/T86P2.json +2400 -0
- anker_eufy_security/devices/data/models/T870G.json +747 -0
- anker_eufy_security/devices/data/models/T8790.json +1041 -0
- anker_eufy_security/devices/data/models/T87A0.json +78 -0
- anker_eufy_security/devices/data/models/T8900.json +158 -0
- anker_eufy_security/devices/data/models/T8910.json +229 -0
- anker_eufy_security/devices/data/models/T8920.json +187 -0
- anker_eufy_security/devices/data/models/T8931.json +156 -0
- anker_eufy_security/devices/data/models/T8960.json +169 -0
- anker_eufy_security/devices/data/models/T8970.json +170 -0
- anker_eufy_security/devices/data/models/T8B00.json +2446 -0
- anker_eufy_security/devices/data/models/T8C00.json +26 -0
- anker_eufy_security/devices/data/models/T8E00.json +2476 -0
- anker_eufy_security/devices/data/models/T8E00E.json +2373 -0
- anker_eufy_security/devices/data/models/T8L00.json +187 -0
- anker_eufy_security/devices/data/models/T8L01.json +178 -0
- anker_eufy_security/devices/data/models/T8L02.json +186 -0
- anker_eufy_security/devices/data/models/T8L04.json +259 -0
- anker_eufy_security/devices/data/models/T8L10.json +206 -0
- anker_eufy_security/devices/data/models/T8L20.json +206 -0
- anker_eufy_security/devices/data/models/T8L30.json +206 -0
- anker_eufy_security/devices/data/models/T8L40.json +206 -0
- anker_eufy_security/devices/data/models/T8L60.json +3606 -0
- anker_eufy_security/devices/data/models/T8N00.json +1647 -0
- anker_eufy_security/devices/data/models/T8P00.json +2102 -0
- anker_eufy_security/devices/data/models/T8P10.json +2132 -0
- anker_eufy_security/devices/data/models/T8W11.json +1982 -0
- anker_eufy_security/devices/data/models/T8W11C.json +3619 -0
- anker_eufy_security/devices/data/models/T8W11P.json +77 -0
- anker_eufy_security/devices/data/models/T9000.json +1589 -0
- anker_eufy_security/devices/data/models/T90C0.json +51 -0
- anker_eufy_security/devices/data/models/T90E0.json +329 -0
- anker_eufy_security/devices/data/models/T90F0.json +329 -0
- anker_eufy_security/devices/data/models/T90G0.json +280 -0
- anker_eufy_security/devices/data/models/T90K0.json +232 -0
- anker_eufy_security/devices/data/models/T90M0.json +292 -0
- anker_eufy_security/devices/data/models/T90P0.json +253 -0
- anker_eufy_security/devices/data/models/T90R0.json +291 -0
- anker_eufy_security/devices/data/models/T90R1.json +198 -0
- anker_eufy_security/devices/data/models/T90S0.json +273 -0
- anker_eufy_security/devices/data/models/__init__.py +1 -0
- anker_eufy_security/devices/data/timezones.json +508 -0
- anker_eufy_security/devices/device_alarm.py +139 -0
- anker_eufy_security/devices/garage.py +190 -0
- anker_eufy_security/devices/labels.py +308 -0
- anker_eufy_security/devices/lights.py +341 -0
- anker_eufy_security/devices/live_open.py +131 -0
- anker_eufy_security/devices/live_view.py +194 -0
- anker_eufy_security/devices/lock_routes.py +113 -0
- anker_eufy_security/devices/locks.py +133 -0
- anker_eufy_security/devices/matrix.py +325 -0
- anker_eufy_security/devices/model_settings.py +2355 -0
- anker_eufy_security/devices/param_info.py +281 -0
- anker_eufy_security/devices/ptz.py +87 -0
- anker_eufy_security/devices/recipes.py +640 -0
- anker_eufy_security/devices/sections.py +89 -0
- anker_eufy_security/devices/settings.py +516 -0
- anker_eufy_security/devices/station_config_support.py +331 -0
- anker_eufy_security/devices/support.py +37 -0
- anker_eufy_security/devices/td.py +263 -0
- anker_eufy_security/devices/timezones.py +112 -0
- anker_eufy_security/devices/types.py +357 -0
- anker_eufy_security/devices/variants.py +35 -0
- anker_eufy_security/devices/versions.py +107 -0
- anker_eufy_security/devices/webrtc.py +228 -0
- anker_eufy_security/diagnostics.py +550 -0
- anker_eufy_security/events.py +1933 -0
- anker_eufy_security/exceptions.py +660 -0
- anker_eufy_security/identity.py +131 -0
- anker_eufy_security/images.py +204 -0
- anker_eufy_security/inclusion.py +91 -0
- anker_eufy_security/install.py +45 -0
- anker_eufy_security/lock_commands/__init__.py +20 -0
- anker_eufy_security/lock_commands/actions.py +88 -0
- anker_eufy_security/lock_commands/anker.py +282 -0
- anker_eufy_security/lock_commands/cm2.py +286 -0
- anker_eufy_security/lock_commands/frames.py +150 -0
- anker_eufy_security/models.py +214 -0
- anker_eufy_security/mqtt/__init__.py +30 -0
- anker_eufy_security/mqtt/account.py +239 -0
- anker_eufy_security/mqtt/client.py +659 -0
- anker_eufy_security/mqtt/envelope.py +224 -0
- anker_eufy_security/mqtt/selection.py +81 -0
- anker_eufy_security/mqtt/tls.py +62 -0
- anker_eufy_security/network.py +245 -0
- anker_eufy_security/p2p/__init__.py +108 -0
- anker_eufy_security/p2p/_json.py +104 -0
- anker_eufy_security/p2p/alarm.py +158 -0
- anker_eufy_security/p2p/broadcast.py +675 -0
- anker_eufy_security/p2p/clip.py +230 -0
- anker_eufy_security/p2p/crypto.py +362 -0
- anker_eufy_security/p2p/did.py +138 -0
- anker_eufy_security/p2p/discovery.py +125 -0
- anker_eufy_security/p2p/encoder.py +350 -0
- anker_eufy_security/p2p/media.py +1229 -0
- anker_eufy_security/p2p/messages.py +926 -0
- anker_eufy_security/p2p/mode_actions.py +502 -0
- anker_eufy_security/p2p/mpegts.py +419 -0
- anker_eufy_security/p2p/netif.py +78 -0
- anker_eufy_security/p2p/notify.py +204 -0
- anker_eufy_security/p2p/pacing.py +130 -0
- anker_eufy_security/p2p/param_notify.py +125 -0
- anker_eufy_security/p2p/params.py +199 -0
- anker_eufy_security/p2p/pppp.py +298 -0
- anker_eufy_security/p2p/session/__init__.py +4209 -0
- anker_eufy_security/p2p/session/budget.py +401 -0
- anker_eufy_security/p2p/session/core.py +151 -0
- anker_eufy_security/p2p/session/history.py +356 -0
- anker_eufy_security/p2p/session/keys.py +133 -0
- anker_eufy_security/p2p/session/media_slot.py +626 -0
- anker_eufy_security/p2p/session/media_stream.py +741 -0
- anker_eufy_security/p2p/session/param_state.py +449 -0
- anker_eufy_security/p2p/session/stats.py +290 -0
- anker_eufy_security/p2p/session/wake.py +29 -0
- anker_eufy_security/p2p/station_config_codecs.py +923 -0
- anker_eufy_security/p2p/storage_info.py +654 -0
- anker_eufy_security/p2p/transport.py +999 -0
- anker_eufy_security/p2p/xzyh.py +253 -0
- anker_eufy_security/push/__init__.py +17 -0
- anker_eufy_security/push/const.py +68 -0
- anker_eufy_security/push/decode.py +207 -0
- anker_eufy_security/push/fcm.py +823 -0
- anker_eufy_security/py.typed +0 -0
- anker_eufy_security/recordings.py +237 -0
- anker_eufy_security/station/__init__.py +4120 -0
- anker_eufy_security/station/activity.py +101 -0
- anker_eufy_security/station/alarms.py +248 -0
- anker_eufy_security/station/base.py +28 -0
- anker_eufy_security/station/configuration.py +923 -0
- anker_eufy_security/station/garage.py +399 -0
- anker_eufy_security/station/history.py +274 -0
- anker_eufy_security/station/locks.py +169 -0
- anker_eufy_security/station/ptz.py +681 -0
- anker_eufy_security/station_config.py +593 -0
- anker_eufy_security/storage.py +893 -0
- anker_eufy_security/testing/__init__.py +54 -0
- anker_eufy_security/testing/cloud.py +964 -0
- anker_eufy_security/testing/mqtt.py +437 -0
- anker_eufy_security/testing/station.py +2034 -0
- anker_eufy_security/testing/station_config.py +82 -0
- anker_eufy_security/testing/synthetic.py +55 -0
- anker_eufy_security/testing/timeouts.py +90 -0
- anker_eufy_security-0.1.0.dist-info/METADATA +247 -0
- anker_eufy_security-0.1.0.dist-info/RECORD +306 -0
- anker_eufy_security-0.1.0.dist-info/WHEEL +4 -0
- anker_eufy_security-0.1.0.dist-info/entry_points.txt +3 -0
- anker_eufy_security-0.1.0.dist-info/licenses/LICENSE +21 -0
- anker_eufy_security-0.1.0.dist-info/licenses/NOTICE +8 -0
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
"""Asyncio client for eufy Security: local P2P to the HomeBase, the eufy cloud, and push events."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING, Any
|
|
6
|
+
|
|
7
|
+
from . import _logging as _logging # installs the NullHandler and wire-logger defaults
|
|
8
|
+
from ._lazy import lazy_exports
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ._logging import (
|
|
12
|
+
LOCATION_KEYS,
|
|
13
|
+
redact,
|
|
14
|
+
redact_location,
|
|
15
|
+
redact_serial,
|
|
16
|
+
set_secret_logging,
|
|
17
|
+
set_wire_logging,
|
|
18
|
+
)
|
|
19
|
+
from .client import EufySecurity, ModelStatus, SkippedDevice
|
|
20
|
+
from .cloud.arming import (
|
|
21
|
+
ArmingActivation,
|
|
22
|
+
ArmingGroup,
|
|
23
|
+
ArmingGroupList,
|
|
24
|
+
ArmingGroupLog,
|
|
25
|
+
ArmingGroupMember,
|
|
26
|
+
ArmingGroupPreset,
|
|
27
|
+
ArmingMemberResult,
|
|
28
|
+
ArmingOutcome,
|
|
29
|
+
)
|
|
30
|
+
from .cloud.models import CloudDevice, CloudFace, CloudInvite, FirmwareUpdate
|
|
31
|
+
from .cloud.status import (
|
|
32
|
+
CloudStatus,
|
|
33
|
+
DeviceListSource,
|
|
34
|
+
LoginNeed,
|
|
35
|
+
RegionStatus,
|
|
36
|
+
SessionState,
|
|
37
|
+
StationRefreshStatus,
|
|
38
|
+
)
|
|
39
|
+
from .detection_delivery import DetectionDelivery, DetectionDeliveryReport
|
|
40
|
+
from .devices.device_alarm import DeviceAlarm
|
|
41
|
+
from .devices.garage import (
|
|
42
|
+
GarageAction,
|
|
43
|
+
GarageDoor,
|
|
44
|
+
GarageDoorSource,
|
|
45
|
+
GarageDoorState,
|
|
46
|
+
)
|
|
47
|
+
from .devices.lights import Light, LightBrightness, LightColorTemperature
|
|
48
|
+
from .devices.live_view import Lens, LensReport, LensSource, LensView
|
|
49
|
+
from .devices.locks import LockReading, LockState, LockStateSource
|
|
50
|
+
from .devices.model_settings import (
|
|
51
|
+
Setting,
|
|
52
|
+
SettingControl,
|
|
53
|
+
SettingKind,
|
|
54
|
+
SettingMeaning,
|
|
55
|
+
SettingRole,
|
|
56
|
+
SettingShown,
|
|
57
|
+
)
|
|
58
|
+
from .devices.recipes import (
|
|
59
|
+
MAX_PRESET_SLOTS,
|
|
60
|
+
MAX_ZOOM,
|
|
61
|
+
MIN_ZOOM,
|
|
62
|
+
PanTilt,
|
|
63
|
+
PresetPosition,
|
|
64
|
+
PtzAction,
|
|
65
|
+
)
|
|
66
|
+
from .devices.sections import (
|
|
67
|
+
MODES_SECTION,
|
|
68
|
+
OTHER_SECTION,
|
|
69
|
+
SETTING_SECTIONS,
|
|
70
|
+
SettingSection,
|
|
71
|
+
setting_section,
|
|
72
|
+
)
|
|
73
|
+
from .devices.settings import MODE_ACTION_ALARM_AFFECTING, MODE_ACTION_LABELS, SettingUnit
|
|
74
|
+
from .devices.station_config_support import ModeTableStorage, StationFeature
|
|
75
|
+
from .diagnostics import AccountReport
|
|
76
|
+
from .events import (
|
|
77
|
+
AccountMismatch,
|
|
78
|
+
AlarmChanged,
|
|
79
|
+
AlarmDelayChanged,
|
|
80
|
+
AlarmPhase,
|
|
81
|
+
AlarmStopSource,
|
|
82
|
+
ArmingSource,
|
|
83
|
+
CameraBusyChanged,
|
|
84
|
+
CloudProblem,
|
|
85
|
+
ConnectionChanged,
|
|
86
|
+
CredentialsRefreshed,
|
|
87
|
+
DetectedEventsCounted,
|
|
88
|
+
DetectionType,
|
|
89
|
+
DeviceAlarmChanged,
|
|
90
|
+
DevicesChanged,
|
|
91
|
+
DisconnectCause,
|
|
92
|
+
Event,
|
|
93
|
+
EventDeduplicator,
|
|
94
|
+
EventScope,
|
|
95
|
+
EventSource,
|
|
96
|
+
GarageDoorChanged,
|
|
97
|
+
GuardModeChanged,
|
|
98
|
+
GuardModeOrigin,
|
|
99
|
+
HistoryRecord,
|
|
100
|
+
LockStateChanged,
|
|
101
|
+
ParamChanged,
|
|
102
|
+
PresetsChanged,
|
|
103
|
+
PushChanged,
|
|
104
|
+
PushMessageType,
|
|
105
|
+
PushPictureSource,
|
|
106
|
+
RecordedEventsCounted,
|
|
107
|
+
SecurityEvent,
|
|
108
|
+
StationConfigChanged,
|
|
109
|
+
StationsChanged,
|
|
110
|
+
StationStateChanged,
|
|
111
|
+
StorageChanged,
|
|
112
|
+
ZoomChanged,
|
|
113
|
+
)
|
|
114
|
+
from .exceptions import (
|
|
115
|
+
AccountRejectedError,
|
|
116
|
+
AuthenticationError,
|
|
117
|
+
CameraWakeError,
|
|
118
|
+
CaptureStoppedError,
|
|
119
|
+
CipherKeyMissingError,
|
|
120
|
+
CipherUnavailableError,
|
|
121
|
+
CipherUnusableError,
|
|
122
|
+
CloudApiError,
|
|
123
|
+
CloudError,
|
|
124
|
+
CommandError,
|
|
125
|
+
CommandNotAppliedError,
|
|
126
|
+
CommandRejectedError,
|
|
127
|
+
CommandUnsupportedError,
|
|
128
|
+
CommunicationError,
|
|
129
|
+
ConfigChangedError,
|
|
130
|
+
DeviceBusyError,
|
|
131
|
+
DeviceTimeoutError,
|
|
132
|
+
DoorNotMovedError,
|
|
133
|
+
DoorStateUnknownError,
|
|
134
|
+
EmptyResponseError,
|
|
135
|
+
EufySecurityError,
|
|
136
|
+
HandshakeError,
|
|
137
|
+
InviteCodeError,
|
|
138
|
+
KeyExchangeRefusedError,
|
|
139
|
+
KeyRejectedError,
|
|
140
|
+
LiveStreamLimitError,
|
|
141
|
+
LockReplyMismatchError,
|
|
142
|
+
LoginChallengeError,
|
|
143
|
+
LoginLimitedError,
|
|
144
|
+
LoginVerificationError,
|
|
145
|
+
MissingDependencyError,
|
|
146
|
+
ModeInUseError,
|
|
147
|
+
ModelDataError,
|
|
148
|
+
NoCachedSessionError,
|
|
149
|
+
PresetSlotsFullError,
|
|
150
|
+
ProtocolError,
|
|
151
|
+
PtzActionUnsupportedError,
|
|
152
|
+
RateLimitedError,
|
|
153
|
+
RateLimitOrigin,
|
|
154
|
+
RecordingCursorError,
|
|
155
|
+
RecordingRefError,
|
|
156
|
+
RecordNotFoundError,
|
|
157
|
+
RefreshCooldownError,
|
|
158
|
+
SessionRejectedError,
|
|
159
|
+
SessionReplacedError,
|
|
160
|
+
StationUnreachableError,
|
|
161
|
+
StillNotWrittenError,
|
|
162
|
+
UnsupportedError,
|
|
163
|
+
VideoEncryptedPictureError,
|
|
164
|
+
)
|
|
165
|
+
from .identity import StationClaims, entity_unique_id
|
|
166
|
+
from .images import (
|
|
167
|
+
H264_CONTENT_TYPE,
|
|
168
|
+
HEVC_CONTENT_TYPE,
|
|
169
|
+
IMAGE_SOURCES,
|
|
170
|
+
JPEG_CONTENT_TYPE,
|
|
171
|
+
CameraImage,
|
|
172
|
+
ImageSource,
|
|
173
|
+
ImageSourceInfo,
|
|
174
|
+
PushImage,
|
|
175
|
+
)
|
|
176
|
+
from .inclusion import Reach, StationChoice
|
|
177
|
+
from .install import InstallState
|
|
178
|
+
from .models import GUARD_MODE_LABELS, FrameCipher, GuardMode, ValueSource
|
|
179
|
+
from .network import HostSource, LanPath, PathWarning, suggest_local_ports
|
|
180
|
+
from .p2p.broadcast import (
|
|
181
|
+
CODEC_CHANGE_GRACE,
|
|
182
|
+
DEFAULT_QUEUE_CHUNKS,
|
|
183
|
+
FrameStream,
|
|
184
|
+
ResizePolicy,
|
|
185
|
+
StreamBroadcast,
|
|
186
|
+
)
|
|
187
|
+
from .p2p.clip import CLIP_CONTENT_TYPE, ClipWriter, IncompleteReason, MediaClip
|
|
188
|
+
from .p2p.encoder import SETTLE_STANDALONE, SETTLE_STATION
|
|
189
|
+
from .p2p.media import MediaKeyType, Still, StillFormat, VideoCodec, picture_codec
|
|
190
|
+
from .p2p.messages import SOUND_ALARM_SECONDS
|
|
191
|
+
from .p2p.mode_actions import MODE_DELAY_CHOICES, ModeTable
|
|
192
|
+
from .p2p.pppp import LAN_DISCOVERY_TIMEOUT
|
|
193
|
+
from .p2p.session import (
|
|
194
|
+
DEFAULT_STATION_SESSIONS,
|
|
195
|
+
MIN_STATION_SESSIONS,
|
|
196
|
+
STATION_SESSION_LIMIT,
|
|
197
|
+
CommandOutcome,
|
|
198
|
+
)
|
|
199
|
+
from .p2p.session.stats import SessionStats
|
|
200
|
+
from .p2p.station_config_codecs import Schedule, ScheduleSlot, Weekday
|
|
201
|
+
from .p2p.storage_info import DiskInfo, EmmcInfo, MediumState, StorageInfo, StorageMedium
|
|
202
|
+
from .recordings import RecordingsPage
|
|
203
|
+
from .station import RemoteStation, SettingsCoverage, Station, StationState, SubDeviceState
|
|
204
|
+
from .station_config import (
|
|
205
|
+
CrossCameraConfig,
|
|
206
|
+
ModeDeviceAction,
|
|
207
|
+
ModeInfo,
|
|
208
|
+
ModeTableView,
|
|
209
|
+
StationConfig,
|
|
210
|
+
guard_mode_label,
|
|
211
|
+
)
|
|
212
|
+
from .storage import (
|
|
213
|
+
CACHE_LAYOUT_VERSION,
|
|
214
|
+
JsonFileStore,
|
|
215
|
+
MemoryStore,
|
|
216
|
+
SessionCache,
|
|
217
|
+
Store,
|
|
218
|
+
async_forget_account,
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
__version__: str
|
|
222
|
+
|
|
223
|
+
# Resolved on first use (see _lazy): importing the package, or one submodule, does
|
|
224
|
+
# not load aiohttp, the cloud client or the push stack until something needs them.
|
|
225
|
+
_EXPORTS: dict[str, str] = {
|
|
226
|
+
**dict.fromkeys(
|
|
227
|
+
(
|
|
228
|
+
"LOCATION_KEYS",
|
|
229
|
+
"redact",
|
|
230
|
+
"redact_location",
|
|
231
|
+
"redact_serial",
|
|
232
|
+
"set_secret_logging",
|
|
233
|
+
"set_wire_logging",
|
|
234
|
+
),
|
|
235
|
+
"_logging",
|
|
236
|
+
),
|
|
237
|
+
**dict.fromkeys(("EufySecurity", "ModelStatus", "SkippedDevice"), "client"),
|
|
238
|
+
**dict.fromkeys(("DetectionDelivery", "DetectionDeliveryReport"), "detection_delivery"),
|
|
239
|
+
**dict.fromkeys(
|
|
240
|
+
(
|
|
241
|
+
"ArmingActivation",
|
|
242
|
+
"ArmingGroup",
|
|
243
|
+
"ArmingGroupList",
|
|
244
|
+
"ArmingGroupLog",
|
|
245
|
+
"ArmingGroupMember",
|
|
246
|
+
"ArmingGroupPreset",
|
|
247
|
+
"ArmingMemberResult",
|
|
248
|
+
"ArmingOutcome",
|
|
249
|
+
),
|
|
250
|
+
"cloud.arming",
|
|
251
|
+
),
|
|
252
|
+
"AccountReport": "diagnostics",
|
|
253
|
+
**dict.fromkeys(("CloudDevice", "CloudFace", "CloudInvite", "FirmwareUpdate"), "cloud.models"),
|
|
254
|
+
**dict.fromkeys(
|
|
255
|
+
(
|
|
256
|
+
"CloudStatus",
|
|
257
|
+
"DeviceListSource",
|
|
258
|
+
"LoginNeed",
|
|
259
|
+
"RegionStatus",
|
|
260
|
+
"SessionState",
|
|
261
|
+
"StationRefreshStatus",
|
|
262
|
+
),
|
|
263
|
+
"cloud.status",
|
|
264
|
+
),
|
|
265
|
+
"DeviceAlarm": "devices.device_alarm",
|
|
266
|
+
**dict.fromkeys(
|
|
267
|
+
("GarageAction", "GarageDoor", "GarageDoorSource", "GarageDoorState"), "devices.garage"
|
|
268
|
+
),
|
|
269
|
+
**dict.fromkeys(("Light", "LightBrightness", "LightColorTemperature"), "devices.lights"),
|
|
270
|
+
**dict.fromkeys(("LockReading", "LockState", "LockStateSource"), "devices.locks"),
|
|
271
|
+
**dict.fromkeys(
|
|
272
|
+
(
|
|
273
|
+
"Setting",
|
|
274
|
+
"SettingControl",
|
|
275
|
+
"SettingKind",
|
|
276
|
+
"SettingMeaning",
|
|
277
|
+
"SettingRole",
|
|
278
|
+
"SettingShown",
|
|
279
|
+
),
|
|
280
|
+
"devices.model_settings",
|
|
281
|
+
),
|
|
282
|
+
**dict.fromkeys(
|
|
283
|
+
(
|
|
284
|
+
"MODES_SECTION",
|
|
285
|
+
"OTHER_SECTION",
|
|
286
|
+
"SETTING_SECTIONS",
|
|
287
|
+
"SettingSection",
|
|
288
|
+
"setting_section",
|
|
289
|
+
),
|
|
290
|
+
"devices.sections",
|
|
291
|
+
),
|
|
292
|
+
**dict.fromkeys(
|
|
293
|
+
("MODE_ACTION_ALARM_AFFECTING", "MODE_ACTION_LABELS", "SettingUnit"), "devices.settings"
|
|
294
|
+
),
|
|
295
|
+
**dict.fromkeys(("ModeTableStorage", "StationFeature"), "devices.station_config_support"),
|
|
296
|
+
**dict.fromkeys(
|
|
297
|
+
("MAX_PRESET_SLOTS", "MAX_ZOOM", "MIN_ZOOM", "PanTilt", "PresetPosition", "PtzAction"),
|
|
298
|
+
"devices.recipes",
|
|
299
|
+
),
|
|
300
|
+
**dict.fromkeys(("Lens", "LensReport", "LensSource", "LensView"), "devices.live_view"),
|
|
301
|
+
**dict.fromkeys(
|
|
302
|
+
(
|
|
303
|
+
"CODEC_CHANGE_GRACE",
|
|
304
|
+
"DEFAULT_QUEUE_CHUNKS",
|
|
305
|
+
"FrameStream",
|
|
306
|
+
"ResizePolicy",
|
|
307
|
+
"StreamBroadcast",
|
|
308
|
+
),
|
|
309
|
+
"p2p.broadcast",
|
|
310
|
+
),
|
|
311
|
+
**dict.fromkeys(
|
|
312
|
+
("CLIP_CONTENT_TYPE", "ClipWriter", "IncompleteReason", "MediaClip"), "p2p.clip"
|
|
313
|
+
),
|
|
314
|
+
**dict.fromkeys(("SETTLE_STANDALONE", "SETTLE_STATION"), "p2p.encoder"),
|
|
315
|
+
"SOUND_ALARM_SECONDS": "p2p.messages",
|
|
316
|
+
**dict.fromkeys(("MODE_DELAY_CHOICES", "ModeTable"), "p2p.mode_actions"),
|
|
317
|
+
**dict.fromkeys(("Schedule", "ScheduleSlot", "Weekday"), "p2p.station_config_codecs"),
|
|
318
|
+
**dict.fromkeys(
|
|
319
|
+
(
|
|
320
|
+
"AccountMismatch",
|
|
321
|
+
"AlarmChanged",
|
|
322
|
+
"AlarmDelayChanged",
|
|
323
|
+
"AlarmPhase",
|
|
324
|
+
"AlarmStopSource",
|
|
325
|
+
"ArmingSource",
|
|
326
|
+
"CameraBusyChanged",
|
|
327
|
+
"CloudProblem",
|
|
328
|
+
"ConnectionChanged",
|
|
329
|
+
"CredentialsRefreshed",
|
|
330
|
+
"DetectedEventsCounted",
|
|
331
|
+
"DetectionType",
|
|
332
|
+
"DeviceAlarmChanged",
|
|
333
|
+
"DevicesChanged",
|
|
334
|
+
"StationsChanged",
|
|
335
|
+
"DisconnectCause",
|
|
336
|
+
"Event",
|
|
337
|
+
"EventDeduplicator",
|
|
338
|
+
"EventScope",
|
|
339
|
+
"EventSource",
|
|
340
|
+
"GarageDoorChanged",
|
|
341
|
+
"GuardModeChanged",
|
|
342
|
+
"GuardModeOrigin",
|
|
343
|
+
"HistoryRecord",
|
|
344
|
+
"LockStateChanged",
|
|
345
|
+
"ParamChanged",
|
|
346
|
+
"PresetsChanged",
|
|
347
|
+
"PushChanged",
|
|
348
|
+
"PushMessageType",
|
|
349
|
+
"PushPictureSource",
|
|
350
|
+
"RecordedEventsCounted",
|
|
351
|
+
"SecurityEvent",
|
|
352
|
+
"StationConfigChanged",
|
|
353
|
+
"StationStateChanged",
|
|
354
|
+
"StorageChanged",
|
|
355
|
+
"ZoomChanged",
|
|
356
|
+
),
|
|
357
|
+
"events",
|
|
358
|
+
),
|
|
359
|
+
**dict.fromkeys(
|
|
360
|
+
(
|
|
361
|
+
"AccountRejectedError",
|
|
362
|
+
"AuthenticationError",
|
|
363
|
+
"CameraWakeError",
|
|
364
|
+
"CaptureStoppedError",
|
|
365
|
+
"CipherKeyMissingError",
|
|
366
|
+
"CipherUnavailableError",
|
|
367
|
+
"CipherUnusableError",
|
|
368
|
+
"CloudApiError",
|
|
369
|
+
"CloudError",
|
|
370
|
+
"CommandError",
|
|
371
|
+
"CommandNotAppliedError",
|
|
372
|
+
"CommandRejectedError",
|
|
373
|
+
"CommandUnsupportedError",
|
|
374
|
+
"CommunicationError",
|
|
375
|
+
"ConfigChangedError",
|
|
376
|
+
"DeviceBusyError",
|
|
377
|
+
"DeviceTimeoutError",
|
|
378
|
+
"DoorNotMovedError",
|
|
379
|
+
"DoorStateUnknownError",
|
|
380
|
+
"EmptyResponseError",
|
|
381
|
+
"EufySecurityError",
|
|
382
|
+
"HandshakeError",
|
|
383
|
+
"InviteCodeError",
|
|
384
|
+
"KeyExchangeRefusedError",
|
|
385
|
+
"KeyRejectedError",
|
|
386
|
+
"LiveStreamLimitError",
|
|
387
|
+
"LoginChallengeError",
|
|
388
|
+
"LoginLimitedError",
|
|
389
|
+
"LockReplyMismatchError",
|
|
390
|
+
"LoginVerificationError",
|
|
391
|
+
"ModeInUseError",
|
|
392
|
+
"MissingDependencyError",
|
|
393
|
+
"ModelDataError",
|
|
394
|
+
"NoCachedSessionError",
|
|
395
|
+
"PresetSlotsFullError",
|
|
396
|
+
"ProtocolError",
|
|
397
|
+
"PtzActionUnsupportedError",
|
|
398
|
+
"RateLimitOrigin",
|
|
399
|
+
"RateLimitedError",
|
|
400
|
+
"RecordingCursorError",
|
|
401
|
+
"RecordingRefError",
|
|
402
|
+
"RecordNotFoundError",
|
|
403
|
+
"RefreshCooldownError",
|
|
404
|
+
"SessionRejectedError",
|
|
405
|
+
"SessionReplacedError",
|
|
406
|
+
"StationUnreachableError",
|
|
407
|
+
"StillNotWrittenError",
|
|
408
|
+
"UnsupportedError",
|
|
409
|
+
"VideoEncryptedPictureError",
|
|
410
|
+
),
|
|
411
|
+
"exceptions",
|
|
412
|
+
),
|
|
413
|
+
**dict.fromkeys(("StationClaims", "entity_unique_id"), "identity"),
|
|
414
|
+
**dict.fromkeys(
|
|
415
|
+
(
|
|
416
|
+
"H264_CONTENT_TYPE",
|
|
417
|
+
"HEVC_CONTENT_TYPE",
|
|
418
|
+
"IMAGE_SOURCES",
|
|
419
|
+
"JPEG_CONTENT_TYPE",
|
|
420
|
+
"CameraImage",
|
|
421
|
+
"ImageSource",
|
|
422
|
+
"ImageSourceInfo",
|
|
423
|
+
"PushImage",
|
|
424
|
+
),
|
|
425
|
+
"images",
|
|
426
|
+
),
|
|
427
|
+
"InstallState": "install",
|
|
428
|
+
**dict.fromkeys(("Reach", "StationChoice"), "inclusion"),
|
|
429
|
+
"RecordingsPage": "recordings",
|
|
430
|
+
**dict.fromkeys(("GUARD_MODE_LABELS", "FrameCipher", "GuardMode", "ValueSource"), "models"),
|
|
431
|
+
**dict.fromkeys(("HostSource", "LanPath", "PathWarning", "suggest_local_ports"), "network"),
|
|
432
|
+
**dict.fromkeys(
|
|
433
|
+
("MediaKeyType", "Still", "StillFormat", "VideoCodec", "picture_codec"), "p2p.media"
|
|
434
|
+
),
|
|
435
|
+
"LAN_DISCOVERY_TIMEOUT": "p2p.pppp",
|
|
436
|
+
**dict.fromkeys(
|
|
437
|
+
(
|
|
438
|
+
"DEFAULT_STATION_SESSIONS",
|
|
439
|
+
"MIN_STATION_SESSIONS",
|
|
440
|
+
"STATION_SESSION_LIMIT",
|
|
441
|
+
"CommandOutcome",
|
|
442
|
+
),
|
|
443
|
+
"p2p.session",
|
|
444
|
+
),
|
|
445
|
+
"SessionStats": "p2p.session.stats",
|
|
446
|
+
**dict.fromkeys(
|
|
447
|
+
("DiskInfo", "EmmcInfo", "MediumState", "StorageInfo", "StorageMedium"),
|
|
448
|
+
"p2p.storage_info",
|
|
449
|
+
),
|
|
450
|
+
**dict.fromkeys(
|
|
451
|
+
("RemoteStation", "SettingsCoverage", "Station", "StationState", "SubDeviceState"),
|
|
452
|
+
"station",
|
|
453
|
+
),
|
|
454
|
+
**dict.fromkeys(
|
|
455
|
+
(
|
|
456
|
+
"CrossCameraConfig",
|
|
457
|
+
"ModeDeviceAction",
|
|
458
|
+
"ModeInfo",
|
|
459
|
+
"ModeTableView",
|
|
460
|
+
"StationConfig",
|
|
461
|
+
"guard_mode_label",
|
|
462
|
+
),
|
|
463
|
+
"station_config",
|
|
464
|
+
),
|
|
465
|
+
**dict.fromkeys(
|
|
466
|
+
(
|
|
467
|
+
"CACHE_LAYOUT_VERSION",
|
|
468
|
+
"JsonFileStore",
|
|
469
|
+
"MemoryStore",
|
|
470
|
+
"SessionCache",
|
|
471
|
+
"Store",
|
|
472
|
+
"async_forget_account",
|
|
473
|
+
),
|
|
474
|
+
"storage",
|
|
475
|
+
),
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
__all__ = [
|
|
479
|
+
"CACHE_LAYOUT_VERSION",
|
|
480
|
+
"CLIP_CONTENT_TYPE",
|
|
481
|
+
"CODEC_CHANGE_GRACE",
|
|
482
|
+
"DEFAULT_QUEUE_CHUNKS",
|
|
483
|
+
"DEFAULT_STATION_SESSIONS",
|
|
484
|
+
"GUARD_MODE_LABELS",
|
|
485
|
+
"H264_CONTENT_TYPE",
|
|
486
|
+
"HEVC_CONTENT_TYPE",
|
|
487
|
+
"IMAGE_SOURCES",
|
|
488
|
+
"JPEG_CONTENT_TYPE",
|
|
489
|
+
"LAN_DISCOVERY_TIMEOUT",
|
|
490
|
+
"LOCATION_KEYS",
|
|
491
|
+
"MAX_PRESET_SLOTS",
|
|
492
|
+
"MAX_ZOOM",
|
|
493
|
+
"MIN_STATION_SESSIONS",
|
|
494
|
+
"MIN_ZOOM",
|
|
495
|
+
"MODES_SECTION",
|
|
496
|
+
"MODE_ACTION_ALARM_AFFECTING",
|
|
497
|
+
"MODE_ACTION_LABELS",
|
|
498
|
+
"MODE_DELAY_CHOICES",
|
|
499
|
+
"OTHER_SECTION",
|
|
500
|
+
"SETTING_SECTIONS",
|
|
501
|
+
"SETTLE_STANDALONE",
|
|
502
|
+
"SETTLE_STATION",
|
|
503
|
+
"SOUND_ALARM_SECONDS",
|
|
504
|
+
"STATION_SESSION_LIMIT",
|
|
505
|
+
"AccountMismatch",
|
|
506
|
+
"AccountRejectedError",
|
|
507
|
+
"AccountReport",
|
|
508
|
+
"AlarmChanged",
|
|
509
|
+
"AlarmDelayChanged",
|
|
510
|
+
"AlarmPhase",
|
|
511
|
+
"AlarmStopSource",
|
|
512
|
+
"ArmingActivation",
|
|
513
|
+
"ArmingGroup",
|
|
514
|
+
"ArmingGroupList",
|
|
515
|
+
"ArmingGroupLog",
|
|
516
|
+
"ArmingGroupMember",
|
|
517
|
+
"ArmingGroupPreset",
|
|
518
|
+
"ArmingMemberResult",
|
|
519
|
+
"ArmingOutcome",
|
|
520
|
+
"ArmingSource",
|
|
521
|
+
"AuthenticationError",
|
|
522
|
+
"CameraBusyChanged",
|
|
523
|
+
"CameraImage",
|
|
524
|
+
"CameraWakeError",
|
|
525
|
+
"CaptureStoppedError",
|
|
526
|
+
"CipherKeyMissingError",
|
|
527
|
+
"CipherUnavailableError",
|
|
528
|
+
"CipherUnusableError",
|
|
529
|
+
"ClipWriter",
|
|
530
|
+
"CloudApiError",
|
|
531
|
+
"CloudDevice",
|
|
532
|
+
"CloudError",
|
|
533
|
+
"CloudFace",
|
|
534
|
+
"CloudInvite",
|
|
535
|
+
"CloudProblem",
|
|
536
|
+
"CloudStatus",
|
|
537
|
+
"CommandError",
|
|
538
|
+
"CommandNotAppliedError",
|
|
539
|
+
"CommandOutcome",
|
|
540
|
+
"CommandRejectedError",
|
|
541
|
+
"CommandUnsupportedError",
|
|
542
|
+
"CommunicationError",
|
|
543
|
+
"ConfigChangedError",
|
|
544
|
+
"ConnectionChanged",
|
|
545
|
+
"CredentialsRefreshed",
|
|
546
|
+
"CrossCameraConfig",
|
|
547
|
+
"DetectedEventsCounted",
|
|
548
|
+
"DetectionDelivery",
|
|
549
|
+
"DetectionDeliveryReport",
|
|
550
|
+
"DetectionType",
|
|
551
|
+
"DeviceAlarm",
|
|
552
|
+
"DeviceAlarmChanged",
|
|
553
|
+
"DeviceBusyError",
|
|
554
|
+
"DeviceListSource",
|
|
555
|
+
"DeviceTimeoutError",
|
|
556
|
+
"DevicesChanged",
|
|
557
|
+
"DisconnectCause",
|
|
558
|
+
"DiskInfo",
|
|
559
|
+
"DoorNotMovedError",
|
|
560
|
+
"DoorStateUnknownError",
|
|
561
|
+
"EmmcInfo",
|
|
562
|
+
"EmptyResponseError",
|
|
563
|
+
"EufySecurity",
|
|
564
|
+
"EufySecurityError",
|
|
565
|
+
"Event",
|
|
566
|
+
"EventDeduplicator",
|
|
567
|
+
"EventScope",
|
|
568
|
+
"EventSource",
|
|
569
|
+
"FirmwareUpdate",
|
|
570
|
+
"FrameCipher",
|
|
571
|
+
"FrameStream",
|
|
572
|
+
"GarageAction",
|
|
573
|
+
"GarageDoor",
|
|
574
|
+
"GarageDoorChanged",
|
|
575
|
+
"GarageDoorSource",
|
|
576
|
+
"GarageDoorState",
|
|
577
|
+
"GuardMode",
|
|
578
|
+
"GuardModeChanged",
|
|
579
|
+
"GuardModeOrigin",
|
|
580
|
+
"HandshakeError",
|
|
581
|
+
"HistoryRecord",
|
|
582
|
+
"HostSource",
|
|
583
|
+
"ImageSource",
|
|
584
|
+
"ImageSourceInfo",
|
|
585
|
+
"IncompleteReason",
|
|
586
|
+
"InstallState",
|
|
587
|
+
"InviteCodeError",
|
|
588
|
+
"JsonFileStore",
|
|
589
|
+
"KeyExchangeRefusedError",
|
|
590
|
+
"KeyRejectedError",
|
|
591
|
+
"LanPath",
|
|
592
|
+
"Lens",
|
|
593
|
+
"LensReport",
|
|
594
|
+
"LensSource",
|
|
595
|
+
"LensView",
|
|
596
|
+
"Light",
|
|
597
|
+
"LightBrightness",
|
|
598
|
+
"LightColorTemperature",
|
|
599
|
+
"LiveStreamLimitError",
|
|
600
|
+
"LockReading",
|
|
601
|
+
"LockReplyMismatchError",
|
|
602
|
+
"LockState",
|
|
603
|
+
"LockStateChanged",
|
|
604
|
+
"LockStateSource",
|
|
605
|
+
"LoginChallengeError",
|
|
606
|
+
"LoginLimitedError",
|
|
607
|
+
"LoginNeed",
|
|
608
|
+
"LoginVerificationError",
|
|
609
|
+
"MediaClip",
|
|
610
|
+
"MediaKeyType",
|
|
611
|
+
"MediumState",
|
|
612
|
+
"MemoryStore",
|
|
613
|
+
"MissingDependencyError",
|
|
614
|
+
"ModeDeviceAction",
|
|
615
|
+
"ModeInUseError",
|
|
616
|
+
"ModeInfo",
|
|
617
|
+
"ModeTable",
|
|
618
|
+
"ModeTableStorage",
|
|
619
|
+
"ModeTableView",
|
|
620
|
+
"ModelDataError",
|
|
621
|
+
"ModelStatus",
|
|
622
|
+
"NoCachedSessionError",
|
|
623
|
+
"PanTilt",
|
|
624
|
+
"ParamChanged",
|
|
625
|
+
"PathWarning",
|
|
626
|
+
"PresetPosition",
|
|
627
|
+
"PresetSlotsFullError",
|
|
628
|
+
"PresetsChanged",
|
|
629
|
+
"ProtocolError",
|
|
630
|
+
"PtzAction",
|
|
631
|
+
"PtzActionUnsupportedError",
|
|
632
|
+
"PushChanged",
|
|
633
|
+
"PushImage",
|
|
634
|
+
"PushMessageType",
|
|
635
|
+
"PushPictureSource",
|
|
636
|
+
"RateLimitOrigin",
|
|
637
|
+
"RateLimitedError",
|
|
638
|
+
"Reach",
|
|
639
|
+
"RecordNotFoundError",
|
|
640
|
+
"RecordedEventsCounted",
|
|
641
|
+
"RecordingCursorError",
|
|
642
|
+
"RecordingRefError",
|
|
643
|
+
"RecordingsPage",
|
|
644
|
+
"RefreshCooldownError",
|
|
645
|
+
"RegionStatus",
|
|
646
|
+
"RemoteStation",
|
|
647
|
+
"ResizePolicy",
|
|
648
|
+
"Schedule",
|
|
649
|
+
"ScheduleSlot",
|
|
650
|
+
"SecurityEvent",
|
|
651
|
+
"SessionCache",
|
|
652
|
+
"SessionRejectedError",
|
|
653
|
+
"SessionReplacedError",
|
|
654
|
+
"SessionState",
|
|
655
|
+
"SessionStats",
|
|
656
|
+
"Setting",
|
|
657
|
+
"SettingControl",
|
|
658
|
+
"SettingKind",
|
|
659
|
+
"SettingMeaning",
|
|
660
|
+
"SettingRole",
|
|
661
|
+
"SettingSection",
|
|
662
|
+
"SettingShown",
|
|
663
|
+
"SettingUnit",
|
|
664
|
+
"SettingsCoverage",
|
|
665
|
+
"SkippedDevice",
|
|
666
|
+
"Station",
|
|
667
|
+
"StationChoice",
|
|
668
|
+
"StationClaims",
|
|
669
|
+
"StationConfig",
|
|
670
|
+
"StationConfigChanged",
|
|
671
|
+
"StationFeature",
|
|
672
|
+
"StationRefreshStatus",
|
|
673
|
+
"StationState",
|
|
674
|
+
"StationStateChanged",
|
|
675
|
+
"StationUnreachableError",
|
|
676
|
+
"StationsChanged",
|
|
677
|
+
"Still",
|
|
678
|
+
"StillFormat",
|
|
679
|
+
"StillNotWrittenError",
|
|
680
|
+
"StorageChanged",
|
|
681
|
+
"StorageInfo",
|
|
682
|
+
"StorageMedium",
|
|
683
|
+
"Store",
|
|
684
|
+
"StreamBroadcast",
|
|
685
|
+
"SubDeviceState",
|
|
686
|
+
"UnsupportedError",
|
|
687
|
+
"ValueSource",
|
|
688
|
+
"VideoCodec",
|
|
689
|
+
"VideoEncryptedPictureError",
|
|
690
|
+
"Weekday",
|
|
691
|
+
"ZoomChanged",
|
|
692
|
+
"__version__",
|
|
693
|
+
"async_forget_account",
|
|
694
|
+
"entity_unique_id",
|
|
695
|
+
"guard_mode_label",
|
|
696
|
+
"picture_codec",
|
|
697
|
+
"redact",
|
|
698
|
+
"redact_location",
|
|
699
|
+
"redact_serial",
|
|
700
|
+
"set_secret_logging",
|
|
701
|
+
"set_wire_logging",
|
|
702
|
+
"setting_section",
|
|
703
|
+
"suggest_local_ports",
|
|
704
|
+
]
|
|
705
|
+
|
|
706
|
+
_getattr, __dir__ = lazy_exports(__name__, globals(), _EXPORTS)
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
def __getattr__(name: str) -> Any:
|
|
710
|
+
if name != "__version__":
|
|
711
|
+
return _getattr(name)
|
|
712
|
+
from importlib.metadata import PackageNotFoundError, version # noqa: PLC0415
|
|
713
|
+
|
|
714
|
+
try:
|
|
715
|
+
value = version("anker-eufy-security")
|
|
716
|
+
except PackageNotFoundError: # pragma: no cover - running from a source tree
|
|
717
|
+
value = "0.0.0"
|
|
718
|
+
globals()[name] = value
|
|
719
|
+
return value
|