Skip to content

Commit

Permalink
Merge pull request #1192 from LeoCal/patch-1
Browse files Browse the repository at this point in the history
Fix hvac_action attribute behavior to go to "idle" when the Better Thermostat is "off"
  • Loading branch information
KartoffelToby authored Dec 27, 2023
2 parents 4ae2009 + 68e55a0 commit b4e2010
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/better_thermostat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,11 @@ def hvac_action(self):
and self.bt_target_temp is not None
and self.cur_temp is not None
):
if self.bt_target_temp > self.cur_temp and self.window_open is False:
if (
self.bt_target_temp > self.cur_temp
and self.window_open is False
and self.bt_hvac_mode is not HVACMode.OFF
):
self.attr_hvac_action = HVACAction.HEATING
else:
self.attr_hvac_action = HVACAction.IDLE
Expand Down

0 comments on commit b4e2010

Please sign in to comment.