I am not sure how can I accurately count the total water usage. Is it linked to the update_interval ?
I know for a fact the real-time readings are accurate as I am using the same sensor used by the water softener. The values are matching, but the total seems to be inaccurate, way low under what I estimate.
This is the current configuration with the Total inaccurate. Is it correct and my estimation is wrong?
# Water Meter
- platform: pulse_counter
name: 'Water Meter'
id: water_per_hour
pin: GPIO34
unit_of_measurement: "m³/h"
device_class: water
accuracy_decimals: 3
# filters:
# # - multiply: 0.000265
update_interval: 1s
filters:
lambda: return ((x / 3773.584));
total:
name: "Total water consumption"
id: total_water
unit_of_measurement: "m³"
device_class: water
state_class: total_increasing
accuracy_decimals: 5
filters:
lambda: return ((x / 3773.584) / 3600);
I tried to measure it by filling up a bottle
or maybe this should be more accurate(I am planning to test this):
filters:
lambda: return id(total_water).state + (id(water_per_hour).state / 3600);
Is there anything stored on the eeprom? Is there any reason why I should not send updates each second?