zwave-js-server-python 0.60.0__py3-none-any.whl → 0.61.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 +3 -2
- zwave_js_server/model/controller/__init__.py +18 -0
- {zwave_js_server_python-0.60.0.dist-info → zwave_js_server_python-0.61.0.dist-info}/METADATA +2 -2
- {zwave_js_server_python-0.60.0.dist-info → zwave_js_server_python-0.61.0.dist-info}/RECORD +8 -8
- {zwave_js_server_python-0.60.0.dist-info → zwave_js_server_python-0.61.0.dist-info}/WHEEL +1 -1
- {zwave_js_server_python-0.60.0.dist-info → zwave_js_server_python-0.61.0.dist-info}/LICENSE +0 -0
- {zwave_js_server_python-0.60.0.dist-info → zwave_js_server_python-0.61.0.dist-info}/entry_points.txt +0 -0
- {zwave_js_server_python-0.60.0.dist-info → zwave_js_server_python-0.61.0.dist-info}/top_level.txt +0 -0
@@ -8,7 +8,7 @@ import logging
|
|
8
8
|
from typing import TypedDict
|
9
9
|
|
10
10
|
PACKAGE_NAME = "zwave-js-server-python"
|
11
|
-
__version__ = "0.
|
11
|
+
__version__ = "0.61.0"
|
12
12
|
|
13
13
|
# minimal server schema version we can handle
|
14
14
|
MIN_SERVER_SCHEMA_VERSION = 39
|
@@ -320,7 +320,7 @@ class InclusionState(IntEnum):
|
|
320
320
|
class RFRegion(IntEnum):
|
321
321
|
"""Enum for all known RF regions."""
|
322
322
|
|
323
|
-
# https://github.com/zwave-js/node-zwave-js/blob/master/packages/
|
323
|
+
# https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/definitions/RFRegion.ts#L1
|
324
324
|
EUROPE = 0
|
325
325
|
USA = 1
|
326
326
|
AUSTRALIA_AND_NEW_ZEALAND = 2
|
@@ -330,6 +330,7 @@ class RFRegion(IntEnum):
|
|
330
330
|
RUSSIA = 7
|
331
331
|
CHINA = 8
|
332
332
|
USA_LONG_RANGE = 9
|
333
|
+
EUROPE_LONG_RANGE = 11
|
333
334
|
JAPAN = 32
|
334
335
|
KOREA = 33
|
335
336
|
UNKNOWN = 254
|
@@ -753,6 +753,23 @@ class Controller(EventBase):
|
|
753
753
|
require_schema=14,
|
754
754
|
)
|
755
755
|
|
756
|
+
async def async_backup_nvm_raw_base64(self) -> str:
|
757
|
+
"""Send backupNVMRaw command to Controller and return base64 string directly."""
|
758
|
+
data = await self.client.async_send_command(
|
759
|
+
{"command": "controller.backup_nvm_raw"}, require_schema=14
|
760
|
+
)
|
761
|
+
return data["nvmData"]
|
762
|
+
|
763
|
+
async def async_restore_nvm_base64(self, base64_data: str) -> None:
|
764
|
+
"""Send restoreNVM command to Controller with base64 data directly."""
|
765
|
+
await self.client.async_send_command(
|
766
|
+
{
|
767
|
+
"command": "controller.restore_nvm",
|
768
|
+
"nvmData": base64_data,
|
769
|
+
},
|
770
|
+
require_schema=14,
|
771
|
+
)
|
772
|
+
|
756
773
|
async def async_get_power_level(self) -> dict[str, int]:
|
757
774
|
"""Send getPowerlevel command to Controller."""
|
758
775
|
data = await self.client.async_send_command(
|
@@ -909,6 +926,7 @@ class Controller(EventBase):
|
|
909
926
|
|
910
927
|
def handle_inclusion_state_changed(self, event: Event) -> None:
|
911
928
|
"""Process an inclusion state changed event."""
|
929
|
+
self.data["inclusionState"] = event.data["state"]
|
912
930
|
|
913
931
|
def handle_exclusion_started(self, event: Event) -> None:
|
914
932
|
"""Process an exclusion started event."""
|
@@ -7,7 +7,7 @@ zwave_js_server/exceptions.py,sha256=8SY6FA8NiTEQgtauLR83F7m69gBGQviJ6O2obirH2po
|
|
7
7
|
zwave_js_server/firmware.py,sha256=KXB_-MgBDlNg289bPibUeWtF4l8WtEq9jmiFFMYg1KM,2381
|
8
8
|
zwave_js_server/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
zwave_js_server/version.py,sha256=PUwxOVcUMk5pOguQP9zAjiPjs1Nnmiwj3fcA4HJLiBg,401
|
10
|
-
zwave_js_server/const/__init__.py,sha256=
|
10
|
+
zwave_js_server/const/__init__.py,sha256=CrndvEjQQMQtFttgrNFz_akKQHYhqIhJrG7ASxEzt70,14264
|
11
11
|
zwave_js_server/const/command_class/__init__.py,sha256=WilOppnr9CXahDjEEkAXyh_j7iCq_qZ1GtBkjWLoQUg,37
|
12
12
|
zwave_js_server/const/command_class/barrier_operator.py,sha256=IJ195hGKEi1FLLqKWMtC2ZhY9Jt5PACr7GYTyVPjkKM,820
|
13
13
|
zwave_js_server/const/command_class/basic.py,sha256=cs0k7p5qxrwpR8-NvXQLtnfEsC6IlBAYiW79DaM_6Eg,96
|
@@ -43,7 +43,7 @@ zwave_js_server/model/statistics.py,sha256=in7S8oxWlG38tCEz1k3lxLjEsfY5yfsnD0bol
|
|
43
43
|
zwave_js_server/model/utils.py,sha256=VMoJQ99QRkpJleJhXR4eojbgObdZZeEfse5gonmK7Ic,1157
|
44
44
|
zwave_js_server/model/value.py,sha256=Ku_VnX79WL82SD6Up01qQUNRldnCvi37HeEuTrTdBPU,13266
|
45
45
|
zwave_js_server/model/version.py,sha256=EnyL6O8r2gSv7qLIuZ-sWnybG5JnJWw-IEE5UtIUjiM,1272
|
46
|
-
zwave_js_server/model/controller/__init__.py,sha256=
|
46
|
+
zwave_js_server/model/controller/__init__.py,sha256=rEYFKIHLXmbgCQiy_x6mobPKlsbxh8rIukKrUN2D04Y,37778
|
47
47
|
zwave_js_server/model/controller/data_model.py,sha256=5e6M0t7RkSJytovmDz1tULMFFoCQ1TsGHe56scrZRqI,851
|
48
48
|
zwave_js_server/model/controller/event_model.py,sha256=l5Sa_YYn5BMBgd3q8zc1duqLOiKHuhpqd2f0IHpi2-4,10744
|
49
49
|
zwave_js_server/model/controller/firmware.py,sha256=GnctTeLitmUVf3wfJgZsDBAlQP4eDU6ytohXqigjGEg,2907
|
@@ -65,9 +65,9 @@ zwave_js_server/util/command_class/__init__.py,sha256=sRxti47ekLTzfk8B609CMQumIb
|
|
65
65
|
zwave_js_server/util/command_class/energy_production.py,sha256=K1VmGDlqXmKDfQRpTu5o99sjnDShBMV_crEb49o-O_4,1489
|
66
66
|
zwave_js_server/util/command_class/meter.py,sha256=tJ7rbwWUZbJCS7xEJWS_KnqUUGR8RN0f2S8iLkufae0,1258
|
67
67
|
zwave_js_server/util/command_class/multilevel_sensor.py,sha256=wG4GQ0kjrP6d3x5DpEkUHrZd8-0LbvXoYdIxZAf6bso,1427
|
68
|
-
zwave_js_server_python-0.
|
69
|
-
zwave_js_server_python-0.
|
70
|
-
zwave_js_server_python-0.
|
71
|
-
zwave_js_server_python-0.
|
72
|
-
zwave_js_server_python-0.
|
73
|
-
zwave_js_server_python-0.
|
68
|
+
zwave_js_server_python-0.61.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
69
|
+
zwave_js_server_python-0.61.0.dist-info/METADATA,sha256=RtgZ8BkUxnnbjo3tMYJK18yqUI4r9MJC67_c4rGm0jg,14798
|
70
|
+
zwave_js_server_python-0.61.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
71
|
+
zwave_js_server_python-0.61.0.dist-info/entry_points.txt,sha256=lvzma7Rd_3FW_k-_xGuTfpvcvA2MR_22DOz5f1t7-xg,73
|
72
|
+
zwave_js_server_python-0.61.0.dist-info/top_level.txt,sha256=-hwsl-i4Av5Op_yfOHC_OP56KPmzp_iVEkeohRIN5Ng,16
|
73
|
+
zwave_js_server_python-0.61.0.dist-info/RECORD,,
|
File without changes
|
{zwave_js_server_python-0.60.0.dist-info → zwave_js_server_python-0.61.0.dist-info}/entry_points.txt
RENAMED
File without changes
|
{zwave_js_server_python-0.60.0.dist-info → zwave_js_server_python-0.61.0.dist-info}/top_level.txt
RENAMED
File without changes
|