Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Energy Storage should be Ah not Wh #1733

Open
Fabian-Schmidt opened this issue Mar 30, 2023 · 6 comments
Open

Energy Storage should be Ah not Wh #1733

Fabian-Schmidt opened this issue Mar 30, 2023 · 6 comments

Comments

@Fabian-Schmidt
Copy link

Hi,
I just noticed the new device class energy storage #1698
And the text contains the following sentence:
for example the amount of electric energy currently stored in a battery or the capacity of a battery.

But all battery monitoring systems and all batteries I can purchase are measuring in Ah and not in Wh.

Can somebody please clarify? Thanks,

@dgomes
Copy link
Contributor

dgomes commented Mar 30, 2023

@Fabian-Schmidt
Copy link
Author

So I have a (pure) DC system (no AC, no Inverter) with a normal AGM battery with a Voltage between 11.5V and 14.4V and a Capacity of 95Ah and peukert factor of around 1.05.
My Victron Smart Shunt gives a very accurate consumed Ah values.

Based on your opinion how should I get the Wh for this system, so I can use the HA energy function.

I see one Option: If I multiple the current Voltage with the consumed Ah I get an incorrect value, because the Voltage various highly depending on the current load on the battery, but the actual consumed Wh not.

@dgomes
Copy link
Contributor

dgomes commented Apr 1, 2023

Multiplying by the current voltage would indeed be the way to convert between units...

@Fabian-Schmidt
Copy link
Author

My problem with using the current Voltage I can illustrate best using the following table. The measurements are taken directly at the battery. All values are taken a few second apart. I have occasional short high loads:

current Voltage Current current Power consumed Ah consumed Wh
12.68 V -0.60 A - 7.6 W -5.8 Ah - 73.54 Wh
12.54 V -9.22 A - 115.6 W -5.8 Ah - 72.73 Wh
12.65 V -0.28 A - 3.5 W -5.8 Ah - 73.37 Wh

As you can see the resulting consumed Wh is jumping around very heavily, but the actual consumed Ah not. Because the short spike load has used very little power.

@degreal
Copy link

degreal commented May 2, 2023

Ah is not an energy unit. If you don't actually care about actual energy you can make an arbitrary energy unit out of consumed Ah and battery nominal voltage 12v.

Something does not add up in your table. Is consumed Ah and consumed Wh for each "few second" or it's infinitely increasing absolute value? If latter, why consumed Wh is decreasing?

Also consumed Ah value seems to be heavily rounded. How many decimals it has? From your example, Wh seems 100x more precise, that's why it seems to be "jumping around".

@davidebeatrici
Copy link

Multiplying the voltage (V) for the capacity (Ah) should be accurate. Please note that, as hinted above, you should only round the value after the operation(s).

See how I'm doing it: https://github.com/davidebeatrici/hass-dr-jc03/blob/2c4e6ce4e46caee012cac9c31f9aded2a4314c8e/custom_components/dr_jc03/protocol.py#L95-L102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants