Skip to content

Comments

feat: add state-of-charge sensor to flex-model#1392

Merged
victorgarcia98 merged 27 commits intomainfrom
feature/plannin/save-soc
Apr 2, 2025
Merged

feat: add state-of-charge sensor to flex-model#1392
victorgarcia98 merged 27 commits intomainfrom
feature/plannin/save-soc

Conversation

@victorgarcia98
Copy link
Contributor

Description

This PR introduces the field state-of-charge, a sensor to save the state of charge associated with an schedule. In the future, we could use this sensor to get the starting SOC.

Related Items

This PR is based on the work of #1018 but it starts from scratch given the recent changes on multi asset scheduling.


  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@nhoening
Copy link
Contributor

So the scheduler saves SoC planning to this sensor, but we are not yet using it for anything else, like a starting SoC?

That should be clearer in the documentation (on schema and CLI)

Victor Garcia Reolid added 13 commits April 1, 2025 09:31
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@victorgarcia98 victorgarcia98 requested a review from Flix6x April 1, 2025 10:39
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@nhoening nhoening added this to the 0.26.0 milestone Apr 1, 2025
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Almost there. Nice that you included the CLI already, too.

Victor and others added 5 commits April 2, 2025 00:20
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Signed-off-by: Victor <victorgarciareolid98@gmail.com>
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Signed-off-by: Victor <victorgarciareolid98@gmail.com>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Signed-off-by: Victor <victorgarciareolid98@gmail.com>
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Signed-off-by: Victor <victorgarciareolid98@gmail.com>
@victorgarcia98 victorgarcia98 requested a review from Flix6x April 1, 2025 22:30
Victor Garcia Reolid added 2 commits April 2, 2025 00:37
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Nice. This is going to be super helpful. I just found one more potential bug in how the CLI command sets the job kwargs, and please add a changelog entry for 0.26.0.

Victor Garcia Reolid added 3 commits April 2, 2025 10:51
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

🪂

Victor Garcia Reolid added 2 commits April 2, 2025 11:17
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@victorgarcia98 victorgarcia98 merged commit e70878f into main Apr 2, 2025
8 checks passed
@victorgarcia98 victorgarcia98 deleted the feature/plannin/save-soc branch April 2, 2025 11:05
Flix6x added a commit that referenced this pull request Jun 2, 2025
Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x added a commit that referenced this pull request Jun 2, 2025
Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x added a commit that referenced this pull request Jun 2, 2025
* docs: api changelog entry for #1392

Signed-off-by: F.N. Claessen <felix@seita.nl>

* docs: update main changelog entry for #1392

Signed-off-by: F.N. Claessen <felix@seita.nl>

* docs: update month of 0.26 release

Signed-off-by: F.N. Claessen <felix@seita.nl>

---------

Signed-off-by: F.N. Claessen <felix@seita.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Scheduling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants