Water/Gas meter on utility panel

Hello,

I have a water meter done with ESPHome and I would like to add it to energy panel, I have pulses l/min and total, but none show up on the available devices list, what am I missing?
I did not find anything about the requirements for this…

I also have a gas meter, I use bottle gas and have a scale on the bottle, is there a way that I get the bottle/gas weight/usage on the dashboard?

Thanks!

JS

both need to be in m3… L to m3 is pretty doable divide by 1000 in a template.
What is the gas meter, is it kg? thats little more tricky as you need a conversion of Liquid kg to gas m3. (corrected at certain temperature afaik)

Hello,

I think this works…

  - platform: pulse_meter
    pin: 14
    name: "Water Meter"
    id: water_meter
    unit_of_measurement: "l/min"
    device_class: water
    icon: "mdi:water"
    total:
      name: "Water Total"
      id: water_total_id
      device_class: water
      state_class: total_increasing
      unit_of_measurement: "L"
  - platform: template
    id: water_lifetime_counter
    name: "Water Total 2"
    unit_of_measurement: "L"
    state_class: total_increasing
    device_class: water
    icon: "mdi:water"
    accuracy_decimals: 1
    lambda: return (id(water_total_id).state);

Regarding the gas yes it’s kg, and indeed it varies with the temperature, but I’ve also added a temperature sensor in the same place :)…
Has anyone tried to do the math from KG to M3?

Thanks,

Julio Silva

you’ll need to use the conversion for your specific gas . Is it LNG , then 0,829 KG equals 1 m3 afaik. dont see a temp adjustment easily, maybe that is marginal at room temperatures in low volumes.

Julio,

I’m trying to do similar with the ESPHome setup I did earlier this year for tracking water usage. I modified my code to a few changes you suggested above:

 - platform: pulse_meter
    pin:
      number: 13
      mode: INPUT_PULLUP
    internal_filter_mode: "PULSE"
    internal_filter: 100ms
    unit_of_measurement: "gal/min"
    name: "Water Pulse Meter"
    id: water_meter
    device_class: water
    icon: "mdi:water"
    total:
      name: "Water Total"
      id: water_total_id
      device_class: water
      state_class: total_increasing
      unit_of_measurement: "gal"
      icon: "mdi:water"

  - platform: template
    id: water_lifetime_counter
    name: "Water Total 2"
    unit_of_measurement: "gal"
    state_class: total_increasing
    device_class: water
    icon: "mdi:water"
    accuracy_decimals: 1
    lambda: return (id(water_total_id).state);

I still get “No matching statistics found” 12 hours later when I try to add it water to the energy dashboard… I wonder if it’s the L vs gal that’s causing this… The Water Total and Water Total both are counting - showing 73 gal right now.

Any thoughts? thanks in advance!

Dave