diff --git a/custom_components/maestro_mcz/climate.py b/custom_components/maestro_mcz/climate.py index c8ee1f6..53bfa66 100644 --- a/custom_components/maestro_mcz/climate.py +++ b/custom_components/maestro_mcz/climate.py @@ -172,7 +172,10 @@ def handle_coordinator_update_internal(self) -> None: hasattr(self.coordinator._maestroapi.Status, self._supported_power_sensor.sensor_get_name)): stato_stufa = getattr(self.coordinator._maestroapi.Status, self._supported_power_sensor.sensor_get_name) if(stato_stufa is not None): - if(stato_stufa == 0 or stato_stufa == 1): + if(stato_stufa == -1 or #disconnected + stato_stufa == 0 or #off + stato_stufa == 1 #turning off + ): self._attr_hvac_mode = HVACMode.OFF else: self._attr_hvac_mode = HVACMode.HEAT