Hey everyone,
I have set up my home assistant and installed a (hall effect) water-meter sensor to my house’s main water pipe.
I managed to make the sensor work with HASS with the following code:
- platform: statistics
entity_id: binary_sensor.Watermeter
name: watermeter
(this is in my sensor.yaml file)
And this:
- platform: rpi_gpio
ports:
5: #Watermeter
(in my binary_sensors.yaml file)
Both files are called in the configuration.yaml file.
This configuration enables the sensor icon, which adds up the pulses of the water meter and displays them into my front end.
Why i need your help and guidance:
- I need two separate counters, one to live display the current consumption rate, and one that would reset every day at XX time
- I need a way to turn pulses into Liters, which means i would need the displayed amount to be substracted by xxx ( i think in my case is 225) in order to have an understandable indication.
- i would love to have all those numbers show up (they dont currently) in my History tab, and be able to have statistics (select date like in the picture below) or even be able to set the time frame and have a report of the total consumption between those two dates.
Here is what i have set up right now with temperature and my Electricity consumption (the two upper graphs) and i would like water consumption to be displayed this way, with the added features above (if possible)
Edit (additional info): When setting up the sensor with the statistics platform, it seems to be keeping my system very busy (the sensor would add pulses to the total constantly - which is normal as it should increase about 230 pulses per liter consumed). Is there any way to achieve the aforementioned targets while keeping the system usage as low as possible?
Any help or reading material would be very helpful,
Regards,
K