KNX energy sensor not appearing under energy management Grid Consumption

Hi. I’m struggling to expose knx energy sensor to the Energy dashboard.
It doesn’t appear under Electricity Grid Consumption dropdown list.

I have set up the sensor as following:

knx sensors:

- name: 3F kogutarbimine kWh
  state_address: "3/0/4"
  type: "energy"
  state_class: total_increasing

customize.yaml:

sensor.3f_kogutarbimine_kwh:
  unit_of_measurement: kWh

What am I missing?

Sensor type “energy” is used for DPT 14.031 with unit Joule.
Looking at your current value I guess this is not the correct DPT. See KNX - Home Assistant

Good point. I thought that by over-riding the unit would make it work.
I did change the sensor configuration as following:

- name: 3F kogutarbimine kWh
  state_address: "3/0/4"
  type: "active_energy_kwh"
  state_class: total_increasing

And canceled the customize over-ride.
Unfortunately I still can’t see the sensor value in the dropdown menu…

Does it have device_class: energy now in the states view? It should be assigned automatically for active_energy_kwh.

yes there is:

hm this seems ok. Maybe the recorder / long term history thing has some wrong information from the earlier config. I don’t know how to reset this though.

I looked at another device which is showing up in the dropdown menu.
It had some additional parameters/attributes which I provided via customize.yaml to the sensor in question as well:

It still didn’t work.
I don’t understand what are the preconditions for the energy dashboard to accept sensor as energy consumption input…

Now sure but dousent Energy need to know the last_reset value to compute? remember reading something about that not long ago.

this is not needed anymore. see New sensor state class: total | Home Assistant Developer Docs