Skip to content

Return valid-until timestamps from set-power RPCs#183

Merged
tiyash-basu-frequenz merged 2 commits intofrequenz-floss:v0.x.xfrom
tiyash-basu-frequenz:power_return_durations
Nov 22, 2023
Merged

Return valid-until timestamps from set-power RPCs#183
tiyash-basu-frequenz merged 2 commits intofrequenz-floss:v0.x.xfrom
tiyash-basu-frequenz:power_return_durations

Conversation

@tiyash-basu-frequenz
Copy link
Copy Markdown
Contributor

@tiyash-basu-frequenz tiyash-basu-frequenz commented Nov 20, 2023

The RPCs to set power now return timestamps until which the command will stay in effect. The component's active/reactive power will be set to 0 after this timestamp, if the API receives no further requests to change it before then.

By default, this timestamp will be the current time plus 60 seconds.

@tiyash-basu-frequenz tiyash-basu-frequenz added this to the v0.16.0 milestone Nov 20, 2023
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Nov 20, 2023
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner November 20, 2023 10:42
@github-actions github-actions Bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels Nov 20, 2023
Copy link
Copy Markdown

@matthias-wende-frequenz matthias-wende-frequenz left a comment

Choose a reason for hiding this comment

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

Looks good. I've only some minor comments about the documentation.

Comment thread RELEASE_NOTES.md Outdated
Comment thread RELEASE_NOTES.md Outdated
Comment thread proto/frequenz/api/microgrid/v1/microgrid.proto Outdated
Comment thread proto/frequenz/api/microgrid/v1/microgrid.proto Outdated
This commit allows the RPC `SetComponentPowerActive` to return a
timestamp until which the given power command will stay in effect. After
this timestamp, the component's active power will be set to 0, if the API
receives no further command to change it before then.

Typically, this timestamp will be set to the current time plus 60 seconds.

Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
This commit allows the RPC `SetComponentPowerReactive` to return a
timestamp until which the given power command will stay in effect. After
this timestamp, the component's reactive power will be set to 0, if the API
receives no further command to change it before then.

Typically, this timestamp will be set to the current time plus 60 seconds.

Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
@tiyash-basu-frequenz
Copy link
Copy Markdown
Contributor Author

Needs another approval after rebase.

@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Nov 22, 2023
Merged via the queue into frequenz-floss:v0.x.x with commit 2fe872b Nov 22, 2023
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the power_return_durations branch November 22, 2023 08:08
@tiyash-basu-frequenz tiyash-basu-frequenz removed this from the v0.16.0 milestone Nov 22, 2023
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:protobuf Affects the protocol buffer definition files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return UTC timestamp until when requested power level is valid

3 participants