batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Import/Export Compare values & not taking account of rate overrides

Open gcoan opened this issue 10 months ago • 4 comments

Describe the bug Three different issues noticed with the compare function tonight:

  1. The Compare shows current is much cheaper than Cosy Agile that I'm currently on.

On investigation I have identified that current is taking account of rate overrides in apps.yaml for a power up event today: image

Whereas the other projections are not. I'd suggest that if a rate override has been put in apps.yaml or via the manual_api then it should be honoured in all tariffs image

  1. Import/export values look impossibly high.

Noticed import projections of over 100kWh, and export projections that can't be achieved either. image

e.g. Agile Fixed has 13.5kW of projected export.

In the plan there are 4 export slots. I have 2 inverters at 2.4kW, so 4.8 per hour. At best 9.6 + solar - house load.
2 of the slots are at night, two are in the day but when load>solar, so can't achieve this export figure. image image

import not checked but similarly way too high

  1. Viewability on a mobile phone

The graphs are completely unreadable both portrait and landscape: image image

I'd question whether the title/menu bar needs to be so big and needs to be fixed on small screens like this as it uses quite a bit of real estate

EDIT: 3 further comments/observations/issues identified below https://github.com/springfall2008/batpred/issues/2033#issuecomment-2687599850

Expected behaviour

  1. Take account of rate import/export overrides in apps.yaml for all tariffs

  2. Import and export figures that are correct !

  3. Make the menu bar float on the top of the page when on small resolution screens and scale the graph so that it is readable on all devices

Predbat version 8.14.4

Environment details 2x Gen 1 hybrid inverters HAOS Core 2025.2.4

Log file predbat.1.log

gcoan avatar Feb 21 '25 03:02 gcoan

r/e point 3, if the text 'Predbat' were made a bit smaller and the bat logo was aligned a bit higher then the whole menu bar could be halved in vertical size quite easily

still consideration about making it scroll off the page rather than be fixed at the top on small apperture screen sizes, but just reducing the vertical size would make quite an improvement

gcoan avatar Feb 22 '25 00:02 gcoan

Like Geoff, I'm getting some odd-looking numbers in my Comparison table. I'm on Agile In/Fixed Out with a GE AIO (13k5Wh) and about 3k5Wp panels, no EV, iboost currently off. Predbat is set to vanilla (default, non-expert yaml).

For the past few days, my Current has agreed with Agile In/Fixed Out but today it doesn't - see attached. Also the un-dimensioned In/Out Comparison numbers look high. It's windy and predbat was doing a lot of 30/30 arbitrage earlier today.

Despite these niggles, I love predbat and welcome the new tariff comparison feature. Happy to provide any debug data might help. - Julian

Image

Image

jrwm47 avatar Feb 23 '25 11:02 jrwm47

Sorry @springfall2008 three further observations/bugs/features:

  1. Is it possible for the colours in the chart to be adjusted? In particular I find that the 'current' and 'flux' always come out at the same shade of blue so its very hard to distinguish between them: image

  2. The compare entities all have identical friendly names in HA, can these be changed to include the tarrif name because at the moment they are indistinguishable other than the different entity id's: image

  3. And on the subject of the compare entities, if I look at the entity value I can see a snapshot of entity state over time, but with a spinning wheel in the Logbook area: image

If I click 'show more' to see a graph of compare £ over time then it sits with a spinning wheel for ages and ages before eventually reporting 'no logbook entries'. Don't have this problem with other Predbat entities, must be something to do with the way these compare entities are written to HA.

gcoan avatar Feb 27 '25 10:02 gcoan

Have you had a chance to look at this @springfall2008 ?

These are all still issues occurring with the compare function

thanks

gcoan avatar Sep 18 '25 07:09 gcoan