Skip to content

v0.3.6

Choose a tag to compare

@Feberdin Feberdin released this 06 Mar 13:44
· 3 commits to main since this release

Added

  • Gap reconciliation for MQTT disconnects in energy accumulators.
  • Connection sensor now exposes gap metadata (last_gap_started_at, last_gap_ended_at, last_gap_seconds, gap_event_id).
  • Diagnostics now include gap reconciliation metadata.

Changed

  • Energy accumulation during reconnect no longer assumes last power for the full offline duration.
  • For detected gaps, estimated gap energy is calculated via trapezoidal interpolation between last pre-disconnect power and first post-reconnect power.

Safety

  • Gap reconciliation only applies for outages between 60 seconds and 6 hours.
  • Longer outages are logged and skipped to avoid unrealistic corrections.