I would like to measure the water consumption using this water meter
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.
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
With this rule:
Code: Select all
on Gpio#Impulsion do TaskValueSet,2,1,[Compteur#Total]+0.5 endon
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)
I tried all the mode type (falling, rising, change and low) without success
What could be wrong ?
Thank for your advises.