This question can be placed in several categories, but because I am using ESPHome for this, I will put it here.
I have a watermeter, if I am well, it is a Elster V100.
This meter has a hole for a reed contact sensor. In the specs I have found a value of 0,5 liter per pulse.
I have put a reed contact sensor in the hole and connected it to an esp32 board.
With ESPHome I have created a pulse counter to get the used water in m3, so I can read this and connect it also with the energy dashboard.
It is working, but the values are not quit correct.
Every day I check the water meter and the measured value in Home Assistant.
The strange thing is, that the value in Home Assistant is every day 1,4 times volume as shown by the watermeter.
In ESPHome I assigned 0,0005 m3 to one single pulse (0,0005 m3 = 0,5 liter).
But because HA shows 1,4 times the real value, I actually should change the value per pulse to 1 / 1,4 * 0,5 = 0,35714, which seems a strange value to me…
Can someone explain this odd value? I did not set anything for raising or falling edge, so can the problem be with that?
My first guess would be it’s an Imperial/Metric conversion issue. I know you said you found specs giving a metric value, but I wouldn’t be surprised if there’s a version of the same meter for the North American market and perhaps you somehow ended up with one? A quick Google search says Elster is owned by Honeywell, which is definitely an American company.
But like I said, it’s all a guess. If your conversion is working…
I think you are facing the problems I had before… I tried with 5(!) different sensors and ESPhome. the problem is simple… I f the wheel stops right below the sensor or right next to it, it counted “doubles”.
When I installed a homewizard watermeter it workd for me (no esphome).