Skip to content
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

Add a force option in PowerDistributingActor Request #321

Closed
leandro-lucarella-frequenz opened this issue Apr 12, 2023 · 0 comments · Fixed by #365
Closed

Add a force option in PowerDistributingActor Request #321

leandro-lucarella-frequenz opened this issue Apr 12, 2023 · 0 comments · Fixed by #365
Assignees
Labels
part:power-management Affects the management of battery power and distribution priority:high Address this as soon as possible type:enhancement New feature or enhancement visitble to users
Milestone

Comments

@leandro-lucarella-frequenz
Copy link
Contributor

What's needed?

Sometimes a power request needs to be forced to implement safety mechanisms, even when some components might be seemingly failing (for example, gap discharge when doing peak shaving, i.e. when we don't have proper consumption information, we want to slowly discharge batteries to prevent potential peak breaches).

Proposed solution

Add a force boolean attribute to Request, so a request for power could be forced even on failing/missing components.

To be able to implement this, we'll need to also cache the last values for the metrics of each battery, so we can build the microgrid API requests still trying to distribute power based on the last known state of the failing/missing batteries.

When force is True, then the PowerDistributingActor should consider all the requested batteries as working, even if the current state says otherwise (for example when critical metrics are missing -have NaN value-, like capacity).

Use cases

The main use case is doing gap discharge when peak shaving.

Alternatives and workarounds

Just make the requests to the microgrid API directly, but that won't distribute the power evenly among the existing batteries.

Additional context

This issue is based on:

There might be some requirement missing, so please have a look at it if finding issues when implementing this.

@leandro-lucarella-frequenz leandro-lucarella-frequenz added priority:high Address this as soon as possible type:enhancement New feature or enhancement visitble to users part:power-management Affects the management of battery power and distribution labels Apr 12, 2023
@leandro-lucarella-frequenz leandro-lucarella-frequenz added this to the v0.21.0 milestone Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:power-management Affects the management of battery power and distribution priority:high Address this as soon as possible type:enhancement New feature or enhancement visitble to users
Projects
Development

Successfully merging a pull request may close this issue.

2 participants