Individual sensors not found

I need help,
and I hope I have included all the useful details

I would like to insert individual sensor energy into the dashboard.
The sensors are provided by a Zigbee energy meter via MQTT:

I saw that I can use integration (Riemann integral sum) to calculate the energy used by my device, by transforming the w into kwh.
so I did this:

the resulting sensor seems to meet the required requirements
 # power meter out
  - platform: integration
    source: sensor.out_power_ab
    name: powermeter_out_kwh
    unit_prefix: k
    round: 2


The problem is that in the energy dashboard it doesn’t appear among the possible sensors


the energy meter also shows me the consumption of the 2 separate clamps directly in kwh but these too cannot be selected in the energy dashboard.

I can’t understand why I can’t use them?

You need a second sensor to use in the energy dashboard.
Try this as a template sensor:

sensor:
  - name: Powermeter OUT
    state: "{{ states('sensor.powermeter_out_kwh') | float }}"
    unit_of_measurement: "kWh"
    state_class: total_increasing
    device_class: energy
    attributes:
      last_reset: "2024-01-31T18:00:00+00:00"

Cheers
Matt

thanks for the reply

no way,
the sensor works but I don’t show it on the energy dashboard