PyPlumIO 0.7.4__tar.gz → 0.7.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.
- {pyplumio-0.7.4 → pyplumio-0.7.6}/PKG-INFO +1 -1
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/devices/ecomax.py +4 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/parameters/__init__.py +2 -2
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/parameters/custom/ecomax_350p2_zf.py +14 -10
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyproject.toml +1 -1
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/devices/test_ecomax.py +2 -2
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/custom/test_ecomax_350p2_zf.py +11 -11
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/custom/test_ecomax_860p4_nm_touch.py +1 -1
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/test_init.py +3 -1
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/test_ecomax_service_parameters.py +2 -2
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/ecomax_service_parameters.json +0 -13
- {pyplumio-0.7.4 → pyplumio-0.7.6}/.gitignore +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/LICENSE +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/README.md +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/Makefile +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/make.bat +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/callbacks.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/conf.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/connecting.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/frames.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/index.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/mixers_thermostats.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/protocol.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/reading.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/schedules.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/docs/source/writing.rst +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/__main__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/connection.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/const.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/data_types.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/devices/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/devices/ecoster.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/devices/mixer.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/devices/thermostat.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/exceptions.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/filters.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/frames/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/frames/messages.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/frames/requests.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/frames/responses.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/helpers/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/helpers/async_cache.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/helpers/event_manager.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/helpers/task_manager.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/parameters/custom/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/parameters/custom/ecomax_860d3_hb.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/parameters/custom/ecomax_860p4_nm_touch.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/parameters/ecomax.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/parameters/mixer.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/parameters/thermostat.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/protocol.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/py.typed +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/stream.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/alerts.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/ecomax_parameters.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/ecomax_service_parameters.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/frame_versions.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/mixer_parameters.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/network_info.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/product_info.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/program_version.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/regulator_data.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/regulator_data_schema.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/schedules.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/sensor_data.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/structures/thermostat_parameters.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/pyplumio/utils.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/conftest.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/devices/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/devices/test_ecoster.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/devices/test_init.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/devices/test_mixer.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/devices/test_thermostat.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/frames/test_init.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/frames/test_messages.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/frames/test_requests.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/frames/test_responses.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/helpers/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/helpers/test_async_cache.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/helpers/test_event_manager.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/helpers/test_task_manager.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/helpers/test_uid.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/custom/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/custom/test_ecomax_860d3_hb.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/custom/test_init.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/test_ecomax.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/test_mixers.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/parameters/test_thermostats.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/ruff.toml +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/__init__.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/test_alerts.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/test_ecomax_parameters.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/test_frame_versions.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/test_mixer_parameters.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/test_product_info.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/test_program_version.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/structures/test_schedules.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/test_connection.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/test_data_types.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/test_filters.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/test_init.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/test_main.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/test_protocol.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/test_stream.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/test_utils.py +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/messages/regulator_data.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/messages/sensor_data.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/parameters/ecomax_350p2_zf.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/parameters/ecomax_860d3_hb.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/parameters/ecomax_860p4_nm_touch.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/alerts.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/ecomax_control.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/ecomax_parameters.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/ecomax_service_parameters.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/mixer_parameters.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/set_ecomax_parameter.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/set_ecomax_service_parameter.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/set_mixer_parameter.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/set_schedule.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/set_thermostat_parameter.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/requests/thermostat_parameters.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/alerts.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/device_available.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/ecomax_parameters.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/mixer_parameters.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/password.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/program_version.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/regulator_data_schema.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/schedules.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/thermostat_parameters.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/responses/uid.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/unknown/unknown_ecomax_parameter.json +0 -0
- {pyplumio-0.7.4 → pyplumio-0.7.6}/tests/testdata/unknown/unknown_mixer_parameter.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: PyPlumIO
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.6
|
|
4
4
|
Summary: PyPlumIO is a native ecoNET library for Plum ecoMAX controllers.
|
|
5
5
|
Project-URL: Documentation, https://pyplumio.denpa.pro
|
|
6
6
|
Project-URL: Source Code, https://github.com/denpamusic/PyPlumIO
|
|
@@ -44,6 +44,7 @@ from pyplumio.structures.ecomax_parameters import (
|
|
|
44
44
|
ATTR_ECOMAX_CONTROL,
|
|
45
45
|
ATTR_ECOMAX_PARAMETERS,
|
|
46
46
|
)
|
|
47
|
+
from pyplumio.structures.ecomax_service_parameters import ATTR_ECOMAX_SERVICE_PARAMETERS
|
|
47
48
|
from pyplumio.structures.mixer_parameters import ATTR_MIXER_PARAMETERS
|
|
48
49
|
from pyplumio.structures.network_info import ATTR_NETWORK_INFO, NetworkInfo
|
|
49
50
|
from pyplumio.structures.product_info import ATTR_PRODUCT
|
|
@@ -131,6 +132,9 @@ REQUIRED_KEYS: tuple[DataKey, ...] = (
|
|
|
131
132
|
DataKey(ATTR_PRODUCT, FrameType.REQUEST_UID),
|
|
132
133
|
DataKey(ATTR_REGDATA_SCHEMA, FrameType.REQUEST_REGULATOR_DATA_SCHEMA),
|
|
133
134
|
DataKey(ATTR_ECOMAX_PARAMETERS, FrameType.REQUEST_ECOMAX_PARAMETERS),
|
|
135
|
+
DataKey(
|
|
136
|
+
ATTR_ECOMAX_SERVICE_PARAMETERS, FrameType.REQUEST_ECOMAX_SERVICE_PARAMETERS
|
|
137
|
+
),
|
|
134
138
|
DataKey(ATTR_TOTAL_ALERTS, FrameType.REQUEST_ALERTS),
|
|
135
139
|
DataKey(ATTR_SCHEDULES, FrameType.REQUEST_SCHEDULES),
|
|
136
140
|
DataKey(ATTR_MIXER_PARAMETERS, FrameType.REQUEST_MIXER_PARAMETERS),
|
|
@@ -41,8 +41,8 @@ def unpack_parameter(
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
def is_valid_parameter(data: bytes) -> bool:
|
|
44
|
-
"""Check if parameter contains any bytes besides 0xFF."""
|
|
45
|
-
return any(x
|
|
44
|
+
"""Check if parameter contains any bytes besides 0x00 and 0xFF."""
|
|
45
|
+
return any(x for x in data if x != BYTE_UNDEFINED)
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
@dataclass(slots=True, frozen=True)
|
|
@@ -21,20 +21,22 @@ class EcoMAX350P2ZF(CustomParameters):
|
|
|
21
21
|
13: EcomaxNumberDescription(name="fuzzy_logic_parameter_b"),
|
|
22
22
|
14: EcomaxNumberDescription(name="fuzzy_logic_parameter_c"),
|
|
23
23
|
16: EcomaxNumberDescription(
|
|
24
|
-
name="
|
|
24
|
+
name="kindling_fan_power", unit_of_measurement=PERCENTAGE
|
|
25
25
|
),
|
|
26
26
|
17: EcomaxNumberDescription(
|
|
27
|
-
name="
|
|
27
|
+
name="kindling_fuel_detection_time",
|
|
28
28
|
unit_of_measurement=UnitOfMeasurement.SECONDS,
|
|
29
29
|
),
|
|
30
30
|
19: EcomaxNumberDescription(
|
|
31
|
-
name="
|
|
31
|
+
name="kindling_fuel_dose",
|
|
32
|
+
step=10,
|
|
33
|
+
unit_of_measurement=UnitOfMeasurement.GRAMS,
|
|
32
34
|
),
|
|
33
35
|
20: EcomaxNumberDescription(
|
|
34
|
-
name="
|
|
36
|
+
name="kindling_flue_gas_temp", unit_of_measurement=UnitOfMeasurement.CELSIUS
|
|
35
37
|
),
|
|
36
38
|
21: EcomaxNumberDescription(
|
|
37
|
-
name="
|
|
39
|
+
name="kindling_low_power_time",
|
|
38
40
|
unit_of_measurement=UnitOfMeasurement.MINUTES,
|
|
39
41
|
),
|
|
40
42
|
22: EcomaxNumberDescription(
|
|
@@ -53,24 +55,26 @@ class EcoMAX350P2ZF(CustomParameters):
|
|
|
53
55
|
unit_of_measurement=UnitOfMeasurement.CELSIUS,
|
|
54
56
|
),
|
|
55
57
|
28: EcomaxNumberDescription(
|
|
56
|
-
name="
|
|
58
|
+
name="min_fan_power", unit_of_measurement=PERCENTAGE
|
|
57
59
|
),
|
|
58
60
|
39: EcomaxNumberDescription(name="feeder_coefficient", step=0.1),
|
|
59
61
|
41: EcomaxNumberDescription(
|
|
60
|
-
name="hopper_capacity",
|
|
62
|
+
name="hopper_capacity",
|
|
63
|
+
step=2,
|
|
64
|
+
unit_of_measurement=UnitOfMeasurement.KILOGRAMS,
|
|
61
65
|
),
|
|
62
66
|
47: EcomaxNumberDescription(
|
|
63
67
|
name="lower_heating_temp_from_thermostat",
|
|
64
68
|
unit_of_measurement=UnitOfMeasurement.CELSIUS,
|
|
65
69
|
),
|
|
66
70
|
86: EcomaxNumberDescription(
|
|
67
|
-
name="
|
|
71
|
+
name="boiler_alert_temp", unit_of_measurement=UnitOfMeasurement.CELSIUS
|
|
68
72
|
),
|
|
69
|
-
87: EcomaxSwitchDescription(name="
|
|
73
|
+
87: EcomaxSwitchDescription(name="thermostat_mode"),
|
|
70
74
|
111: EcomaxNumberDescription(
|
|
71
75
|
name="feeder2_work_time_extension",
|
|
72
76
|
unit_of_measurement=UnitOfMeasurement.SECONDS,
|
|
73
77
|
),
|
|
74
78
|
# 0 - pellets, 1 - wood
|
|
75
|
-
113: EcomaxNumberDescription(name="
|
|
79
|
+
113: EcomaxNumberDescription(name="fuel_type"),
|
|
76
80
|
}
|
|
@@ -375,7 +375,7 @@ async def test_ecomax_service_parameters_event_listener(
|
|
|
375
375
|
|
|
376
376
|
# Test that raw parameters are kept.
|
|
377
377
|
raw_parameters = dict(ecomax.get_nowait(ATTR_ECOMAX_SERVICE_PARAMETERS))
|
|
378
|
-
assert len(raw_parameters) ==
|
|
378
|
+
assert len(raw_parameters) == 230
|
|
379
379
|
|
|
380
380
|
# Test that only described parameters are dispatched.
|
|
381
381
|
descriptions = await get_service_parameter_types(ECOMAX_860P4)
|
|
@@ -452,7 +452,7 @@ async def test_ecomax_service_parameters_unknown_product(
|
|
|
452
452
|
)
|
|
453
453
|
await ecomax.wait_until_done()
|
|
454
454
|
|
|
455
|
-
assert len(ecomax.get_nowait(ATTR_ECOMAX_SERVICE_PARAMETERS)) ==
|
|
455
|
+
assert len(ecomax.get_nowait(ATTR_ECOMAX_SERVICE_PARAMETERS)) == 230
|
|
456
456
|
assert "control_mode" not in ecomax.data
|
|
457
457
|
assert "Encountered unknown ecoMAX service parameter table" in caplog.text
|
|
458
458
|
|
|
@@ -28,18 +28,18 @@ from tests.conftest import class_from_json, equal_parameter_value
|
|
|
28
28
|
("fuzzy_logic_parameter_a", 5, 2, 8, None),
|
|
29
29
|
("fuzzy_logic_parameter_b", 50, 20, 120, None),
|
|
30
30
|
("fuzzy_logic_parameter_c", 50, 0, 75, None),
|
|
31
|
-
("
|
|
32
|
-
("
|
|
33
|
-
("
|
|
34
|
-
("
|
|
35
|
-
("
|
|
31
|
+
("kindling_fan_power", 30, 30, 50, PERCENTAGE),
|
|
32
|
+
("kindling_fuel_detection_time", 10, 10, 240, UnitOfMeasurement.SECONDS),
|
|
33
|
+
("kindling_fuel_dose", 610, 100, 1000, UnitOfMeasurement.GRAMS),
|
|
34
|
+
("kindling_flue_gas_temp", 45, 40, 150, UnitOfMeasurement.CELSIUS),
|
|
35
|
+
("kindling_low_power_time", 2, 1, 15, UnitOfMeasurement.MINUTES),
|
|
36
36
|
("stabilization_fan_power", 40, 30, 60, PERCENTAGE),
|
|
37
37
|
("stabilization_min_flue_gas_temp", 70, 50, 150, UnitOfMeasurement.CELSIUS),
|
|
38
38
|
("stabilization_fan_work_time", 3, 1, 10, UnitOfMeasurement.MINUTES),
|
|
39
39
|
("stabilization_temp_delta", 10, 0, 50, UnitOfMeasurement.CELSIUS),
|
|
40
|
-
("
|
|
40
|
+
("min_fan_power", 31, 30, 50, PERCENTAGE),
|
|
41
41
|
("feeder_coefficient", 0.8, 0.1, 2.0, None),
|
|
42
|
-
("hopper_capacity",
|
|
42
|
+
("hopper_capacity", 100, 2, 500, UnitOfMeasurement.KILOGRAMS),
|
|
43
43
|
(
|
|
44
44
|
"lower_heating_temp_from_thermostat",
|
|
45
45
|
5,
|
|
@@ -47,8 +47,8 @@ from tests.conftest import class_from_json, equal_parameter_value
|
|
|
47
47
|
30,
|
|
48
48
|
UnitOfMeasurement.CELSIUS,
|
|
49
49
|
),
|
|
50
|
-
("
|
|
51
|
-
("
|
|
50
|
+
("boiler_alert_temp", 90, 85, 95, UnitOfMeasurement.CELSIUS),
|
|
51
|
+
("thermostat_mode", STATE_ON, STATE_OFF, STATE_ON, None),
|
|
52
52
|
(
|
|
53
53
|
"feeder2_work_time_extension",
|
|
54
54
|
4,
|
|
@@ -56,7 +56,7 @@ from tests.conftest import class_from_json, equal_parameter_value
|
|
|
56
56
|
250,
|
|
57
57
|
UnitOfMeasurement.SECONDS,
|
|
58
58
|
),
|
|
59
|
-
("
|
|
59
|
+
("fuel_type", 0, 0, 1, None),
|
|
60
60
|
],
|
|
61
61
|
)
|
|
62
62
|
@class_from_json(
|
|
@@ -87,7 +87,7 @@ async def test_custom_parameters(
|
|
|
87
87
|
)
|
|
88
88
|
ecomax.handle_frame(ecomax_350p2_zf)
|
|
89
89
|
await ecomax.wait_until_done()
|
|
90
|
-
assert len(ecomax.data[ATTR_ECOMAX_SERVICE_PARAMETERS]) ==
|
|
90
|
+
assert len(ecomax.data[ATTR_ECOMAX_SERVICE_PARAMETERS]) == 127
|
|
91
91
|
|
|
92
92
|
parameter = ecomax.get_nowait(name)
|
|
93
93
|
assert isinstance(
|
|
@@ -135,7 +135,7 @@ async def test_custom_parameters(
|
|
|
135
135
|
)
|
|
136
136
|
ecomax.handle_frame(ecomax_860p4_nm_touch)
|
|
137
137
|
await ecomax.wait_until_done()
|
|
138
|
-
assert len(ecomax.data[ATTR_ECOMAX_SERVICE_PARAMETERS]) ==
|
|
138
|
+
assert len(ecomax.data[ATTR_ECOMAX_SERVICE_PARAMETERS]) == 230
|
|
139
139
|
|
|
140
140
|
parameter = ecomax.get_nowait(name)
|
|
141
141
|
assert isinstance(
|
|
@@ -58,8 +58,10 @@ def fixture_switch(ecomax: EcoMAX) -> Switch:
|
|
|
58
58
|
("data", "expected_result"),
|
|
59
59
|
[
|
|
60
60
|
(bytes([BYTE_UNDEFINED, 0xFE, BYTE_UNDEFINED, BYTE_UNDEFINED]), True),
|
|
61
|
+
(bytes([0, 0, 1]), True),
|
|
62
|
+
(bytes([0, 0, BYTE_UNDEFINED]), False),
|
|
61
63
|
(bytes([BYTE_UNDEFINED] * 4), False),
|
|
62
|
-
(b"\0" * 4,
|
|
64
|
+
(b"\0" * 4, False),
|
|
63
65
|
],
|
|
64
66
|
)
|
|
65
67
|
def test_is_valid_parameter(data: bytes, expected_result: bool) -> None:
|
|
@@ -25,13 +25,13 @@ class TestEcomaxServiceParametersStructure:
|
|
|
25
25
|
self, ecomax_service_parameters_structure: EcomaxServiceParametersStructure
|
|
26
26
|
) -> None:
|
|
27
27
|
"""Test decoding of ecoMAX service parameters structure."""
|
|
28
|
-
message = bytes.fromhex("
|
|
28
|
+
message = bytes.fromhex("030a020103ffffff000001")
|
|
29
29
|
data: dict[str, Any] = {}
|
|
30
30
|
ecomax_service_parameters_structure.decode(message, data)
|
|
31
31
|
assert data == {
|
|
32
32
|
ATTR_ECOMAX_SERVICE_PARAMETERS: [
|
|
33
33
|
(10, ParameterValues(value=2, min_value=1, max_value=3)),
|
|
34
|
-
(12, ParameterValues(value=
|
|
34
|
+
(12, ParameterValues(value=0, min_value=0, max_value=1)),
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
assert ecomax_service_parameters_structure.offset == 11
|
|
@@ -2653,19 +2653,6 @@
|
|
|
2653
2653
|
],
|
|
2654
2654
|
"__tuple__": true
|
|
2655
2655
|
},
|
|
2656
|
-
{
|
|
2657
|
-
"items": [
|
|
2658
|
-
202,
|
|
2659
|
-
{
|
|
2660
|
-
"value": 255,
|
|
2661
|
-
"min_value": 0,
|
|
2662
|
-
"max_value": 255,
|
|
2663
|
-
"__module__": "pyplumio.parameters",
|
|
2664
|
-
"__class__": "ParameterValues"
|
|
2665
|
-
}
|
|
2666
|
-
],
|
|
2667
|
-
"__tuple__": true
|
|
2668
|
-
},
|
|
2669
2656
|
{
|
|
2670
2657
|
"items": [
|
|
2671
2658
|
203,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|