Need help configuring water template for beta

HI!

I saw that beta 2022.11 supports this but tried to configure with a DIY ESPHome pulse meter I have without success as the sensor does not apper in Energy dashboard dropdown menu.

That’s the sensor I have created:

  - sensor:
    - name: "Water Usage Total (m3)"
      unique_id: water_usage_sensor_total_m3
      device_class: volume```
      state_class: total_increasing
      unit_of_measurement: "m³"
      state: "{{ states('sensor.water_usage_sensor_total')/1000.0 | float(default=0) }}"

Thanks in advance for your help.

Solved by using

device_class: water

instead of

device_class: volume

Please keep beta discussion in the beta discord channel.