fmartinou/teleinfo2mqtt

Wrong value retained after a period of consumption stability

fmartinou opened this issue · 1 comments

When the consumption is stable for a while, sometimes this is not the latest value which is published.

Example: EMIT_INTERVAL=10s

  • 01s : 500 VA -> published
  • 02s : 600 VA
  • 03s : 500 VA
  • 04s : 600 VA
  • 05s : 500 VA
  • 06s : 600 VA
  • 07s : 000 VA
  • 08s : 000 VA
  • 09s : 000 VA
  • 10s : 000 VA -> not published because frame[10s] =frame[9s]

So the current value displayed (in home-assistant for example) is 500VA instead of 0VA

Merged in master.
(a64090c)