-
Notifications
You must be signed in to change notification settings - Fork 46
Fix/scheduling/sign #1348
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
base: main
Are you sure you want to change the base?
Fix/scheduling/sign #1348
Conversation
Signed-off-by: F.N. Claessen <felix@seita.nl>
…default should be False Signed-off-by: F.N. Claessen <felix@seita.nl>
…duling/sign # Conflicts: # flexmeasures/api/v3_0/sensors.py
Documentation build overview
Show files changed (4 files in total): 📝 4 modified | ➕ 0 added | ➖ 0 deleted
|
…en PR #1348) Signed-off-by: F.N. Claessen <felix@seita.nl>
* feat: add `--dry-run` option to `flexmeasures add schedule` Signed-off-by: F.N. Claessen <felix@seita.nl> * style: flake8 (ignore instead of refactor, to avoid conflicts with open PR #1348) Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: main changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: CLI changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * style: add extra linebreak to better distinguish message from sensor output (especially in case of multiple sensors) Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: fix incorrect PR number in changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: update patch release month Signed-off-by: F.N. Claessen <felix@seita.nl> --------- Signed-off-by: F.N. Claessen <felix@seita.nl>
|
Okay, so this needs a migration script (as part of the main TODOs), does it not? |
|
A test plan:
|
|
I ran step 1: schedules look good when the HEMS script is run with that PR activated. |
|
I ran step 3: as expected, clients without the The test excluded clients with the
|
|
Thanks for doing this sizable step! Can you indicate what the situation in the V2GLiberty power sensors actually was w.r.t. I got a question about signs from a hoster just this afternoon (he wondered about the sign of solar data in the tutorial). Maybe this PR could also help clear up where we'd expect which one of our two perspectives. We only have some API documentation saying we take the Prosumer/Asset perspective in schedules/ the API. This PR also switches between these two perspectives - and that is why there are two places where it changes the if statements that might apply We don't even have clear names and descriptions yet, I believe this is the state of things (correct me if I'm wrong, the more I think the more I believe I might be):
I'll gladly have a quick session on this so we can give others one clear section in the docs (if I and the host haven't missed it). |
|
(I will gladly write the docs section if needed) |
They did not have it set.
I recommend an extra step: checking the tutorial results against this PR. Maybe we now actually need to set the attribute for a couple (or all) of the sensors.
This should be correct, including the USEF reason, as far as I remember and according to our own docs (from your link). Our new forecast endpoint is not USEF-like, and we used to have separate endpoints for getting and posting Prognoses, as described by USEF, which did follow USEF sign convention, but these have been sunset years ago.
I don't think this can be a quick session, at least not yet. I am still in the process of scoping how much of a breaking change this PR represents, and trying to document that on this PR. Two extra things to be mindful of:
|
|
Then we should discuss the documentation as a last step of this endeavor. |
|
Is it an option for the future that we stop flipping the sign for schedules, to simplify how we treat data? I feel it has more costs than benefits. Maybe for one version or so we can have a setting for hosts to keep it the old way for them. |
I don't see how this would work. The scheduler needs to have some concept of what is up and down when it applies prices, because it is trying to minimize costs. |
Description
documentation/changelog.rstLook & Feel
Work in progress: before / after.
How to test
This needs a plan for testing on multiple servers.
Further Improvements
update timed_belief set event_value = -event_value where sensor_id=1 and source_id in (1, 2, 3) and event_start>='2022-12-24T14:00+02:00' and event_start<'2025-10-01T15:00+02:00;Maybe use
sensor.sourcesto find out the sources of the"scheduler"type.Related Items
Closes #1345.