-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Energy Statistics - Update Week/Month for Partial Time Period #65
Comments
Worked it out, in .CPP change the Process code to:
And in the .h change the definitions in energy_data_t to add the full week/month, whilst the existing are used for partial time periods:
@dentra any interest in this? If so, will create a PULL request for you...? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, @dentra
Currently the energy_statistics sensor only starts counting for the week and month, if the device is running as it changes from Sunday to Monday / from the last day of the month to the first day of the month. So for example if you plug in a power sensor on day 2 of the week/month (or even part way through the first day) it won't update the weekly or monthly sensors, instead you have to wait for another week/month to pass before they start update.
Would you know how to change this, so these sensors all initalize and start couning immediately, like the today sensor?
Thanks.
The text was updated successfully, but these errors were encountered: