Skip to content

Commit 06e60d6

Browse files
committed
Add buffer tank temperature
1 parent f56ebf3 commit 06e60d6

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ To execute the example file, first run `pip install -r requirements.txt` to inst
4646
| --- | --- |
4747
| Other temperatures | |
4848
| `supply_line_temperature` | Supply line temperature in Celsius |
49+
| `buffer_tank_temperature` | Buffer tank temperature in Celsius |
4950
| `desired_supply_line_temperature` | Desired supply line temperature in Celsius |
5051
| `return_line_temperature` | Return line temperature in Celsius |
5152
| `brine_out_temperature` | Brine out temperature in Celsius |

ThermiaOnlineAPI/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
REG_HOT_WATER_TEMPERATURE = "REG_HOT_WATER_TEMPERATURE"
4545
REG_BRINE_OUT = "REG_BRINE_OUT"
4646
REG_BRINE_IN = "REG_BRINE_IN"
47+
REG_OPER_DATA_BUFFER_TANK = "REG_OPER_DATA_BUFFER_TANK"
4748

4849
###############################################################################
4950
# Temperature registers ("classic" specific)

ThermiaOnlineAPI/model/HeatPump.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
COMP_STATUS_ITEC,
3232
REG_SUPPLY_LINE,
3333
DATETIME_FORMAT,
34+
REG_OPER_DATA_BUFFER_TANK,
3435
)
3536

3637
from ..utils.utils import get_dict_value_or_none, get_dict_value_or_default
@@ -524,6 +525,13 @@ def desired_supply_line_temperature(self):
524525
)
525526
)
526527

528+
@property
529+
def buffer_tank_temperature(self):
530+
return get_dict_value_or_none(
531+
self.__get_temperature_data_by_register_name(REG_OPER_DATA_BUFFER_TANK),
532+
"value",
533+
)
534+
527535
@property
528536
def return_line_temperature(self):
529537
return get_dict_value_or_none(

0 commit comments

Comments
 (0)