From c3d21d56cd15817fb2cb86230efa9b3e568f58d5 Mon Sep 17 00:00:00 2001 From: Ray Kinsella Date: Thu, 28 Sep 2023 21:13:11 +0000 Subject: [PATCH] Added heating operational time Signed-off-by: Ray Kinsella --- custom_components/thermia/sensor.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/custom_components/thermia/sensor.py b/custom_components/thermia/sensor.py index fe91938..c551440 100644 --- a/custom_components/thermia/sensor.py +++ b/custom_components/thermia/sensor.py @@ -372,6 +372,22 @@ async def async_setup_entry( ) ) + if heat_pump.heating_operational_time is not None: + hass_thermia_sensors.append( + ThermiaGenericSensor( + coordinator, + idx, + "is_online", + "Heating Operational Time", + MDI_TIMER_COG_OUTLINE_ICON, + EntityCategory.DIAGNOSTIC, + None, + "total_increasing", + "heating_operational_time", + UnitOfTime.HOURS, + ) + ) + if heat_pump.hot_water_operational_time is not None: hass_thermia_sensors.append( ThermiaGenericSensor(