diff --git a/README.md b/README.md index eca2fbd..880b4c0 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ To execute the example file, first run `pip install -r requirements.txt` to inst | --- | --- | | Other temperatures | | | `supply_line_temperature` | Supply line temperature in Celsius | +| `buffer_tank_temperature` | Buffer tank temperature in Celsius | | `desired_supply_line_temperature` | Desired supply line temperature in Celsius | | `return_line_temperature` | Return line temperature in Celsius | | `brine_out_temperature` | Brine out temperature in Celsius | diff --git a/ThermiaOnlineAPI/const.py b/ThermiaOnlineAPI/const.py index 21e9123..8dca45c 100644 --- a/ThermiaOnlineAPI/const.py +++ b/ThermiaOnlineAPI/const.py @@ -44,6 +44,7 @@ REG_HOT_WATER_TEMPERATURE = "REG_HOT_WATER_TEMPERATURE" REG_BRINE_OUT = "REG_BRINE_OUT" REG_BRINE_IN = "REG_BRINE_IN" +REG_OPER_DATA_BUFFER_TANK = "REG_OPER_DATA_BUFFER_TANK" ############################################################################### # Temperature registers ("classic" specific) diff --git a/ThermiaOnlineAPI/model/HeatPump.py b/ThermiaOnlineAPI/model/HeatPump.py index 8fd5faf..63a7147 100644 --- a/ThermiaOnlineAPI/model/HeatPump.py +++ b/ThermiaOnlineAPI/model/HeatPump.py @@ -31,6 +31,7 @@ COMP_STATUS_ITEC, REG_SUPPLY_LINE, DATETIME_FORMAT, + REG_OPER_DATA_BUFFER_TANK, ) from ..utils.utils import get_dict_value_or_none, get_dict_value_or_default @@ -524,6 +525,13 @@ def desired_supply_line_temperature(self): ) ) + @property + def buffer_tank_temperature(self): + return get_dict_value_or_none( + self.__get_temperature_data_by_register_name(REG_OPER_DATA_BUFFER_TANK), + "value", + ) + @property def return_line_temperature(self): return get_dict_value_or_none(