Skip to content

Commit

Permalink
Fix heat energy to be energy in not out (#1751)
Browse files Browse the repository at this point in the history
* Fix heat energy to be energy in not out

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
springfall2008 and pre-commit-ci-lite[bot] authored Dec 18, 2024
1 parent f5a2600 commit f749960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/predbat/predheat.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def run_simulation(self, volume_temp, heating_active, save="best", last_predict_
energy_now_out = heat_power_out * PREDICT_STEP / 60.0 / 1000.0

cost += energy_now_in * self.rate_import.get(minute_absolute, 0)
heat_energy += energy_now_out
heat_energy += energy_now_in

# 1.16 watts required to raise water by 1 degree in 1 hour
volume_temp += (heat_power_out / WATTS_TO_DEGREES / self.heat_volume) * PREDICT_STEP / 60.0
Expand Down

0 comments on commit f749960

Please sign in to comment.