#Convert KNX Entity to Long-term statistic values for Energy Dashboard

1 messages · Page 1 of 1 (latest)

vale turret
#

Hi all, I am new to HA and I have nearly everything available on the KNX Bus including PV Energy generation, Battery Charge Level and Battery Load (unloading and loading based on positive or negative value). I have created Sensors for each value but these are not shown in the dropdown list of the energy dashboard. Is there an easy way to add these entities as selectable within the energy dashboard?

hollow hinge
#

Does the sensor have a state_class, a device_class, and a valid unit_of_measurement? (check developer tools -> states if you're unsure)

vale turret
hollow hinge
#

Energy dashboard does not handle any power sensors. You need energy sensor to be added to energy dashboard.

#

If you want to make an energy sensor from this, feed it into a Riemann sum helper.

vale turret
#

You talk about this?`

hollow hinge
#

Yep that's it.

You need to take the integral of power (kW) to get energy (kWh)

#

Or maybe you already have a sensor from somewhere that has total energy.

vale turret
#

My comsumptions from the grid and input into the grid are coming from another integration (Tibber). So these are fine and working perfectly. As my PV manufacturer is Viessmann they have only a paid Cloud API that I am accessing via NodeRed to push it to the BUS. The Viessmann Integration from HA is only for heatpumps and other hardware but not for PV.

#

regarding the Rieman sum: what is the difference between the integration methods?

hollow hinge
#

I believe left is always correct for HA. I don't know why those other options are even there.

vale turret
#

Though adding the helper it does not show up in the dashboard config.

hollow hinge
#

You need to again make sure it has correct state_class, device_class, unit_of_measurement, and possibly wait a few hours for the new statistics to be generated.

vale turret
#

What state, device and unit of measurement would you recommend then?

hollow hinge
#

state_class: total_increasing
device_class: energy
unit_of_measurement: kWh

vale turret
#

with this uom i got a invalid config after loading...

#

whithou the uom i was able to load the config again. But still not selectable from the energy dashboard config.

vale turret
#

@hollow hinge any further idea?

hollow hinge
#

it needs to have unit of measurement. You would need to understand why you got invalid config.

#

did you add the riemann in yaml or via helpers menu? what are the settings