Skip to content

Remove sensors from component category and represent the separately#145

Merged
tiyash-basu-frequenz merged 4 commits intofrequenz-floss:v0.x.xfrom
tiyash-basu-frequenz:sensors
Oct 4, 2023
Merged

Remove sensors from component category and represent the separately#145
tiyash-basu-frequenz merged 4 commits intofrequenz-floss:v0.x.xfrom
tiyash-basu-frequenz:sensors

Conversation

@tiyash-basu-frequenz
Copy link
Copy Markdown
Contributor

This update introduces a dedicated RPC method for listing sensors in the microgrid, separating them from the "component" category. This new method allows for optional sensor filtering by ID or category. The change clarifies the term "component" to exclusively refer to electrical equipment like inverters and batteries, while sensors are now treated as a distinct entity.

@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner September 29, 2023 16:07
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Sep 29, 2023
@github-actions github-actions Bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels Sep 29, 2023
@tiyash-basu-frequenz tiyash-basu-frequenz marked this pull request as draft October 2, 2023 06:59
@tiyash-basu-frequenz tiyash-basu-frequenz marked this pull request as ready for review October 2, 2023 07:20
Copy link
Copy Markdown

@thomas-nicolai-frequenz thomas-nicolai-frequenz left a comment

Choose a reason for hiding this comment

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

All good from my side. We should however, clarify that when we say components we mean electrical components!

@tiyash-basu-frequenz
Copy link
Copy Markdown
Contributor Author

We should however, clarify that when we say components we mean electrical components!

@thomas-nicolai-frequenz I added another commit to re-inforce components as electrical components. Ready for another look.

Comment thread proto/frequenz/api/microgrid/microgrid.proto
Copy link
Copy Markdown

@stefan-brus-frequenz stefan-brus-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 pretty good overall, with one reservation

Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
The messages have been organised in a more logical way, in the following
order:
* components
* connections
* parameters for setting power levels
* parameters for setting bounds
* parameters for setting component states

Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
The change aims to clarify the distinction between electrical components
(e.g., inverters, batteries) and sensors (e.g., temperature, humidity).

This commit introduces a new RPC method for listing sensors in the
microgrid, effectively separating them from the "component" category.
This allows for more granular control and filtering of sensors by ID and
category. Additionally, a new RPC method for subscribing to sensor data
is introduced.

Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
In this change, componentts are re-inforced as electrical components,
in the light of the new sensor RPCs.

Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Oct 4, 2023
Merged via the queue into frequenz-floss:v0.x.x with commit b4becfc Oct 4, 2023
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the sensors branch October 4, 2023 12:50
@tiyash-basu-frequenz tiyash-basu-frequenz linked an issue Oct 4, 2023 that may be closed by this pull request
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.

Represent sensors as as their own category

3 participants