Energy Dashboard with knx sensor

I can not add my Knx sensor to the energy dashboard. In developer tools it looks like

state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
icon: mdi:transmission-tower
friendly_name: Wirkenergie Bezug Total kWh
source: 1.1.8

What’s wrong?

Check the Statistics tab in Developer Tools, there might be a problem with that entity that needs to be fixed. There will be a ‘fix’ button next to it if so.

I could solve it by going to statistics where it had a problem because it has changed from W to kwh

W and kWh are 2 very different things, 1 is just Power and the other is Power usage per hour, you cannot just change them without calculations.

How is your KNX device setup in your configuration.yaml or wherever you made the code for it?