Open pohly opened 11 months ago
Also not mentioned in the article: the energy dashboard wants sensors that provide energy (Wh), not power (W). "amount of energy flowing through your meter" kind of implies that, but "flowing" could also mean "power" - perhaps it's clearer to a native speaker (which I am not) :sweat_smile:
All of my sensors provide power. I'm solving this by adding helpers which integrate over the values of those sensors, using the default settings for integration - not sure whether those are appropriate.
You are correct in your approach. The Integration - Riemann sum integral helper will be able to take power over time and give an energy value. Leave it for a a couple of hours once it has some data and done a calculation the helper should be available to be added to the energy dashboard.
Feedback
https://www.home-assistant.io/docs/energy/electricity-grid/#manual-integration says:
But what should it be set to?
unit_of_measurement
is obvious, but notdevice_class
andstate_class
.URL
https://www.home-assistant.io/docs/energy/electricity-grid/
Version
2023.10.3
Additional information
I am using the following in my
configuration.yaml
to read values from a Sonnenbatterie 10:state_class
is missing. After some further digging, I found https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics. Further up, that page also explains valid values. Perhaps linkdevice_class
to https://developers.home-assistant.io/docs/core/entity/sensor/#available-device-classes andstate_class
to https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes?