Replies: 4 comments 16 replies
-
|
Ooh, this is very interesting. Thank you for all your hard work on this. I agree Jinja templating code is counter-intuitive, what bit I’ve done is lots of trial and error. Some questions:
Super, looking forward to incorporate into my own predbat forecast |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Sorry for resurrecting this discussion, but I think this is fab, thank you for your work so far. I've copy and pasted your code into HA and it works, i'm seeing incrementing hourly numbers that predbat seems to recognise. Many questions to come though. You can see my heat pump data here Thinking about making this calculation open to more people, making in customisable? Could there be a way to create the prediction graph based off a few fundamental system design numbers?
ie, 4kW heat loss, -3C, 20C and 40C We could use a some standard COP values. I have all the Vaillant raw figures that we could use to create some default tables. I bet there are some heat pump users that will not have enough sensors and the suchlike to input into Preheat (as it's quite an amount of information). if we could create an 'average' sort of ballpark figure based on some fundamental figures I think that would be great. I'd be happy to help and have talked about something similar here Cheers, Mick |
Beta Was this translation helpful? Give feedback.
-
|
Not at all. It works well for me, so happy to help make it more useful for
others too. And yes, you're quite right - basically using the house as a
calorimeter!
…On Thu, 16 Oct 2025, 14:31 zarch1972, ***@***.***> wrote:
No worries Jo. Sorry to going back in time. LOL
I think what you've created there is your own HTC, Watts required per
degree of temperature difference.
I think what i'm suggesting is how can we make something like that for
more people based on some simple inputs.
—
Reply to this email directly, view it on GitHub
<#837 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3BD7Y2VR3BCYOMZNJ6V6QL3X6M25AVCNFSM6AAAAACJLZFQX6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINRZHEZDINA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
It's been a bit of a mission (templating has been possibly the least intuitive programming challenge I've taken on in living memory...), but I'd like to share a wee contribution: here is a home assistant template to predict heat pump demand from forecast temperature. It grabs the hourly forecast temperatures for the next 24 hours from the Met.no integration, and converts that to a predicted energy demand for use in Predbat's Load Forecast input based on a curve fit to data which you'll need to gather for your own house & heating.
Here, I've plotted my Vaillant system's total (heating + DHW) daily energy consumption against the daily average outdoor temperature, then fitted a quadratic curve to it. (I think it's probably important to have a dataset with consistent underlying settings, hence my somewhat reduced dataset here (made some big heat curve/scheduling changes a month or so back) - will probably update the coefficients in due course once this has been filled out a bit more.)
You will then need to put the coefficients into a, b & c (from line equation y = ax^2 + bx + c) in the template code below, and add this to your configuration.yaml file.
This is working for me (can see the effect in Predbat’s load forecast column), by adding the following lines at the relevant place in Predbat’s apps.yaml:
(The final part I'd like to add would be to update the state from its placeholder timestamp to show the total forecast energy (i.e. the sum of the hourly_energy values, or the final value in the incr_energy_list). Suggestions on how to achieve this welcome!)
Hopefully this is helpful to someone!
All the best,
Jo
Beta Was this translation helpful? Give feedback.
All reactions