I had created an input_number to track my warm and cold water utility meter. I then create a template sensor that reads the input_number and calculates into the right unit.
I have the same problem. I have been tracking water consumption for a while now, using a sensor which has unit_of_measurement: ‘m3’ and state_class: total_increasing, but it does not show up in the drop down list of the energy dashboard configuration.
edit: Well, I fixed my issue, not sure if yours is related, but apparently I was still stuck on esphome 2022.3.X. The repo changed since 2022.4.0 and I wasn’t aware or alerted. After removing the old integration and installing the new I was updated to Esphome 2022.10.2 and I was able to set device_class to water and was able to add it to the energy dashboard.
Yeah same goes for me. When I use device_class: water, it will trow an error either in the editor or when compiling: “Unknown value ‘water’, did you mean ‘battery’, ‘power’?.”
In other examples it seems that it should be able to take that value for it to become available in the Energy Dash. Any help is appreciated. I can also post the config yaml if requested.
Only just saw your comment. The device_class is specified in the sensor code on the esp device. So you edit it in esphome part of home assistant where you compile it to the device.