I have a rain gauge that outputs the measured about of rain in the last minute.
But utility meter will not count two values if the second is the same as the first.
A better way would be to count the total in ESPHome so you don’t have to use delta_values in home assistant.
- platform: pulse_counter
pin: 12 # change to the pin you use
unit_of_measurement: 'mm/min'
name: 'Rain Rate per minute'
filters:
- multiply: 0.30 # pulses x 0.3mm for default interval of 60s
total:
unit_of_measurement: 'mm'
name: 'Total Rain'
filters:
- multiply: 0.3 # 3.3333 pulses per mm
This assumes you get one pulse each time the bucket tips. Rather than flipping from on to off depending on which side the bucket is tipped.
You can then use the total rain sensor in your utility meters without the delta_values option.