springfall2008 / batpred

Home battery prediction and charging automation for Home Assistant, supporting many inverter types
https://springfall2008.github.io/batpred/
115 stars 40 forks source link

Octopus Free Electricity session - reverse saving session #1363

Open johnwb87 opened 1 month ago

johnwb87 commented 1 month ago

Just had email from Octopus about this.

It sounds like it is essentially a reverse savings session as it is only the additional usage that is free.

My first thought is to set a force charge during the window nicely in advance and see what predbat decides to do with that.

Any other thoughts?

CJDumbleton commented 1 month ago

More background information about free electricity sessions from Octopus here: https://octopus.energy/free-electricity/.

gcoan commented 1 month ago

I suggest the best way is to treat it as a zero price session, then Predbat will decide based on your solar forecast and predicted load as to whether it should discharge the battery or not.

In apps.yaml, add the following:

  rates_import_override:
    -  date: '2024-08-15'
       start: '13:00:00'
       end: '14:00:00'
       rate: 0
       load_scaling: 1.0

Increase load scaling if you expect to put the washing on, etc.

Unfortunately until Octopus provide an API for this, there isn't much automation predbat can do. I have a semi-automated solution which updates apps.yaml for you based on you setting the date and times in Home Assistant - see https://community.givenergy.cloud/d/3968-automating-octopus-power-up-events-into-predbat

chris-y commented 3 weeks ago

For Power-Ups there's a third party API here: https://github.com/8none1/octopus_powerups

They are working on one for Free Electricity.

Would be nice to get these integrated until Octopus have their own API.

See https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues/973#issuecomment-2307543203

gcoan commented 3 weeks ago

Interesting, I've asked what region he is in as to whether its the same as me. I'll set the sensor up and see how it compares to the sessions I get notified of