In hopes of someone having a similar need, or similar solution out there - I’ll describe what I’m looking for atm.
I’ve got a geothermal heatpump (but the principal goes for any type), with mainly underfloor heating.
Ultimately, I’m looking for a script, that will help me determine the most expensive 3 hour windows, throughout the day, so that I may automate the shutdown.
Heatpumps aren’t fond of being shut off and turned on a lot, but needs longer periods to generate the heat - a minimum of 6 hours at a time.
The concept I look for, ideally, would be able to first determine the most expensive consecutive 3 hours, in the day and afterwards, look 6 hours apart, for another 3 hour window.
Atleast in Denmark, the prices rise in the morning, before usual work time and in the evening, after work. That gives the windows 6-9 and 17-20, that are expensive, historically.
With the current fluctuations, a static rule wont mix - and there is no reason to shutdown the heatpump, if a cheap wave of electricity is soaring the market.
So ideally, the script would in a “normal day” identify the 2 timeslots and confirm that they are more than 6 hours apart, and then report a true / false value.
Even better would it be, if the timeslot were available to query, so that the apexcharts, that I posted above, could show the timeslots, as a color or with a graphical component.
That way, the dashboard would show prices and the timeslots in which the heating element would shut off.
I’ve tried most the code in this thread, but none match this functionality.
My hope is to actively cut off the normal high times of the price-waves, and take advantage of lower prices, to generate more heat instead.