Skip to content

Commit

Permalink
Add buffer tank temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Jun 12, 2023
1 parent f56ebf3 commit 06e60d6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions ThermiaOnlineAPI/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions ThermiaOnlineAPI/model/HeatPump.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 06e60d6

Please sign in to comment.