pa-pa / AskSinPP

104 stars 71 forks source link

HM-ES-TX-WM: gas counter increases continuosly even if no input #310

Closed soosp closed 1 year ago

soosp commented 1 year ago

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.

JurgenO commented 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

soosp commented 1 year ago

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.

soosp commented 1 year ago

HM-ES-TX-WM

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.

soosp commented 1 year ago

HM-ES-TX-WM_2

Some minutes later...

jp112sdl commented 1 year ago

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...

soosp commented 1 year ago

Thanks for the idea! It works with my CCU/RaspberryMatic. Only the Consumption value is strange for me. How is it calculated?

soosp commented 1 year ago

Meanwhile I got that consumption unit is wrong in CCU. It should be m³/h.