Why does the Energy Dashboard show not all entities?

Hi together,

i’m new into Home Assistant and have a problem with the intergation of my Tasmota grid data into the energy dashboard.

After ha received the data from my electricity meter with the Tasmota reading head I wanted to view this data in the energy dashboard.

To view this 3 values i modified the configuration.yaml

>   - sensor: (this one works fine and is available in the energy dashboard)
>     # Stromzähler Erzeugung
>       - name: "Stromzähler Erzeugung"
>         unique_id: "StromErzeugung"
>         unit_of_measurement: 'kWh'
>         device_class: "energy"
>         state_class: "total_increasing"
>         state: >-
>             {{ float(states('sensor.tasmota_strom_erzeugung')) | round(3) }}
>            
>   - sensor: (this one does not appear in the energy dashboard)
>     # Stromzähler Leistung
>       - name: "Stromzähler Leistung"
>         unique_id: "StromLeistung"
>         unit_of_measurement: 'kWh'
>         device_class: "energy"
>         state_class: "total_increasing"
>         state: >-
>             {{ float(states('sensor.tasmota_strom_leistung_akt')) | round(3) }}

Maybe important: i changed in the Tasmota meter the name from
power_cu → leistung_akt.
After that the old "sensor.tasmota_strom_power_cu does not appear anymore in the entities. So far so good. This old sensor is now in the energy dashboard. But the new one does not appear although it is available in the entities.

Can i reset the energy dashboard or how do i delete this old sensor and what is the problem that the new sensor (Stromzähler Leistung)

Thank you

Are these below each other in your configuration.yaml?

Duplicating - sensor: is probably generating an error.
Did you do “Check config” in the developer tools?

I assume you need to format your code like:

template:
  - sensor:
    - name: "Stromzähler Erzeugung"
      # ...
    - name: "Stromzähler Leistung"
      # ...

Thanxs so far. I found out, that this was only a template.

After i deleted this sensor in the configuration, i had the chance to delete it also in the entities. Now everything is fine and i can start the next project to integrate my PV Growatt modbus .