Hi,
I have problems getting long term statistics from a water measure counter.
Here is my configuration:
I build up a ESPHome node with a water pulse meter (each litre 1 pulse) that gives me actual flow rate (litres/min) and actual counter (litres). Actual counter restarts at 0 each time the ESP32 reboots, so I created 3 utility_meter entities (for daily, monthly and yearly total).
Everithing is working as expected.
As I understand each sensor should create long term statistic, but I can only see the total counter going up if I put in the statistic graph; I instead wuold like to have a bar graph with consumpion data for each day/month.
Here is the sensor config in ESPHome:
sensor:
- platform: pulse_counter
pin:
number: 33
mode:
input: true
pullup: true
name: "Portata acqua"
unit_of_measurement: "l/min"
update_interval: 6s
filters:
- debounce: 150ms
- sliding_window_moving_average:
window_size: 10
send_every: 1
total:
unit_of_measurement: 'litri'
name: 'Consumo acqua'
filters:
- multiply: 1.000
and the utility meters config
utility_meter:
acqua_consumata_giorno:
source: sensor.consumo_acqua
name: Consumo acqua odierno
cycle: daily
acqua_consumata_mese:
source: sensor.consumo_acqua
name: Consumo acqua mensile
cycle: monthly
acqua_consumata_anno:
source: sensor.consumo_acqua
name: Consumo acqua annuale
cycle: yearly