Closed soosp closed 1 year ago
Hi, it worked for me. Are you sure you have connected A0 ? Please see my project description: https://github.com/JurgenO/GasMetering/wiki/%2303:-Build-the-hardware
Yes, sure. It was tested with reed switch and with pure contact too. It seems to be a software problem. If there is no input, the counter remains zero. But if a pulse arrives, the counter starts to increase.
As you can see, only one pulse has arrived, the ratio is 0.01 m3/pulse, and after two periods the counter shows 0.02 m3. The counter was reseted before this test.
Some minutes later...
Afaik, the 2-channel version in this repository only works correctly with FHEM.
For a ccu, I made a "1-channel only" version of the sketch: https://github.com/jp112sdl/Beispiel_AskSinPP/blob/master/examples/HM-ES-TX-WM_CCU/HM-ES-TX-WM_CCU.ino
Give it a try...
Thanks for the idea! It works with my CCU/RaspberryMatic. Only the Consumption value is strange for me. How is it calculated?
Meanwhile I got that consumption unit is wrong in CCU. It should be m³/h.
I tested HM-ES-TX-WM example configured as gas meter in the CCU. There was a reed switch attached to the Arduino pin 14 with proper pull up. When a magnet was approached to the reed switch the counter on the serial debug output displayed and increased properly. But the input in first reporting period wasn't displayed by CCU. From the second period the counter on CCU increases continuosly period by period even if no input.