-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Document and clarify upstream devices and hierachies #38574
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
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
📝 WalkthroughWalkthroughA new section titled "Upstream devices and hierarchies" has been added to the energy documentation. This section explains the concept of designating upstream devices to create hierarchical relationships among energy-consuming devices, which helps prevent double-counting energy usage. The documentation clarifies that only devices already added as individual devices can be selected as upstream devices, and provides instructions for establishing these relationships. An important note is included to address user confusion regarding the selection of upstream devices. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant EnergyDashboard
User->>EnergyDashboard: Add energy consumption entity as individual device
User->>EnergyDashboard: Select individual device as upstream device for another device
EnergyDashboard-->>User: Establish parent-child device hierarchy
Assessment against linked issues
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
source/_docs/energy/individual-devices.markdown (1)
26-40
: Clarify the example sentence about double-counting.The new section is clear and well-structured, but the example sentence about double-counting could be misread as contradictory. For maximum clarity, consider rewording it as follows (adapting the suggestion from the past review):
-For example, imagine having a breaker monitoring the total energy consumption of a circuit, but also separately tracking individual devices connected to that circuit. Without setting the device hierarchies, Home Assistant might double-count this usage. By setting the hierarchy, it understands these relationships and accurately shows the individual device usage without duplication. +For example, imagine having a breaker monitoring the total energy consumption of a circuit, but also separately tracking individual devices connected to that circuit. Without setting the device hierarchies, Home Assistant might double-count this usage. By setting the hierarchy, Home Assistant understands these relationships and accurately shows the individual device usage without duplication.This makes it clear that the hierarchy prevents double-counting, not causes it.
Otherwise, the section is a valuable and well-written addition!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, otherwise LGTM
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Proposed change
Add some context to device hierarchy in the energy dashboard + fixes feedback from #38567
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit