Repository navigation
ina2xx_v2: publish on relative change plus heartbeat - #42
Merged
Merged
Conversation
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]>
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]>
Owner
Author
|
localy added |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
change_thresholdpercent (default 1%, minimum step 0.01) instead of a fixed 0.01 on every field.heartbeat_interval(default 30 s, 0 = off) publishes at least that often; fresh data is also sent after boot and MQTT reconnect.INA2XX_CHANGE_THRESHOLD/INA2XX_HEARTBEAT_INTERVALdefines and in the Readme.Changelog
heartbeat_intervalmust stay below the 1800 s HAexpire_after(at0, sensors with steady readings go unavailable).0_15in (brings ina2xx_v2: fix total energy doubling on every boot #33); no conflicts. Compiles for esp32dev with WLED_DEBUG.0_15in (brings ina2xx_v2: retry after I2C errors instead of disabling, fix HA last_reset offset #41); no conflicts. Compiles for esp32dev with WLED_DEBUG.🤖 Generated with Claude Code