-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Document HEOS play queue feature #38210
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. |
📝 WalkthroughWalkthroughA new section titled “Play a queue item” has been added to the HEOS integration documentation. This section explains how to use the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant HA as Home Assistant
participant HI as HEOS Integration
participant HP as HEOS Device
U->>HA: Call heos.get_queue to retrieve current queue
HA->>HI: Process get_queue request
HI->>HP: Fetch queue data
HP-->>HI: Return queue data
HI-->>HA: Provide queue data to user
U->>HA: Call media_player.play_media with media_content_type: "queue", media_content_id: index
HA->>HI: Process play_media command
HI->>HP: Command HEOS Device to play queue item at given index
HP-->>HI: Acknowledge play command
HI-->>HA: Confirm command success
📜 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/_integrations/heos.markdown (1)
181-196
: Enhance Documentation Clarity in the "Play a queue item" section.
The new section is clear and follows a similar format to existing examples. The example code snippet and accompanying table are well formatted and provide a good overview of how to use themedia_player.play_media
action with thequeue
media content type.A minor suggestion: Consider adding a brief note that explicitly states the queue index in
media_content_id
corresponds directly to the numbering provided by theheos.get_queue
service. This can help users avoid any potential confusion regarding whether the index is zero-based or one-based, even though the text currently mentions "starting from 1".
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.
Thank you, @andrewsayre 👍
Proposed change
Adds documentation and a service call example for playing a HEOS queue item.
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit