What am I doing wrong here.
My gas and water statistics aren’t found in the energy dashboard, but I can see the statistics and entities in the Developer Tools menu.
Both water and gas are measured via pulse meters on some ESP32s.
Here is the relevant ESPHome yaml:
Water:
- platform: pulse_counter
pin: D1
accuracy_decimals: 2
unit_of_measurement: 'GPH'
update_interval: 1s
name: "Main Water"
id: main_water
icon: mdi:water
filters:
# 330 pulses/L .00303 L/m * 15.8503 to get GPH
- multiply: 0.048031212
total:
unit_of_measurement: gl
name: 'Total Main Water'
id: total_main_water
icon: mdi:water
device_class: water
filters:
# 330 pulses/L 3.78541 L/G
- multiply: 0.0008005217
Gas:
# Gas monitor 1 pulse = 1 Ft3
- platform: pulse_counter
pin:
number: GPIO3
mode:
input: true
pulldown: true
accuracy_decimals: 2
update_interval: 20s
unit_of_measurement: ft³/m
name: "Main Gas"
id: main_gas
icon: mdi:fire
total:
unit_of_measurement: ft³
name: 'Total Main Gas'
id: total_main_gas
icon: mdi:fire
device_class: energy
Entities In Developer Tools menu:
Statistics in Developer Tools menu:
Gas:
Water:
Gas Energy Dashboard:
Water Energy Dashboard:
I’ve tried numerous reboots, and it’s been well over 3 or 4 hours since I touched the entities in the ESPHome yaml. I have modified the ESPHome yaml, but other than that, I’m pulling my hair out trying to figure out why gas and water isn’t showing up in the energy dashboard.