victronenergy / dynamic-ess

MIT License
76 stars 5 forks source link

[VRM - Bug]: Tibber Price from Germany is not 100% correct #109

Closed pokeplayer2 closed 8 months ago

pokeplayer2 commented 8 months ago

Contact Details

No response

VRM portal ID

b827eb6ff17f

Country / region

Germany (de)

B max

26

TB max

6,5

FB max

7

TG max

30

FG max

30

Battery costs

0,02

Buy price

p+0.21*1.19

Sell price

0,115

feed-in possible

yes

feed-in control

yes

What happened?

Buy price is wrong

When did it happen?

19/10/203 20:25

Screenshots

Tibber Germany grafik

Price VRM

grafik

dirkjanfaber commented 8 months ago

It looks like you are missing brackets in your formula: p+0.21*1.19 is not the same as (p+0.21)*1.19. In case of p being 0.09:

> p=0.09
0.09
> p+0.21*1.19
0.3399
> (p+0.21)*1.19
0.357

In your screenshot it was probably 0.11:

> p=0.11
0.11
> p+0.21*1.19
0.3599
> (p+0.21)*1.19
0.38079999999999997
pokeplayer2 commented 8 months ago

Argh, sorry and thx!

pokeplayer2 commented 8 months ago

How fast is the chart re-created after config changes? It's very hard to check the configuration when the changes are not immediately visible ...

dirkjanfaber commented 8 months ago

Afaik historic graphs are not altered, so left of the vertical line keeps the calculations as they where. The rest of the graph (right of the vertical "now" line) should be recalculated direct after changing the configuration. But I might be wrong on that, in which case it is max 1 hour.

vbdaniel4 commented 4 months ago

Formula ist incorrect. Should be (in your case): (p*1.19)+0.21