Skip to content

Commit

Permalink
2 minor updates to hp on during on-peak
Browse files Browse the repository at this point in the history
  • Loading branch information
thdfw committed Dec 23, 2024
1 parent 0552ced commit 3835f35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gw_spaceheat/actors/home_alone.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ async def main(self):
elif not self.oil_boiler_on:
self.log("Turning on oil boiler during onpeak!")
self.turn_on_oil_boiler()
elif not self.is_storage_colder_than_buffer():
elif not self.is_storage_colder_than_buffer() and not self.is_storage_empty():
self.trigger_event(HomeAloneEvent.OnPeakBufferEmpty.value)
if self.is_buffer_full() and self.oil_boiler_on:
self.turn_off_oil_boiler()
Expand Down Expand Up @@ -580,8 +580,8 @@ def is_house_cold(self):
temperature = self.data.latest_channel_values[zone+'-temp']
else:
temperature = 40
if temperature < setpoint - 1:
self.log(f"{zone} temperature is lower than the setpoint before starting on-peak")
if temperature < setpoint - 2*1000:
self.log(f"{zone} temperature is 2F lower than the setpoint before starting on-peak")
return True
self.log("All zones are at or above their setpoint at the beginning of on-peak")
return False
Expand Down

0 comments on commit 3835f35

Please sign in to comment.