Errors while configuring power measurement in energy dashboard

Hello everyone,

I tried to integrate my PV system into the Energy Dashboard. I was able to add the energy values, and that part is working fine.
However, I am having problems with the power measurement:

At the beginning, I had inverted values, so I switched to entities with inverted values.
Later, I switched back to the normal values and selected “inverted” in the dashboard instead.
I deleted the entities with the inverted values.

Now everything should actually be configured correctly, but I am getting the following error message:

Statistics not defined
Some entities currently have no statistical metadata. If these were newly created, it may take up to 5 minutes for the following entities to be generated:
sensor.keller_solaredge_energymeter_ac_power_inverted

Entity not defined
Check the integration or configuration that provides the following:
sensor.keller_solaredge_energymeter_ac_power_inverted

However, these entities do not exist, nor are there any statistics for them, and they should not be used at all.
How can I permanently remove the old entities?

Currently, the dashboard also shows that the produced PV energy and the consumption appear to be identical, and nothing else is displayed, even though power measurements for PV, battery, and grid are configured.

Thanks for your help
Thomas

Hello everyone,

I was finally able to solve my problem myself:

In the pull request introducing the inverted selection (https://github.com/home-assistant/core/pull/160432), I read that an additional entity is created with the same name and the suffix “_inverted”.

However, I already had entities with “_inverted” in their names, which seems to have caused problems. (An error message would have been helpful.)
I then tried completely disabling power measurement, removing everything with “_inverted”, and creating it again from scratch, but that resulted in the same problems.

So I re-enabled SolarEdge’s “_inverted” entities and integrated them into the Energy dashboard as regular entities. Everything is now displayed correctly.

Thomas