-
Notifications
You must be signed in to change notification settings - Fork 31
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
HA Energy Dashboard #14
Comments
Ah, ok, maybe it's worth taking it into the main readme file ;-) Thank you anyway, great plugin! |
One thing not mentioned here. The Rieman integration also wants to know which of 3 methods to use: Trapezoidal rule, Left Riemann Sum or Right Riemann Sum. |
I would advice to use 'left' as discussed on ha forums here: https://community.home-assistant.io/t/riemann-integral-calculates-wrong-values-with-electrical-devices/328174 this way, you dont sum the spike values you can have from you appliances over to the previous value. also, the sensor updates on change. this means you can assume the wattage was the same since last value until the sensor changed. |
Thanks for doing this integration. I don't yet have a battery, but I'm looking at Sonnen, and it would be really awesome to have this integrated with HA. Because it may confuse people (and this is quite a common cause of confusion), I feel I should point out some errors in what you wrote:
No, energy is not power over time; it's the reverse: power is energy over time. Power is in Watts. Energy is in Watt-hours (Watts x hours), not Watts-per-hour (W/h). But yes, your conclusion is absolutely correct, we need to measure power AND time to get energy.
The answers are correct, but the W/h unit is not. After one hour your fridge used 100Wh (not 100W/h). After 24h it used 2400Wh (24 * 100). If it was Watts/h then the calculation would be 100/24 = around 4.2W/h. There's really no such thing as Watts-per-hour (or W/h or kW/h or MW/h). In this context, it's a meaningless unit. The correct unit is Watt-hours (Wh or kWh, etc). |
@jezzaaa you are right. I hated that in math but its that simple I corrected my description and hope that fits better. |
Out of interest, are you able to share the full YAML code for the dashboard. Thanks. |
You need no YAML-Coding -> https://www.home-assistant.io/integrations/integration/ |
Hardware version = 9 Issue: Any ideas/advice?
|
With the latest firmware updates Sonnen has changed the numbering and thus the names of the variables. So instead of |
For the other ones that "don't exist" check that these aren't just disabled. Happened to me after the firmware upgrade with quite a lot of the sensors. |
Thats better! Let me re-enable the disabled sensors as well, and I'll confirm back here with the correct config if I see data coming in tomorrow. |
Why not use the integrated meter values kwh_imported? I have this available from my sonnenBatterie 8.0eco API endpoint /api/v2/powermeter and I would assume it is available for any later version too. |
Closing since it's pinned for reference anyway ;) |
As this is asked very often:
The Home Assistant Energy Dashboard does not show the entities created by ha_sonnenbatterie.
Thats because this addon does not show any energy(as Watt) values. (Except Battery, maybe...)
We show you Power(!=Energy) values.
Energy is Power Times Time (or as you may know it "WattHour" or KiloWattHour(kwh))
To make values from sonnenbatterie usable in your energy dashboard you have to somewhat "convert" the values.
As Energy is Power timeTime, you need to measure power that is pushed through your home for a certain time.
Example:
You are using a fridge, which is drawing a constant 100W. After one hour your fridge used 100Wh, after 24h it used 2400Wh or 2.4kWh :)
To get to these values you can use the "Riemann integral(https://en.wikipedia.org/wiki/Riemann_integral)" which is an approximation of the used power times time(=energy).
Fortunately, home assistant has a tool for this: The "integration" integration(https://www.home-assistant.io/integrations/integration/)
An example for the energy consumption, calculated over time from the power sensor of the sonnenbatterie:
This yaml creates a sensor for ConsumptionEnergy named "PowerConsumption" with unit kWh and usable in energy-dashboard
EDIT:
correcteded units, thx2 @jezzaaa
The text was updated successfully, but these errors were encountered: