I would like to measure the water consumption using this water meter
https://ibb.co/myzmro
This water meter has a built-in ILS switch which is ON during the first half water liter and OFF during the last half water liter.
https://ibb.co/hOh6ro
I use a mini D1 running ESP_Easy_mega-20180708_normal_ESP8266_4096.bin
I have connect the 2 wires, one on the GND and the other on GPIO12 (D6), I have also added a 10Kohms pull up resistance between GPIO12 and PIN 3.3V
I tried 2 kind of devices
1/ Switch input - Switch with dummy device
https://ibb.co/dr6o48
https://ibb.co/cZ7HxT
With this rule:
Code: Select all
on Gpio#Impulsion do
TaskValueSet,2,1,[Compteur#Total]+0.5
endon
https://ibb.co/fdMzBo
The switch input (and rule) gives the same consumption than the water meter. But he Pulse counter gives wrong total value. It's sometimes more and sometimes less than the reality.
(Total from Pulse counter should be divided by 2)
https://ibb.co/k1tqHT
I tried all the mode type (falling, rising, change and low) without success
What could be wrong ?
Thank for your advises.