Skip to content

Commit

Permalink
Update API, add buffer tank temperature sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Jun 12, 2023
1 parent e0bacc2 commit 05a8106
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/thermia/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/klejejs/ha-thermia-heat-pump-integration/issues",
"requirements": [
"ThermiaOnlineAPI==3.17.0"
"ThermiaOnlineAPI==3.18.0"
],
"version": "1.0"
}
16 changes: 16 additions & 0 deletions custom_components/thermia/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,22 @@ async def async_setup_entry(
)
)

if heat_pump.buffer_tank_temperature is not None:
hass_thermia_sensors.append(
ThermiaGenericSensor(
coordinator,
idx,
"is_online",
"Buffer Tank Temperature",
MDI_TEMPERATURE_ICON,
EntityCategory.DIAGNOSTIC,
"temperature",
"measurement",
"buffer_tank_temperature",
TEMP_CELSIUS,
)
)

###########################################################################
# Operational status data
###########################################################################
Expand Down

0 comments on commit 05a8106

Please sign in to comment.