batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Incorrectly shows price override against every import price

Open gcoan opened this issue 5 months ago • 2 comments

Describe the bug Octopus power up today, I have set a price override via the manual API, and that is showing correctly as 0p, but all other import prices today are also shown as overridden when they are not.

Expected behaviour Only the prices that are overridden are highlighted with the +- symbol

Predbat version 8.20.7

Environment details HAOS, HA 2025.7.3

Screenshots Only a 2 hour rate has been overridden: image

But all import rates show the +/-: image

Log file predbat.log

Predbat debug yaml file

debugyaml.txt.txt

gcoan avatar Jul 23 '25 08:07 gcoan

I'm wondering if you want to move to the new price override manual API instead?

springfall2008 avatar Aug 16 '25 16:08 springfall2008

I'm wondering if you want to move to the new price override manual API instead?

Hi Trefor

First power up event since I raised this, a 2 hour event from 12-2pm tomorrow, so tried to use the new price override manual API.

First problem is that select.predbat_manual_import_rates is only populated 18 hours or so ahead. The notification from Octopus came this afternoon so when I tried to select the import rate overrides I couldn't because the times weren't populated far enough ahead so I'd have to wait to the evening to be able to do so which is inconvenient (plus needs me to remember it).

Second problem is that this control is fine for making a single half hour slot change but the power up event is for 2 hours and I have the rate override information as a start and end time that I want to push through to predbat via an automation script. Splitting the time into half hour slots and repeatedly setting the select.predbat_manual_import_rates is cumbersome and non-trivial scripting!

So the way I do the price overrides using the select.predbat_manual_api and setting rates_import_override is still the preferred approach for me.

Still same formatting problem with the plan on predbat 8.24.2:

Image

I think its just a plan display problem

gcoan avatar Sep 04 '25 21:09 gcoan