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 Energy update (V8) #23

Closed Speshman closed 1 year ago

Speshman commented 1 year ago

Since the Octopus energy was updated https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy it seems that batpred can no longer read the rates from it. image

image

image

sensor.octopus_energy_electricity_22l4330885_2199998082940_current_rate is what my rate sensor is called, just in case your auto discovery is looking for something different

springfall2008 commented 1 year ago

I've submitted a fix to master, will release it once someone else has tested it

adamwylde commented 1 year ago

I was seeing the same problem with Octopus 8.0.0… I’ve overwritten predbat.py with the one from master and my rates have returned and it looks like its correctly calculated my upcoming flex discharge window correctly, and tomorrows charge window, so I think the fix is good.

dbrb2 commented 1 year ago

I can confirm this seems to have fixed the problem - I have only been running it for a few minutes, but the missing rates have reappeared. Thanks!

springfall2008 commented 1 year ago

Thanks, I've made a release of this code now