I was setting up the energy dashboard for someones HA instance and while everything else worked great, I am having trouble adding the gas usage sensor.
The docs say: “Wähle einen Sensor, der den Gasverbrauch in CCF, ft³, m³, GJ, kWh, MJ, MWh, Wh misst.”
So I checked all the sensors provided by the heater and found the perfect one which looks like this:
Only a few sensors show up, all measuring kWh.
I even went so far as to create my own sensor via a template and tried both m3 as well as kWh but even after rebooting they won’t show up either.
Hey, I’ve tried the unit of measurement as you stated (as well as m3 and even kWh) but again, won’t show up.
I had also tried giving it a state class but that won’t work: 'state_class' is an invalid option for 'template'
You need to provide more information on this. I have integrated my gas consumption by calculating my gas consumption based on furnace burner on/off status. I created sensors and everything was recognized in ha energy dashboard.
Sounds like you’re using the legacy template sensor format, which I don’t believe supports defining the state class.
It would be immensely helpful if you posted the full YAML of the template sensor that isn’t working (properly formatted text and not just a screenshot).