From 968e8286ea3b9610f22df6488b808ad524ba6de0 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sun, 3 Nov 2024 21:49:59 +0000 Subject: [PATCH] Add some infos --- custom_components/versatile_thermostat/switch.py | 2 +- custom_components/versatile_thermostat/thermostat_climate.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/custom_components/versatile_thermostat/switch.py b/custom_components/versatile_thermostat/switch.py index e1b7218..c414f2c 100644 --- a/custom_components/versatile_thermostat/switch.py +++ b/custom_components/versatile_thermostat/switch.py @@ -58,7 +58,7 @@ class AutoStartStopEnable(VersatileThermostatBaseEntity, SwitchEntity, RestoreEn @property def icon(self) -> str | None: """The icon""" - return "mdi:power-settings" + return "mdi:power-sleep" async def async_added_to_hass(self): await super().async_added_to_hass() diff --git a/custom_components/versatile_thermostat/thermostat_climate.py b/custom_components/versatile_thermostat/thermostat_climate.py index 5151c7c..232d879 100644 --- a/custom_components/versatile_thermostat/thermostat_climate.py +++ b/custom_components/versatile_thermostat/thermostat_climate.py @@ -910,6 +910,8 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]): "target_temperature": self.target_temperature, "current_temperature": self.current_temperature, "temperature_slope": round(slope, 3), + "accumulated_error": self._auto_start_stop_algo.accumulated_error, + "accumulated_error_threshold": self._auto_start_stop_algo.accumulated_error_threshold, }, ) @@ -933,6 +935,8 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]): "target_temperature": self.target_temperature, "current_temperature": self.current_temperature, "temperature_slope": round(slope, 3), + "accumulated_error": self._auto_start_stop_algo.accumulated_error, + "accumulated_error_threshold": self._auto_start_stop_algo.accumulated_error_threshold, }, )