Skip to content

Fixed tariff peaks on wrong date and time - #1159

Merged
gskjold merged 7 commits into
mainfrom
fix/tariff_peaks_wrong_day
Apr 9, 2026
Merged

gskjold merged 7 commits into
mainfrom
fix/tariff_peaks_wrong_day

Conversation

@gskjold

@gskjold gskjold commented Mar 5, 2026 •

Copy link
Copy Markdown
Member

When meter is sending accumulated values in every payload, the firmware may end up updating the data storage for the 24hr usage at the end of the hour. When passing the hour right after, the value for the new hour will be the same value that was set 24 hours ago. At this moment, the code also updates the peaks, which then uses the value from 24 hours ago as one of the values for that day.

The fix ensures that the data storage can only update right after passing an hour.

@gskjold gskjold added this to the v2.5.7 milestone Apr 9, 2026
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: db22ceb

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold
gskjold merged commit 2c96b4d into main Apr 9, 2026
7 checks passed
@gskjold
gskjold deleted the fix/tariff_peaks_wrong_day branch April 9, 2026 09:42
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