emhass icon indicating copy to clipboard operation
emhass copied to clipboard

P_Batt forecast value calculation issue

Open martinarva opened this issue 1 year ago • 3 comments

Describe the bug

P_Batt forecast value calculation uses eta_disch as a multiplier and this causes issue where p_batt is lower than it should be.

For example at the moment max sell from battery should be happening.

Pd_max: 15600 eta_disch: 0.95

P_batt should be 15600, but it is 15600 * 0.95 =14 820

image

I'm using p_batt in automation to set the discharge power and in this case losing some power.

Expected behavior Would be nice to get the real b_batt value. I think it would be beneficial for utilizing battery the most. Maybe it will be a possibility to make the eta_disch calculation for after the p_batt so that load and grid would be correct.

martinarva avatar Sep 10 '24 17:09 martinarva

It could be that we need to apply the efficiency factor before publishing the battery power sensor? It is something we have missed all along the way. In the meantime you can also apply this efficiency on HA just before controlling your equipment

davidusb-geek avatar Sep 28 '24 09:09 davidusb-geek

It could be that we need to apply the efficiency factor before publishing the battery power sensor? It is something we have missed all along the way. In the meantime you can also apply this efficiency on HA just before controlling your equipment

Great and yes, i'm applying this efficiency in HA at the moment.

martinarva avatar Sep 28 '24 17:09 martinarva

I have been setting discharge efficiency to 1.00 to workaround this issue.

purcell-lab avatar Oct 18 '24 07:10 purcell-lab