zwave-js-server-python 0.70.0__py3-none-any.whl → 0.71.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.
- zwave_js_server/const/__init__.py +2 -2
- zwave_js_server/const/command_class/access_control.py +87 -0
- zwave_js_server/model/access_control.py +885 -0
- zwave_js_server/model/endpoint.py +6 -0
- zwave_js_server/model/node/__init__.py +65 -0
- zwave_js_server/model/node/event_model.py +91 -1
- zwave_js_server/model/value.py +9 -0
- zwave_js_server/util/helpers.py +29 -2
- {zwave_js_server_python-0.70.0.dist-info → zwave_js_server_python-0.71.0.dist-info}/METADATA +13 -1
- {zwave_js_server_python-0.70.0.dist-info → zwave_js_server_python-0.71.0.dist-info}/RECORD +14 -12
- {zwave_js_server_python-0.70.0.dist-info → zwave_js_server_python-0.71.0.dist-info}/WHEEL +0 -0
- {zwave_js_server_python-0.70.0.dist-info → zwave_js_server_python-0.71.0.dist-info}/entry_points.txt +0 -0
- {zwave_js_server_python-0.70.0.dist-info → zwave_js_server_python-0.71.0.dist-info}/licenses/LICENSE +0 -0
- {zwave_js_server_python-0.70.0.dist-info → zwave_js_server_python-0.71.0.dist-info}/top_level.txt +0 -0
|
@@ -8,12 +8,12 @@ import logging
|
|
|
8
8
|
from typing import TypedDict
|
|
9
9
|
|
|
10
10
|
PACKAGE_NAME = "zwave-js-server-python"
|
|
11
|
-
__version__ = "0.
|
|
11
|
+
__version__ = "0.71.0"
|
|
12
12
|
|
|
13
13
|
# minimal server schema version we can handle
|
|
14
14
|
MIN_SERVER_SCHEMA_VERSION = 47
|
|
15
15
|
# max server schema version we can handle (and our code is compatible with)
|
|
16
|
-
MAX_SERVER_SCHEMA_VERSION =
|
|
16
|
+
MAX_SERVER_SCHEMA_VERSION = 48
|
|
17
17
|
|
|
18
18
|
VALUE_UNKNOWN = "unknown"
|
|
19
19
|
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Constants for access control related command classes."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from enum import IntEnum
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UserCredentialType(IntEnum):
|
|
9
|
+
"""Credential types supported by User Credential CC."""
|
|
10
|
+
|
|
11
|
+
NONE = 0
|
|
12
|
+
PIN_CODE = 1
|
|
13
|
+
PASSWORD = 2
|
|
14
|
+
RFID_CODE = 3
|
|
15
|
+
BLE = 4
|
|
16
|
+
NFC = 5
|
|
17
|
+
UWB = 6
|
|
18
|
+
EYE_BIOMETRIC = 7
|
|
19
|
+
FACE_BIOMETRIC = 8
|
|
20
|
+
FINGER_BIOMETRIC = 9
|
|
21
|
+
HAND_BIOMETRIC = 10
|
|
22
|
+
UNSPECIFIED_BIOMETRIC = 11
|
|
23
|
+
DESFIRE = 12
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class UserCredentialUserType(IntEnum):
|
|
27
|
+
"""User types supported by User Credential CC."""
|
|
28
|
+
|
|
29
|
+
GENERAL = 0
|
|
30
|
+
PROGRAMMING = 3
|
|
31
|
+
NON_ACCESS = 4
|
|
32
|
+
DURESS = 5
|
|
33
|
+
DISPOSABLE = 6
|
|
34
|
+
EXPIRING = 7
|
|
35
|
+
REMOTE_ONLY = 9
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class UserCredentialRule(IntEnum):
|
|
39
|
+
"""Credential rules supported by User Credential CC."""
|
|
40
|
+
|
|
41
|
+
SINGLE = 1
|
|
42
|
+
DUAL = 2
|
|
43
|
+
TRIPLE = 3
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class UserCredentialLearnStatus(IntEnum):
|
|
47
|
+
"""Credential learn statuses supported by User Credential CC."""
|
|
48
|
+
|
|
49
|
+
STARTED = 0
|
|
50
|
+
SUCCESS = 1
|
|
51
|
+
ALREADY_IN_PROGRESS = 2
|
|
52
|
+
ENDED_NOT_DUE_TO_TIMEOUT = 3
|
|
53
|
+
TIMEOUT = 4
|
|
54
|
+
STEP_RETRY = 5
|
|
55
|
+
INVALID_ADD_OPERATION_TYPE = 254
|
|
56
|
+
INVALID_MODIFY_OPERATION_TYPE = 255
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class SetUserResult(IntEnum):
|
|
60
|
+
"""Result for set_user / delete_user / delete_all_users commands."""
|
|
61
|
+
|
|
62
|
+
OK = 0
|
|
63
|
+
ERROR_ADD_REJECTED_LOCATION_OCCUPIED = 1
|
|
64
|
+
ERROR_MODIFY_REJECTED_LOCATION_EMPTY = 2
|
|
65
|
+
ERROR_UNKNOWN = 255
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class SetCredentialResult(IntEnum):
|
|
69
|
+
"""Result for set_credential / delete_credential commands."""
|
|
70
|
+
|
|
71
|
+
OK = 0
|
|
72
|
+
ERROR_ADD_REJECTED_LOCATION_OCCUPIED = 1
|
|
73
|
+
ERROR_MODIFY_REJECTED_LOCATION_EMPTY = 2
|
|
74
|
+
ERROR_DUPLICATE_CREDENTIAL = 3
|
|
75
|
+
ERROR_MANUFACTURER_SECURITY_RULES = 4
|
|
76
|
+
ERROR_DUPLICATE_ADMIN_PIN_CODE = 5
|
|
77
|
+
ERROR_WRONG_USER_UNIQUE_IDENTIFIER = 6
|
|
78
|
+
ERROR_UNKNOWN = 255
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class AssignCredentialResult(IntEnum):
|
|
82
|
+
"""Result for assign_credential commands."""
|
|
83
|
+
|
|
84
|
+
OK = 0
|
|
85
|
+
ERROR_INVALID_CREDENTIAL = 1
|
|
86
|
+
ERROR_INVALID_USER = 2
|
|
87
|
+
ERROR_UNKNOWN = 255
|