Skip to content

ina2xx_v2: publish on relative change plus heartbeat - #42

Merged
KrX3D merged 4 commits into
0_15from
fix/ina2xx-relative-threshold-heartbeat
Nov 24, 2026
Merged

KrX3D merged 4 commits into
0_15from
fix/ina2xx-relative-threshold-heartbeat

Conversation

@KrX3D

@KrX3D KrX3D commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner
  • MQTT data is published when bus/load voltage, current or power change by more than change_threshold percent (default 1%, minimum step 0.01) instead of a fixed 0.01 on every field.
  • The mA, mW and shunt-mV fields are no longer compared: they are the same readings scaled by 1000 and crossed 0.01 on noise at every 5 s check (about 19% of all HA recorder writes).
  • New heartbeat_interval (default 30 s, 0 = off) publishes at least that often; fresh data is also sent after boot and MQTT reconnect.
  • Both settings are in the usermod settings page, as INA2XX_CHANGE_THRESHOLD / INA2XX_HEARTBEAT_INTERVAL defines and in the Readme.

Changelog

🤖 Generated with Claude Code

KrX3D and others added 4 commits November 14, 2026 13:27
Compare only V/A/W readings against a configurable percent threshold
(default 1%, floor 0.01) and publish at least every heartbeat_interval
seconds (default 30). The mA/mW/shunt-mV fields were crossing the fixed
0.01 threshold on sensor noise at every check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in the PRs merged into 0_15 since this branch was created, so the
diff against 0_15 no longer reverts them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in #41 so the diff no longer reverts it. No conflicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@KrX3D

KrX3D commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

localy added

@KrX3D
KrX3D merged commit c6b28d5 into 0_15 Nov 24, 2026
@KrX3D
KrX3D deleted the fix/ina2xx-relative-threshold-heartbeat branch November 24, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant