Repository navigation
ina2xx_v2: retry after I2C errors instead of disabling, fix HA last_reset offset - #41
Merged
Merged
Conversation
- A failed init or an INA226 I2C error no longer sets enabled=false (which a settings save would persist); the usermod retries with backoff 30 s..5 min and drops the reading taken with the error. - On the first failure the I2C bus is scanned and every device logged (ported from the local copy). - last_reset: the reset timestamps are local wall-clock seconds, so timestamp_local shifted them by the UTC offset. The template now rebuilds the date in HA's time zone. 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]>
Owner
Author
|
localy added |
KrX3D
pushed a commit
that referenced
this pull request
Nov 19, 2026
…tore Brings in #41. Its last_reset template replaces this branch's (it already treats a missing timestamp as 0); only its 'else none' becomes 'else ''' so HA skips it instead of logging an invalid last_reset. Co-Authored-By: Claude Opus 5.5 <[email protected]>
KrX3D
pushed a commit
that referenced
this pull request
Nov 19, 2026
Brings in #41 so the diff no longer reverts it. No conflicts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 19, 2026
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.
enabled = false(a settings save made that permanent). The usermod retries with backoff from 30 s to 5 min, drops the reading taken with the error, and doesn't count energy across the gap.last_reset: the reset timestamps are local wall-clock seconds, sotimestamp_localput them 1-2 h off. The template now rebuilds the date in HA's time zone; checked in HA with Europe/Berlin, including both DST days. HA and WLED must use the same time zone; on update, HA sees thelast_resetchange once.Changelog
0_15in (brings ina2xx_v2: fix total energy doubling on every boot #33); no conflicts. Compiles for esp32dev with WLED_DEBUG.🤖 Generated with Claude Code