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
datetime.now() method consequences for submitted forecasts #8
Comments
I guess that the best thing to do is to pass an extra parameter to the publish command to choose the type of handling of the timestamps from the csv file. Something like a parameter called You could contour these issues with the
I don't get this last bit. According to your explanation if you publish at either 00:35 or 00:55, then you would want to publish the values stored at timestamp 00:30 and not 01:00 as you said? This would be using |
Sorry, my error, I am meaning 00:30, edited original post. |
That would be great a great solution having options for nearest, first & last. |
In the new version a new parameter was added to the configuration. It is named |
method_ts_round addresses this issue. |
One (unintended) consequence of the datetime.now() method results when submitting forecast data.
Consider the data from my energy provider:
Which is represented in HA as the following entities and attributes:
Whilst not impossible to calculate the changing load_cost_forecast, it is confusing as the data it requires changes depending on which 15 minute block it is generated in.
Additionally I would submit the first optimisation including the now value is superior as it includes more data, to base the optimisation on and this is also important for the MPC as it will be called with high frequency (maybe every 5 minutes).
Could I propose that the optimisation should always include the now value as the first element of the forecast list and that for consistency the published optimisation shouldn't map to the closest timestamp (which maybe ahead of behind), but that the published optimisation is always published with the start of the current time step. So if I publish at either 00:05 or 00:25 it will be published for 00:00, if I publish at either 00:35 or 00:55 it will be published for 00:30.
The text was updated successfully, but these errors were encountered: