From 1800fbfe6349f5215df2967d0b1c55b2b472b1d2 Mon Sep 17 00:00:00 2001 From: Guzz-T Date: Sun, 15 Mar 2026 19:14:55 +0100 Subject: [PATCH 1/2] Add calculations fields for 252, 259 and 260 252: ID_WEB_Temperatur_THG_max 259: cooling_active 260: ID_WEB_Time_ena_cooling --- luxtronik/definitions/calculations.py | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/luxtronik/definitions/calculations.py b/luxtronik/definitions/calculations.py index 9af61897..858d3a89 100644 --- a/luxtronik/definitions/calculations.py +++ b/luxtronik/definitions/calculations.py @@ -2643,11 +2643,22 @@ "count": 1, "names": ['Unknown_Calculation_252'], "type": Unknown, + "successor": 'ID_WEB_Temperatur_THG_max', "writeable": False, "datatype": 'UINT32', "unit": '', "description": '', }, + { + "index": 252, + "count": 1, + "names": ['ID_WEB_Temperatur_THG_max'], + "type": Celsius, + "writeable": False, + "datatype": 'UINT32', + "unit": '', + "description": 'TODO: Provisional new description based on #180', + }, { "index": 253, "count": 1, @@ -2719,21 +2730,52 @@ "count": 1, "names": ['Unknown_Calculation_259'], "type": Unknown, + "successor": 'cooling_active', "writeable": False, "datatype": 'UINT32', "unit": '', "description": '', }, + { + "index": 259, + "count": 1, + "names": ['cooling_active'], + "type": Bool, + "writeable": False, + "datatype": 'UINT32', + "unit": '', + "description": ( + "Pin 9 on the main board. " + "Signal to the room thermostat to switch between heating and cooling. " + "If the expansion board is installed, " + "this signal comes from calculation 140 `ID_WEB_FP3out`.\n\n" + "TODO: Provisional new description based on #180" + ) + }, { "index": 260, "count": 1, "names": ['Unknown_Calculation_260'], "type": Unknown, + "successor": 'ID_WEB_Time_ena_cooling', "writeable": False, "datatype": 'UINT32', "unit": '', "description": '', }, + { + "index": 260, + "count": 1, + "names": ['ID_WEB_Time_ena_cooling'], + "type": Seconds, + "writeable": False, + "datatype": 'UINT32', + "unit": '', + "description": ( + "Time in seconds until cooling is enabled\n\n" + "TODO: Provisional new description based on #180" + ) + }, { "index": 261, "count": 1, From 2c769826d79dce87aab33fb4c26584f342daa739 Mon Sep 17 00:00:00 2001 From: Guzz-T Date: Sun, 15 Mar 2026 19:36:58 +0100 Subject: [PATCH 2/2] Add new fields to the test_compatibility.py --- CHANGELOG.md | 3 +++ tests/test_compatibility.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb1175b6..f473d40a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1451,7 +1451,10 @@ from `Voltage` to `Voltage2` - Add `HUP_PWM` (index `241`) of type `Percent2` - Add `HUP_Temp_Spread_Soll` (index `242`) of type `Kelvin` - Add `HUP_Temp_Spread_Ist` (index `243`) of type `Kelvin` +- Add `ID_WEB_Temperatur_THG_max` (index `252`) of type `Celsius` - Add `RBE_Version` (index `258`) of type `MajorMinorVersion` +- Add `cooling_active` (index `259`) of type `Bool` +- Add `ID_WEB_Time_ena_cooling` (index `260`) of type `Seconds` - Add `Unknown_Calculation_260` (index `260`) of type `Unknown` - Add `Unknown_Calculation_261` (index `261`) of type `Unknown` - Add `Unknown_Calculation_262` (index `262`) of type `Unknown` diff --git a/tests/test_compatibility.py b/tests/test_compatibility.py index 99d30cb4..f0006cd4 100644 --- a/tests/test_compatibility.py +++ b/tests/test_compatibility.py @@ -1614,7 +1614,10 @@ def get_compatibility_issues(self): "HUP_PWM": (241, Percent2), "HUP_Temp_Spread_Soll": (242, Kelvin), "HUP_Temp_Spread_Ist": (243, Kelvin), + "ID_WEB_Temperatur_THG_max": (252, Celsius), "RBE_Version": (258, MajorMinorVersion), + "cooling_active": (259, Bool), + "ID_WEB_Time_ena_cooling": (260, Seconds), "Unknown_Calculation_260": (260, Unknown), "Unknown_Calculation_261": (261, Unknown), "Unknown_Calculation_262": (262, Unknown),