Skip to content

Make power distributor resilient to battery inverters becoming unreachable#1373

Merged
shsms merged 5 commits intofrequenz-floss:v1.x.xfrom
shsms:power-distribution-failure-resilience
Mar 12, 2026
Merged

Make power distributor resilient to battery inverters becoming unreachable#1373
shsms merged 5 commits intofrequenz-floss:v1.x.xfrom
shsms:power-distribution-failure-resilience

Conversation

@shsms
Copy link
Contributor

@shsms shsms commented Mar 10, 2026

When there are some unreachable battery inverters, their power values are tracked through fallback meters, and if there's any power flowing through these inverters, it is excluded from the power to be set on the working inverters.

shsms added 5 commits March 10, 2026 18:36
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
This is just a place-holder for unreachable power.  It will be
calculated and used in subsequent commits.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
When a battery is unusable because its inverter is unreachable, we
start a formula (with fallback from the component graph) to track its
power.  If the inverter is still functioning but only not reachable
because of a network issue, its power will be excluded from the power
to be distributed.  This makes sure that we don't end up setting more
power than what was requested.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
@shsms shsms requested a review from a team as a code owner March 10, 2026 17:46
@shsms shsms requested review from ela-kotulska-frequenz and removed request for a team March 10, 2026 17:46
@github-actions github-actions bot added part:docs Affects the documentation part:microgrid Affects the interactions with the microgrid labels Mar 10, 2026
Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

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

LGTM.

I guess this is a fix for #1354 and maybe a potential fix for #1342?

@github-project-automation github-project-automation bot moved this from To do to Review approved in Python SDK Roadmap Mar 11, 2026
@shsms
Copy link
Contributor Author

shsms commented Mar 12, 2026

Need to look into 1342, don't remember the issue anymore. Will do later.

@shsms shsms added this pull request to the merge queue Mar 12, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to Branch Protection failures Mar 12, 2026
You're not authorized to push to this branch. Visit "About protected branches" for more information.
@shsms
Copy link
Contributor Author

shsms commented Mar 12, 2026

Looks like I don't have write access anymore @llucax ?

20260312_15h35m31s_grim

@shsms shsms added this pull request to the merge queue Mar 12, 2026
Merged via the queue into frequenz-floss:v1.x.x with commit d9e1f83 Mar 12, 2026
6 checks passed
@shsms shsms deleted the power-distribution-failure-resilience branch March 12, 2026 14:43
@github-project-automation github-project-automation bot moved this from Review approved to Done in Python SDK Roadmap Mar 12, 2026
@shsms
Copy link
Contributor Author

shsms commented Mar 12, 2026

Oh, maybe only temporary.

@llucax
Copy link
Contributor

llucax commented Mar 12, 2026

Looks like I don't have write access anymore @llucax ?

Yeah, GitHub doing the 🦄 , I got the same in another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:microgrid Affects the interactions with the microgrid

Projects

Development

Successfully merging this pull request may close these issues.

Consider power measurements from batteries with non-responsive inverters in power distributor

2 participants