You ask too much for a v1.0 version of an integration. But you can open a Feature Request on github.
Remember that an official integration can never cover all use-cases, but it has to be structured in a flexible way, so that everybody can use data as they prefer. And I think they’re on the right track.
Since data is in the statistics long-term db, I’m sure you will be able to do many things by yourself, with grafana and other tools.
Hi all.
I have few question about this integration that I can’t find answers in documentation.
According to documentation one of the possible state_class values should be “total_increasing” which would be perfect as I assume most energy measuring devices (at least the ones I encountered) provide only cumulative reading for kWh. But I can’t get it to work. Anyone had any luck wit it?
What data does HA expect when state_class i set to “measurement”? I would assume that given that kWh is time related value it would just sum all the measurements over the hour as they come in to get a total for an hour. But I’ve seen people here talking about converting real time W readout to kWh which is not really possible without taking time between measurements into account.
In my opinion, the definition of messurement and total_increasing is ambiguous: for the former they write “accumulated energy consumption” and for the latter “amount of consumed energy”, which practically is the same thing.
I never tried total_increasing, but I think it’d be more appropriate for a lifetime sensor, and probably it would also imply that last_reset is not needed. But if you say it doesn’t work, I’ll stick to measurement+last_reset combo.
They are probably referring to the Riemann sum integral integration to calculate that.
total_increasing only works on the dev versions right now and is scheduled for release with 2021.9, so you’ll need to make sure you are running a dev version for it to work
I think I misunderstood the documentation. I thought that the way Energy integration accumulates data depends on the state_class value. But I just got my first stat in the Energy panel and it looks like it just registered the increase over the time and not the accumulated sensor value.
That is what I would expect from integration like this but the documentation threw me off the track and made me overthink things.
If you know pvoutput.org, it works the same way: when you configure the sensor you specify what kind of sensor it is through those attributes so the integration knows how to interpret and manage the values.
I’m not familiar with pvoutput.org yet but probably will in the near future - we just got our PV system installed and now we are waiting for the grid operator to accept the paperwork and install a new meter so we can get it online. It’s why I started playing with the energy integration (I was initially planing to set up something using template sensors but since it’s there why not use it )
Hi to all,
i’ve just configured my energy panel on Home Assistant.
Like the image below i think there is an issue in solar energy consumed.
I don’t know why but it’s impossibile that i’ve consumed a few watts of solar energy.
I can’t see the values on the image, too small. You should show the Sources table of the energy card, below that one you showed, to see the overall values.
What are the values of the 3 sensors? Are they different vs the card? If the values of the sensors are what you see on the card, the problem is in the sensors.
If production is 12,27kw, you can’t have exported 18,39kw. Your sensors are not calculated correctly.
Can you show me the values of those sensors (grid_import, grid_export, solar_production) and their attributes, from dev tools?
Show me also sensor.shelly_shem_b9e60b_1_current_consumption, what does that Shelly EM sensor measure? Is it a total counter that always increases or instantaneous value? Is it power or energy? The name consumption in the sensor leads me too think you chose the wrong sensors.
Shelly EM has two values: energy and energy returned, and it’s in kWh, not in W.
Those template sensors don’t measure energy but power, as you’re using the power_ac from Fronius.
It’s total chaos.
The Energy Integration needs ENERGY sensors, in kWh, for production, import, and export.
Show me all entities available for that shelly EM device, you need to pick the energy entities, not the power entities. Shelly EM provides both power and energy values, also energy returned.
The Fronius integration should provide energy produced as a total increasing counter, in W normally, but we can see it from the attributes of the sensor. You picked a Power entity from Fronius, not the energy entity.