From 239b01595c87fb688885e649b96999ea56ab16fa Mon Sep 17 00:00:00 2001 From: Krisjanis Lejejs Date: Sat, 14 Dec 2024 16:28:57 +0200 Subject: [PATCH] Add support for ATEC operational statuses --- ThermiaOnlineAPI/const.py | 1 + ThermiaOnlineAPI/model/HeatPump.py | 8 + .../tests/debug_files/ATEC_DHP_AQ.txt | 1494 +++++++++++++++++ ThermiaOnlineAPI/tests/test_heat_pumps.py | 26 + 4 files changed, 1529 insertions(+) create mode 100644 ThermiaOnlineAPI/tests/debug_files/ATEC_DHP_AQ.txt diff --git a/ThermiaOnlineAPI/const.py b/ThermiaOnlineAPI/const.py index 04ab877..4ac7a9c 100644 --- a/ThermiaOnlineAPI/const.py +++ b/ThermiaOnlineAPI/const.py @@ -70,6 +70,7 @@ "REG_OPERATIONAL_STATUS_PRIO1" # Operational status for most heat pumps ) COMP_STATUS = "COMP_STATUS" # Operational status for Diplomat heat pumps +COMP_STATUS_ATEC = "COMP_STATUS_ATEC" # Operational status for ATEC heat pumps COMP_STATUS_ITEC = "COMP_STATUS_ITEC" # Operational status for ITEC heat pumps REG_OPERATIONAL_STATUS_PRIORITY_BITMASK = ( "REG_OPERATIONAL_STATUS_PRIORITY_BITMASK" # Operational status for Atlas heat pumps diff --git a/ThermiaOnlineAPI/model/HeatPump.py b/ThermiaOnlineAPI/model/HeatPump.py index f92769e..69410d5 100644 --- a/ThermiaOnlineAPI/model/HeatPump.py +++ b/ThermiaOnlineAPI/model/HeatPump.py @@ -30,6 +30,7 @@ REG_RETURN_LINE, COMP_POWER_STATUS, COMP_STATUS, + COMP_STATUS_ATEC, COMP_STATUS_ITEC, REG_SUPPLY_LINE, DATETIME_FORMAT, @@ -380,6 +381,13 @@ def __get_operational_statuses_from_operational_status(self) -> Optional[Dict]: ) return data.get("valueNames", []) + # Try to get the data from the COMP_STATUS_ATEC register + data = self.__get_register_from_operational_status(COMP_STATUS_ATEC) + if data is not None: + self.__device_config["operational_status_register"] = COMP_STATUS_ATEC + self.__device_config["operational_status_valueNamePrefix"] = "COMP_VALUE_" + return data.get("valueNames", []) + # Try to get the data from the COMP_STATUS_ITEC register data = self.__get_register_from_operational_status(COMP_STATUS_ITEC) if data is not None: diff --git a/ThermiaOnlineAPI/tests/debug_files/ATEC_DHP_AQ.txt b/ThermiaOnlineAPI/tests/debug_files/ATEC_DHP_AQ.txt new file mode 100644 index 0000000..cd52cbd --- /dev/null +++ b/ThermiaOnlineAPI/tests/debug_files/ATEC_DHP_AQ.txt @@ -0,0 +1,1494 @@ +########## DEBUG START ########## +self.__info: +{ + "createdWhen": "2018-06-21T00:00:00", + "deviceConnectionType": "Dcm", + "hasLinkUnit": false, + "installationProfileId": 1002, + "isOnline": false, + "lastOnline": "2024-12-12T17:43:29.775", + "model": "", + "operationManualUrl": "https://thermia.com/products/thermia-online/", + "owner": null, + "profile": { + "icon": 2, + "id": 1002, + "name": "DHP AQ", + "thermiaName": "ATEC" + }, + "serialNumber": null, + "status": { + "activeAlarms": 0, + "activeCriticalAlarms": 0, + "unreadErrors": 0, + "unreadInfo": 20, + "unreadWarnings": 15 + } +} + + +self.__status: +{ + "dcmVersion": "2.0.17", + "deviceConnectionType": "Dcm", + "hasIndoorTempSensor": false, + "heatingEffect": 20, + "heatingEffectRegisters": [ + null, + 107000 + ], + "hotWaterRegistryName": "UI_TAP_WATER", + "hotWaterTemperature": 53.0, + "indoorTemperature": 20.0, + "isGaugeDifferenciated": false, + "isHeatingEffectSetByUser": false, + "isHotWaterActive": true, + "isOutdoorTempSensorFunctioning": true, + "isReducedHeatingEffectSetByUser": false, + "linkIntegrationStatus": false, + "outdoorTemperature": 3.0, + "programVersion": "3.1.1", + "reducedHeatingEffect": 18, + "reducedHeatingEffectRegisters": [ + null, + 107052 + ], + "roomFactor": 2, + "tcVersion": null +} + + +self.__device_data: +{ + "deviceConnectionType": "Dcm", + "firmwareVersion": "3.1.1", + "isOnline": false, + "lastOnline": "2024-12-12T16:43:29.775", + "model": "", + "profile": { + "icon": 2, + "id": 1002, + "name": "DHP AQ", + "thermiaName": "ATEC" + } +} + + +All available groups: +[ + { + "id": 50, + "name": "REG_GROUP_DEVICETIME", + "parentId": null, + "visibility": 1 + }, + { + "id": 14, + "name": "REG_GROUP_OPERATIONAL_OPERATION", + "parentId": null, + "visibility": 1 + }, + { + "id": 2, + "name": "REG_GROUP_OPERATIONAL_STATUS", + "parentId": null, + "visibility": 1 + }, + { + "id": 3, + "name": "REG_GROUP_TEMPERATURES", + "parentId": null, + "visibility": 1 + }, + { + "id": 10, + "name": "REG_GROUP_OPERATIONAL_TIME", + "parentId": null, + "visibility": 1 + }, + { + "id": 7, + "name": "REG_GROUP_POOL", + "parentId": null, + "visibility": 1 + }, + { + "id": 19, + "name": "REG_GROUP_HEATING_CURVE", + "parentId": null, + "visibility": 1 + }, + { + "id": 20, + "name": "REG_GROUP_HEAT_PUMP", + "parentId": null, + "visibility": 1 + }, + { + "id": 23, + "name": "REG_GROUP_HOT_WATER", + "parentId": null, + "visibility": 1 + }, + { + "id": 27, + "name": "REG_GROUP_IMMERSION_HEATER", + "parentId": null, + "visibility": 1 + }, + { + "id": 17, + "name": "REG_GROUP_OPERATIONAL_DIAGNOSTICS", + "parentId": null, + "visibility": 1 + }, + { + "id": 16, + "name": "REG_GROUP_SOFTWARE_VERSIONS", + "parentId": null, + "visibility": 1 + }, + { + "id": 6, + "name": "REG_GROUP_COOLING", + "parentId": null, + "visibility": 1 + }, + { + "id": 21, + "name": "REG_GROUP_IMMERSION_HEATER_AUX", + "parentId": null, + "visibility": 1 + }, + { + "id": 42, + "name": "REG_GROUP_CALIBRATION", + "parentId": null, + "visibility": 1 + }, + { + "id": 49, + "name": "SPF", + "parentId": null, + "visibility": 1 + }, + { + "id": 53, + "name": "REG_GROUP_BUFFER_TANK", + "parentId": null, + "visibility": 1 + }, + { + "id": 45, + "name": "REG_GROUP_DEFROSTING", + "parentId": null, + "visibility": 1 + }, + { + "id": 46, + "name": "REG_GROUP_TEMPERATURES_SLAVE", + "parentId": null, + "visibility": 1 + }, + { + "id": 44, + "name": "REG_GROUP_CALENDAR", + "parentId": null, + "visibility": 1 + } +] + + +Group REG_GROUP_DEVICETIME: +[] + + +Group REG_GROUP_OPERATIONAL_OPERATION: +[ + { + "canBeShownInGraph": false, + "canBeShownInHistory": false, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107030, + "groupId": 14, + "groupItemId": 25107, + "groupItemOrder": 70000, + "groupName": "REG_GROUP_OPERATIONAL_OPERATION", + "groupOrder": 10001, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": null, + "minValue": null, + "modifier": 0, + "precision": null, + "presentation": "Enumeration", + "registerId": 107030, + "registerIndex": 1363, + "registerName": "REG_OPERATIONMODE", + "registerValue": 1.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-11-10T12:07:53.139", + "trueText": null, + "unit": "NotSpecified", + "valueNames": [ + { + "confirmation": "UI_OPERATION_MODE_AUX_HEATER_ONLY_WARNING", + "isReadonly": false, + "name": "REG_VALUE_OPERATION_MODE_OFF", + "value": 0, + "visible": true + }, + { + "confirmation": "UI_OPERATION_MODE_AUX_HEATER_ONLY_WARNING", + "isReadonly": false, + "name": "REG_VALUE_OPERATION_MODE_AUTO", + "value": 1, + "visible": true + }, + { + "confirmation": "UI_OPERATION_MODE_AUX_HEATER_ONLY_WARNING", + "isReadonly": false, + "name": "REG_VALUE_OPERATION_MODE_COMPRESSOR", + "value": 2, + "visible": true + }, + { + "confirmation": "UI_OPERATION_MODE_AUX_HEATER_ONLY_WARNING", + "isReadonly": false, + "name": "REG_VALUE_OPERATION_MODE_AUXILIARY", + "value": 3, + "visible": true + }, + { + "confirmation": "UI_OPERATION_MODE_AUX_HEATER_ONLY_WARNING", + "isReadonly": false, + "name": "REG_VALUE_OPERATION_MODE_HOT_WATER", + "value": 4, + "visible": true + } + ] + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": false, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107105, + "groupId": 14, + "groupItemId": 25143, + "groupItemOrder": 70005, + "groupName": "REG_GROUP_OPERATIONAL_OPERATION", + "groupOrder": 10001, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": null, + "minValue": null, + "modifier": 2, + "precision": null, + "presentation": "Enumeration", + "registerId": 107105, + "registerIndex": 1369, + "registerName": "REG_LINK_INTEGRATION", + "registerValue": 1.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-02-14T15:32:32.719", + "trueText": null, + "unit": "NotSpecified", + "valueNames": [ + { + "confirmation": null, + "isReadonly": false, + "name": "REG_LINK_STATUS_LIGHT", + "value": 0, + "visible": true + }, + { + "confirmation": null, + "isReadonly": false, + "name": "REG_LINK_STATUS_SYSTEM", + "value": 1, + "visible": true + } + ] + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": false, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 7003, + "groupId": 14, + "groupItemId": 25145, + "groupItemOrder": 70005, + "groupName": "REG_GROUP_OPERATIONAL_OPERATION", + "groupOrder": 10001, + "groupParentId": null, + "isComputedRegister": true, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 0, + "precision": null, + "presentation": "Hidden", + "registerId": 7003, + "registerIndex": 7003, + "registerName": "COMP_HAS_LINK", + "registerValue": 0.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-14T14:48:00.6134265", + "trueText": null, + "unit": "0", + "valueNames": null + } +] + + +Group REG_GROUP_OPERATIONAL_STATUS: +[ + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107031, + "groupId": 2, + "groupItemId": 25108, + "groupItemOrder": 70000, + "groupName": "REG_GROUP_OPERATIONAL_STATUS", + "groupOrder": 10010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 4, + "precision": null, + "presentation": "Integer", + "registerId": 107031, + "registerIndex": 2120, + "registerName": "REG_INTEGRAL_LSD", + "registerValue": 8.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T17:01:03.175", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": false, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 7002, + "groupId": 2, + "groupItemId": 25151, + "groupItemOrder": 70020, + "groupName": "REG_GROUP_OPERATIONAL_STATUS", + "groupOrder": 10010, + "groupParentId": null, + "isComputedRegister": true, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 0, + "precision": null, + "presentation": "StatusFlagsTextInd", + "registerId": 7002, + "registerIndex": 7002, + "registerName": "COMP_STATUS_ATEC", + "registerValue": 2.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-14T14:48:00.7195409", + "trueText": null, + "unit": "0", + "valueNames": [ + { + "confirmation": null, + "isReadonly": false, + "name": "COMP_VALUE_COMPR", + "value": 1, + "visible": true + }, + { + "confirmation": null, + "isReadonly": false, + "name": "COMP_VALUE_RADIATORPUMP", + "value": 2, + "visible": false + }, + { + "confirmation": null, + "isReadonly": false, + "name": "COMP_VALUE_COOLING", + "value": 4, + "visible": false + }, + { + "confirmation": null, + "isReadonly": false, + "name": "COMP_VALUE_HOT_WATER", + "value": 8, + "visible": true + }, + { + "confirmation": null, + "isReadonly": false, + "name": "COMP_VALUE_HEATING", + "value": 16, + "visible": true + }, + { + "confirmation": null, + "isReadonly": false, + "name": "COMP_VALUE_DEFROST", + "value": 32, + "visible": true + }, + { + "confirmation": null, + "isReadonly": false, + "name": "COMP_VALUE_POOL", + "value": 64, + "visible": false + } + ] + } +] + + +Group REG_GROUP_TEMPERATURES: +[ + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107006, + "groupId": 3, + "groupItemId": 25157, + "groupItemOrder": 70130, + "groupName": "REG_GROUP_TEMPERATURES", + "groupOrder": 11000, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 8, + "precision": null, + "presentation": "Integer", + "registerId": 107006, + "registerIndex": 2023, + "registerName": "REG_OPER_DATA_OUTDOOR_TEMP_MA_SA", + "registerValue": 3.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-11T17:06:34.69", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107007, + "groupId": 3, + "groupItemId": 25160, + "groupItemOrder": 70135, + "groupName": "REG_GROUP_TEMPERATURES", + "groupOrder": 11000, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 8, + "precision": null, + "presentation": "Integer", + "registerId": 107007, + "registerIndex": 2060, + "registerName": "REG_INDOOR_TEMPERATURE", + "registerValue": 20.0, + "step": 0.1, + "stringRegisterValue": null, + "timeStamp": "2024-03-14T14:29:01.357", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107008, + "groupId": 3, + "groupItemId": 25163, + "groupItemOrder": 70140, + "groupName": "REG_GROUP_TEMPERATURES", + "groupOrder": 11000, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 12, + "precision": null, + "presentation": "Integer", + "registerId": 107008, + "registerIndex": 2000, + "registerName": "REG_OPER_DATA_SUPPLY_MA_SA", + "registerValue": 28.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T17:01:12.239", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107010, + "groupId": 3, + "groupItemId": 25169, + "groupItemOrder": 70150, + "groupName": "REG_GROUP_TEMPERATURES", + "groupOrder": 11000, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 12, + "precision": null, + "presentation": "Integer", + "registerId": 107010, + "registerIndex": 2001, + "registerName": "REG_OPER_DATA_RETURN_MA_SA", + "registerValue": 29.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T17:03:59.326", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107011, + "groupId": 3, + "groupItemId": 25170, + "groupItemOrder": 70155, + "groupName": "REG_GROUP_TEMPERATURES", + "groupOrder": 11000, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 8, + "precision": null, + "presentation": "Integer", + "registerId": 107011, + "registerIndex": 2003, + "registerName": "REG_HOT_WATER_TEMPERATURE", + "registerValue": 53.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T15:47:07.531", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107014, + "groupId": 3, + "groupItemId": 25177, + "groupItemOrder": 70170, + "groupName": "REG_GROUP_TEMPERATURES", + "groupOrder": 11000, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 8, + "precision": null, + "presentation": "Integer", + "registerId": 107014, + "registerIndex": 2024, + "registerName": "REG_SENSOR_CALIB_DEFROST_SENSOR", + "registerValue": -1.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T15:47:09.526", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107024, + "groupId": 3, + "groupItemId": 25201, + "groupItemOrder": 70220, + "groupName": "REG_GROUP_TEMPERATURES", + "groupOrder": 11000, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 8, + "precision": null, + "presentation": "Integer", + "registerId": 107024, + "registerIndex": 2125, + "registerName": "REG_DESIRED_BUFFRER_TANK", + "registerValue": 0.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-03-14T14:28:25.844", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + } +] + + +Group REG_GROUP_OPERATIONAL_TIME: +[ + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107033, + "groupId": 10, + "groupItemId": 25210, + "groupItemOrder": 70330, + "groupName": "REG_GROUP_OPERATIONAL_TIME", + "groupOrder": 11500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 16, + "precision": null, + "presentation": "Integer", + "registerId": 107033, + "registerIndex": 2160, + "registerName": "REG_OPER_TIME_COMPRESSOR", + "registerValue": 1260.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T14:25:56.427", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107034, + "groupId": 10, + "groupItemId": 25213, + "groupItemOrder": 70340, + "groupName": "REG_GROUP_OPERATIONAL_TIME", + "groupOrder": 11500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 16, + "precision": null, + "presentation": "Integer", + "registerId": 107034, + "registerIndex": 2162, + "registerName": "REG_OPER_TIME_HEATING", + "registerValue": 910.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T13:28:14.464", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107035, + "groupId": 10, + "groupItemId": 25214, + "groupItemOrder": 70350, + "groupName": "REG_GROUP_OPERATIONAL_TIME", + "groupOrder": 11500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 16, + "precision": null, + "presentation": "Integer", + "registerId": 107035, + "registerIndex": 2163, + "registerName": "REG_OPER_TIME_COOLING", + "registerValue": 17.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-07-22T06:23:18.73", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107036, + "groupId": 10, + "groupItemId": 25217, + "groupItemOrder": 70360, + "groupName": "REG_GROUP_OPERATIONAL_TIME", + "groupOrder": 11500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 16, + "precision": null, + "presentation": "Integer", + "registerId": 107036, + "registerIndex": 2166, + "registerName": "REG_OPER_TIME_HOT_WATER", + "registerValue": 331.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T08:32:08.226", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107037, + "groupId": 10, + "groupItemId": 25218, + "groupItemOrder": 70370, + "groupName": "REG_GROUP_OPERATIONAL_TIME", + "groupOrder": 11500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 16, + "precision": null, + "presentation": "Integer", + "registerId": 107037, + "registerIndex": 2167, + "registerName": "REG_OPER_TIME_IMM1", + "registerValue": 568.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-09T08:50:46.769", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107038, + "groupId": 10, + "groupItemId": 25221, + "groupItemOrder": 70380, + "groupName": "REG_GROUP_OPERATIONAL_TIME", + "groupOrder": 11500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 16, + "precision": null, + "presentation": "Integer", + "registerId": 107038, + "registerIndex": 2168, + "registerName": "REG_OPER_TIME_IMM2", + "registerValue": 104.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-03T05:07:19.983", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": true, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107039, + "groupId": 10, + "groupItemId": 25222, + "groupItemOrder": 70390, + "groupName": "REG_GROUP_OPERATIONAL_TIME", + "groupOrder": 11500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 16, + "precision": null, + "presentation": "Integer", + "registerId": 107039, + "registerIndex": 2169, + "registerName": "REG_OPER_TIME_IMM3", + "registerValue": 0.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-03-14T14:28:29.927", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + } +] + + +Group REG_GROUP_POOL: +[] + + +Group REG_GROUP_HEATING_CURVE: +[ + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107020, + "groupId": 19, + "groupItemId": 25193, + "groupItemOrder": 70200, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 0, + "precision": null, + "presentation": "Integer", + "registerId": 107020, + "registerIndex": 2123, + "registerName": "REG_DESIRED_DISTR_CIR1", + "registerValue": 37.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-11T17:06:45.528", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107022, + "groupId": 19, + "groupItemId": 25197, + "groupItemOrder": 70210, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 0, + "precision": null, + "presentation": "Integer", + "registerId": 107022, + "registerIndex": 2124, + "registerName": "REG_DESIRED_DISTR_CIR2", + "registerValue": 37.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-11T17:06:45.528", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107045, + "groupId": 19, + "groupItemId": 25237, + "groupItemOrder": 70450, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": 56.0, + "minValue": 22.0, + "modifier": 1, + "precision": null, + "presentation": "Slider", + "registerId": 107045, + "registerIndex": 1000, + "registerName": "REG_HEATING_HEAT_CURVE", + "registerValue": 29.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-02-14T15:32:27.071", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107046, + "groupId": 19, + "groupItemId": 25238, + "groupItemOrder": 70460, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": 50.0, + "minValue": 10.0, + "modifier": 1, + "precision": null, + "presentation": "Slider", + "registerId": 107046, + "registerIndex": 1001, + "registerName": "REG_HEATING_HEAT_CURVE_MIN", + "registerValue": 21.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-02-14T15:32:27.071", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107047, + "groupId": 19, + "groupItemId": 25241, + "groupItemOrder": 70470, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": 85.0, + "minValue": 40.0, + "modifier": 1, + "precision": null, + "presentation": "Slider", + "registerId": 107047, + "registerIndex": 1002, + "registerName": "REG_HEATING_HEAT_CURVE_MAX", + "registerValue": 45.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-02-14T15:32:27.071", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107048, + "groupId": 19, + "groupItemId": 25242, + "groupItemOrder": 70480, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": 5.0, + "minValue": -5.0, + "modifier": 1, + "precision": null, + "presentation": "Slider", + "registerId": 107048, + "registerIndex": 1003, + "registerName": "REG_HEATING_CURVE_PLUS5", + "registerValue": 1.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-08T09:57:36.111", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107049, + "groupId": 19, + "groupItemId": 25245, + "groupItemOrder": 70490, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": 5.0, + "minValue": -5.0, + "modifier": 1, + "precision": null, + "presentation": "Slider", + "registerId": 107049, + "registerIndex": 1004, + "registerName": "REG_HEATING_CURVE_0", + "registerValue": -1.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-11-24T06:35:40.42", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107050, + "groupId": 19, + "groupItemId": 25246, + "groupItemOrder": 70500, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": 5.0, + "minValue": -5.0, + "modifier": 1, + "precision": null, + "presentation": "Slider", + "registerId": 107050, + "registerIndex": 1005, + "registerName": "REG_HEATING_CURVE_MINUS5", + "registerValue": 0.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-02-14T15:32:27.071", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107051, + "groupId": 19, + "groupItemId": 25251, + "groupItemOrder": 70510, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": 40.0, + "minValue": 0.0, + "modifier": 0, + "precision": null, + "presentation": "Slider", + "registerId": 107051, + "registerIndex": 1006, + "registerName": "REG_HEATING_HEAT_STOP", + "registerValue": 18.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-10-09T14:55:28.03", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107053, + "groupId": 19, + "groupItemId": 25264, + "groupItemOrder": 70530, + "groupName": "REG_GROUP_HEATING_CURVE", + "groupOrder": 12010, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": 4.0, + "minValue": 0.0, + "modifier": 1, + "precision": null, + "presentation": "Slider", + "registerId": 107053, + "registerIndex": 1008, + "registerName": "REG_HEATING_ROOM_FACTOR", + "registerValue": 2.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-02-14T15:32:27.071", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + } +] + + +Group REG_GROUP_HEAT_PUMP: +[ + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107054, + "groupId": 20, + "groupItemId": 25274, + "groupItemOrder": 70540, + "groupName": "REG_GROUP_HEAT_PUMP", + "groupOrder": 12500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": -5.0, + "minValue": -250.0, + "modifier": 0, + "precision": null, + "presentation": "Slider", + "registerId": 107054, + "registerIndex": 1070, + "registerName": "REG_SER_HEATING_INTEGRALA1", + "registerValue": -59.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-10-23T20:28:21.863", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + } +] + + +Group REG_GROUP_HOT_WATER: +[] + + +Group REG_GROUP_IMMERSION_HEATER: +[] + + +Group REG_GROUP_OPERATIONAL_DIAGNOSTICS: +[] + + +Group REG_GROUP_SOFTWARE_VERSIONS: +[] + + +Group REG_GROUP_COOLING: +[ + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107044, + "groupId": 6, + "groupItemId": 25272, + "groupItemOrder": 70539, + "groupName": "REG_GROUP_COOLING", + "groupOrder": 18500, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": false, + "maxValue": null, + "minValue": null, + "modifier": 0, + "precision": null, + "presentation": "Enumeration", + "registerId": 107044, + "registerIndex": 1090, + "registerName": "REG_ACTIVATE_COOLING", + "registerValue": 0.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-07-22T07:23:09.402", + "trueText": null, + "unit": "NotSpecified", + "valueNames": [ + { + "confirmation": null, + "isReadonly": false, + "name": "REG_VALUE_STATUS_OFF", + "value": 0, + "visible": true + }, + { + "confirmation": null, + "isReadonly": false, + "name": "REG_VALUE_STATUS_ON", + "value": 1, + "visible": true + } + ] + } +] + + +Group REG_GROUP_IMMERSION_HEATER_AUX: +[] + + +Group REG_GROUP_CALIBRATION: +[] + + +Group SPF: +[] + + +Group REG_GROUP_BUFFER_TANK: +[] + + +Group REG_GROUP_DEFROSTING: +[ + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107041, + "groupId": 45, + "groupItemId": 25226, + "groupItemOrder": 70410, + "groupName": "REG_GROUP_DEFROSTING", + "groupOrder": 70410, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 0, + "precision": null, + "presentation": "Integer", + "registerId": 107041, + "registerIndex": 2171, + "registerName": "REG_DEFROSTS_MA_SA", + "registerValue": 280.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T14:33:16.562", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107042, + "groupId": 45, + "groupItemId": 25229, + "groupItemOrder": 70420, + "groupName": "REG_GROUP_DEFROSTING", + "groupOrder": 70410, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 0, + "precision": null, + "presentation": "Integer", + "registerId": 107042, + "registerIndex": 2172, + "registerName": "REG_DEFROSTS_BETW2DEFR_MA_SA", + "registerValue": 118.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T14:33:16.562", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + }, + { + "canBeShownInGraph": false, + "canBeShownInHistory": true, + "collapsible": false, + "disabledByLink": false, + "falseText": null, + "graphRegisterIndex": 107043, + "groupId": 45, + "groupItemId": 25230, + "groupItemOrder": 70430, + "groupName": "REG_GROUP_DEFROSTING", + "groupOrder": 70410, + "groupParentId": null, + "isComputedRegister": false, + "isInvisible": false, + "isReadOnly": true, + "maxValue": null, + "minValue": null, + "modifier": 4, + "precision": null, + "presentation": "Integer", + "registerId": 107043, + "registerIndex": 2173, + "registerName": "REG_DEFROST_TIME_LAST_DEFROST_MA_SA", + "registerValue": 41.0, + "step": 1.0, + "stringRegisterValue": null, + "timeStamp": "2024-12-12T16:56:56.128", + "trueText": null, + "unit": "NotSpecified", + "valueNames": null + } +] + + +Group REG_GROUP_TEMPERATURES_SLAVE: +[] + + +Group REG_GROUP_CALENDAR: +[] + + +########## DEBUG END ########## diff --git a/ThermiaOnlineAPI/tests/test_heat_pumps.py b/ThermiaOnlineAPI/tests/test_heat_pumps.py index 5976fc9..99a3c09 100644 --- a/ThermiaOnlineAPI/tests/test_heat_pumps.py +++ b/ThermiaOnlineAPI/tests/test_heat_pumps.py @@ -107,3 +107,29 @@ def test_ncp_1028(requests_mock): ], expected_available_power_statuses=[], ) + + +def test_atec_dhp_aq(requests_mock): + setup_thermia_and_perform_basic_tests( + requests_mock, + "ATEC_DHP_AQ.txt", + expected_model="ATEC", + expected_model_id="DHP AQ", + expected_available_operational_modes=[ + "OFF", + "AUTO", + "COMPRESSOR", + "AUXILIARY", + "HOT_WATER", + ], + expected_available_operational_statuses=[ + "COMPR", + "RADIATORPUMP", + "COOLING", + "HOT_WATER", + "HEATING", + "DEFROST", + "POOL", + ], + expected_available_power_statuses=[], + )