diff --git a/apps/smarterzones/smarterzones.py b/apps/smarterzones/smarterzones.py index a52a057..bcd1cf9 100644 --- a/apps/smarterzones/smarterzones.py +++ b/apps/smarterzones/smarterzones.py @@ -229,7 +229,7 @@ def heatingorcooling(self, mode, zone): # Since we don't know if we're heating or cooling from the climate devices mode, we need to make our best guess # Use target temp compared to external temperature to guess if it's heating or cooling outside_temperature = self.get_state(self.exterior_temperature) - target_temperature = self.get_state(zone["target_temp"]) + target_temperature = self.get_state(self.climate_device["temperature"]) if outside_temperature > target_temperature: self.queuedlogger("Estimated mode as cooling") return ACMODE.COOLING