Skip to content

Commit

Permalink
fix mode guess
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaust authored Sep 7, 2021
1 parent 1c7728f commit c01d6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/smarterzones/smarterzones.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c01d6e6

Please sign in to comment.