Water entity not found for Water in Energy Dashboard


I have a problem with getting water into Energy dashboard.
I’m using mqtt sensor to get total reading from my tap water meter:

     - state_topic: "wmbusmeters/40e62b13"
       json_attributes_topic: "wmbusmeters/40e62b13"
       unit_of_measurement: "m³"
       value_template: "{{ value_json.total_m3 }}"
       name: "Zużycie wody"
       icon: "mdi:water-percent"
       state_class: total_increasing

Of course, i’m getting meter readings, but due to some problem, i cant find my mqtt entity in Dialog adding Tap Water sensor.
I was thinking that is due to state_class ,but i’ve already added total_increasing.
What else should be done?

Thanks for any help! :slight_smile:

Just to be sure:

You are on 2022.11

If you hit ‘settings’, ‘Dashboards’ and click ‘energy’ do you have an option to add it?

You have to manually add the ‘water source’ to this Dashboard for it to show up.

I had to add device_class: water

I think mine is bugged.

My Water dashboard shows an entity that I already removed, but the correct ones do not show up.

I have an EspHome with the sensor.

  - platform: template
    device_class: water
    id: lifetime_counter
    name: "Consumo Água Geral"
    unit_of_measurement: "L"
    icon: "mdi:shower-head"
    accuracy_decimals: 1

Then I created another sensor based on this sensor just to check if works, device_class is water on all of them, but on water dashboard none of them is showing.

- platform: template
      friendly_name: "Consumo Água Geral Fix"
      icon_template: mdi:water-circle
      unit_of_measurement: "L"
      device_class: water
      value_template: "{{ states('sensor.consumo_agua_geral') }}"

- platform: template
      friendly_name: "Metros Cúbicos Água Mês"
      value_template: "{{ ( float(states.sensor.agua_consumo_mes_default.state)  / 10000 ) | round(2) }}"
      unit_of_measurement: 'M³'
      device_class: water