Skip to content

Conversation

@Flix6x
Copy link
Contributor

@Flix6x Flix6x commented May 16, 2024

Description

Schedule an asset using a flex-model that consists of a list of flex-models for individual power sensors.

In this PR:

  • [F] Create new API endpoint
  • [F] Documentation of endpoint
  • [F] Extend battery+PV tutorial
  • [F] Ensure that flexible sensors fall under the asset (inflexible sensors may still come from a different asset)
  • [V] Test scheduling API with 2 flexible sensors

Other work done here, but then moved to #1313 (already on main):

  • [F] Marshmallow validation
  • [F] Unpack flex-model into one flex-model per sensor
  • [V] Dependent scheduling jobs
  • [V] Test scheduling service with 2 flexible sensors

Look & Feel

URI: assets/801/schedules/trigger

Body:

{
    "flex-model" : [
        {"sensor" : 1, "power-capacity" : "1MW"},
        {"sensor" : 2, "power-capacity" : "10kW"},
        {"sensor" : 3, "soc-at-start" : 10.0},
    ],
    "flex-context" : {
        "consumption-price-sensor" : 8,
        "production-price-sensor" : 9,
        "inflexible-device-sensors" : [14, 15]
    }
}

Peek 2025-06-12 10-37

Further Improvements

Created follow-up issues:

Related Items

Closes #485.

Flix6x and others added 17 commits May 17, 2024 09:12
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: Victor Garcia Reolid <[email protected]>
…t; this streamlines the conditions in two places (see #1345)

Signed-off-by: F.N. Claessen <[email protected]>
@Flix6x Flix6x requested a review from nhoening June 16, 2025 15:35
@nhoening
Copy link
Contributor

CLI needs option to set model and context from file (editable?)

I believe this is #1431

Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the improvements.

Only quite minor comments.

Flix6x added 4 commits June 18, 2025 21:57
…api/endpoint-for-scheduling-asset

# Conflicts:
#	documentation/changelog.rst
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
@Flix6x Flix6x requested a review from nhoening June 18, 2025 22:16
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already approve, feel free to use my suggestion and answer my only remaining question.

Happy to see us starting to test this in real cases with the whole stack!

@github-project-automation github-project-automation bot moved this from Review in progress to Reviewer approved in Multi-storage scheduling Jun 20, 2025
Flix6x added 4 commits June 20, 2025 14:34
Signed-off-by: F.N. Claessen <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
…ing-asset' into feature/api/endpoint-for-scheduling-asset
@Flix6x Flix6x merged commit 7fbdeae into main Jun 20, 2025
9 checks passed
@Flix6x Flix6x deleted the feature/api/endpoint-for-scheduling-asset branch June 20, 2025 12:49
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in Multi-storage scheduling Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

API endpoint to allow scheduling on asset level (multiple sensors)

4 participants