Using some kind of "planned" events: charging PV battery on dynamic prices

running OH 4.2.2 release on openHABian.

I’m thinking of using some “planned” events, and how to set those up.
My use case would be something like this:

  1. I’m using Tibber as a dynamic pricing provider for my electricity
  2. I’m also using a PV with a 10kWh battery
  3. On such days as today (and tomorrow!) I’d like to “plan” loading the battery during the day even from the grid, if I avoid paying “high” prices during those “extreme peak” hours.

As you can see on the screenshot the price per kWh increases from about 30ct to over 50ct for the evening hours (usually there’s some cooking and lights).

I’d like to plan the loading of the battery between 12h and 15h.

What I’m looking for is some kind of daily “planning” of the battery’s SoC. is there some best practise or something for this?
Currently I do this hourly and try to combine solar forecast and the hourly prices to be able to tell there’s such a fast increase, that it’ll be worth charging the battery from grid.

What I’m looking for is some kind of logic to plan to have battery SoC up to a certain value, which allows for discharge until the price is “low enough” (in the screnshot arount 19h). Because the price increase hourly today was not “steep enough” to account for charging the battery, but it would’ve been ok to have charged from 12h to 15h and wait for discharging at 16h

I know there are several posting similar to this sort of thing. Look at the “money saved” thread which should give you a start I think.

Doing stuff like this is the whole reason that adding the ability to save future values to persistence was added to OH so I know there are people doing this sort of calculation.

1 Like

I guess this is one of the most popular approaches here in the community:

1 Like

It’s implemented in the EMS you own https://storm.house/docs/#Batterienachladung

1 Like