Gas (Heating) Energy in Energy Dashboard


iam new to HA and have succesful managed to configure my Electric Energy Sources to show up in Energy Dashboard aswell as my Water consumption.

But i hang now on Gas.

I have an Heating Energy Meter (german Wärmemengenzähler) no matter how thats called in english correctly :slight_smile:

So i have made Template sensors based on my Thermostats that calculate an actual energy in W per Thermostat and added integrations to convert them to kWh

Now i have Statistics for my heating energy (more or less) matching to my WMZ.

I have tried to set the sensors as device_class: energy aswell as device_class: gas

but they never show up in the Energy Dashboard but there it shows taht also Statistics with W/kWh should be supported…

am i doing something wrong ?

ganz einfach:
falls Du noch was umrechnen musst…dann kannst Du bei Float dann was eingeben. Z.B. da die Impulse nicht kWh sind…wobei die Frage ist dann, wo packt man das sinnvoll ins Dashboard, bei einem Gaszähler…leider gibt es ja keine Rubrik für Wärmemengenzähler
:thinking: W per Thermostat? Was meinst Du damit?

- name: "  Wärmenmengenzähler"
        state: "{{ states('sensor.impulsaufnehmer_so_eg_anschlussraum_counter_c4') | float / 1 * 1 }}"
        unit_of_measurement: kWh
        state_class: total_increasing
        device_class: energy