🐛 Catch up server bucket revisions on site energy totals (#51) #74
No reviewers
Labels
No labels
v1.0 · bloquant
v1.0 · majeur
v1.0 · mineur
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mat/homeassistant-comwatt!74
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-site-bucket-revisions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Fixes the site-energy half of GitHub issue #51: https://github.com/MateoGreil/homeassistant-comwatt/issues/51
The Comwatt server sometimes revises a completed hourly QUANTITY/HOUR bucket upward after publishing it. The integration folds each bucket exactly once (high-water mark), so upward revisions were never caught up, leaving the site *_total_energy sensors permanently below the server's current values.
Measured on a production instance (site 3349, 8-day audit, Aug 2026): 2 revised buckets caused a permanent drift of −42 Wh (production), −214 Wh (consumption), −173 Wh (withdrawal).
What it does
Not changed
Verification
d76ded7844160b58e3e7WIP: 🐛 Catch up server bucket revisions on site energy totals (#51)to 🐛 Catch up server bucket revisions on site energy totals (#51)