github lnagel/hass-eaton-ups-mqtt v0.5.0

3 hours ago

Measurement update interval

The Network-M2/M3 card publishes measurements continuously, and until now every message was written straight through to Home Assistant. On a Network-M2 that produced roughly 11,600 recorder rows per hour for a single UPS, growing the database quickly (#95).

Press Configure on the integration card to set a measurement update interval — the minimum time between recorded measurement updates.

  • Range 0–300 seconds, default 5 seconds, 0 disables throttling entirely.
  • Status changes and alarms are never delayed. On battery, low battery, operating mode and every other non-measurement topic are written through immediately regardless of the interval.
  • Changing the interval takes effect straight away, without reconnecting to the UPS.

Measured on a Network-M2:

Interval Rows/hour Reduction
0 (off) 11,605
5s (default) 10,472 10%
15s 5,788 50%
30s 3,369 71%
60s 1,845 84%
120s 510 96%

The 5s default is deliberately conservative so existing installations behave much as before. If you are affected by database growth, 30–60s is the setting you want.

Long-term statistics remain accurate at any interval, because Home Assistant computes a time-weighted mean. Longer intervals do reduce the resolution of the 5-minute min/max values, so brief spikes may be missed.

If you previously excluded these sensors in recorder:, consider removing those excludes and shortening purge_keep_days instead — excluded entities get no long-term statistics at all, so excluding them discards the power history permanently.

What's Changed

  • Add configurable debounce interval for measurement updates by @lnagel in #96

Full Changelog: v0.4.2...v0.5.0

Don't miss a new hass-eaton-ups-mqtt release

NewReleases is sending notifications on new releases.