Skip to content

Update shelly docs to make it clear that active Bluetooth connections cannot be proxied #38761

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

Merged
merged 1 commit into from
Apr 26, 2025

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Apr 26, 2025

Proposed change

Clarify Shelly documentation: active Bluetooth connections cannot be proxied. Shelly devices currently only support proxying Bluetooth advertisement data. This update addresses user confusion, as many users purchase multiple Shelly devices expecting them to proxy active connections and control Bluetooth devices.

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

  • Link to parent pull request in the codebase:
  • Link to parent pull request in the Brands repository:
  • This PR fixes or closes issue: fixes #

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

Summary by CodeRabbit

  • Documentation
    • Clarified Bluetooth proxy support for Shelly Gen 2 and newer devices, excluding battery-powered models.
    • Added an informational tip explaining that active (GATT) Bluetooth connections are not supported.
    • Included a reference link to the Bluetooth integration documentation for further details.

@home-assistant home-assistant bot added the current This PR goes into the current branch label Apr 26, 2025
Copy link

netlify bot commented Apr 26, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 1907384
🔍 Latest deploy log https://app.netlify.com/sites/home-assistant-docs/deploys/680d3c74388dc10008cf9ea7
😎 Deploy Preview https://deploy-preview-38761--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bdraco bdraco marked this pull request as ready for review April 26, 2025 20:08
Copy link
Contributor

coderabbitai bot commented Apr 26, 2025

📝 Walkthrough

Walkthrough

The documentation for the Shelly integration's Bluetooth support was updated for clarity and completeness. The revised text specifies that Shelly Gen 2 and newer devices, excluding battery-powered ones, can serve as Bluetooth proxies for forwarding advertisement data. It also adds a tip clarifying that these devices do not support proxying active (GATT) Bluetooth connections and includes a reference link to related Bluetooth integration documentation.

Changes

File(s) Change Summary
source/_integrations/shelly.markdown Updated Bluetooth support documentation for Shelly integration: clarified device capabilities, added a tip about GATT connection limitations, and included a reference link for further information.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ShellyDevice
    participant BluetoothIntegrationDocs

    User->>ShellyDevice: Reads documentation on Bluetooth proxy support
    ShellyDevice-->>User: Clarifies advertisement data forwarding capability
    ShellyDevice-->>User: Shows tip about no GATT proxy support
    User->>BluetoothIntegrationDocs: Follows reference link for more details
Loading

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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 (2)
source/_integrations/shelly.markdown (2)

95-96: Clarify scanning terminology to avoid confusion

The phrase “active listening” could be misinterpreted as active (GATT) connection proxying. Since this refers to advertisement scanning modes, consider renaming to something like:

-Shelly Gen 2 and newer devices (excluding battery-powered models) can act as Bluetooth proxies, forwarding advertisement data. You can enable either active or passive listening through the device’s options flow.
+Shelly Gen 2 and newer devices (excluding battery-powered models) can act as Bluetooth proxies, forwarding advertisement data. You can enable either active or passive advertisement scanning through the device’s options flow.

This will reduce ambiguity when combined with the following tip.


97-99: Enhance GATT acronym clarity

The tip is helpful, but readers may not know what “GATT” stands for. Consider expanding the acronym on first use:

-{% tip %}
-Shelly devices do **not** support proxying active (GATT) connections.
-{% endtip %}
+{% tip %}
+Shelly devices do **not** support proxying active Bluetooth connections (Generic Attribute Profile, GATT).
+{% endtip %}

This improves accessibility for newcomers.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 78ceca8 and 1907384.

📒 Files selected for processing (1)
  • source/_integrations/shelly.markdown (1 hunks)
🔇 Additional comments (1)
source/_integrations/shelly.markdown (1)

101-101:

✅ Verification successful

Verify the documentation link anchor

Please confirm that the anchor #remote-adapters-bluetooth-proxies exists in the Bluetooth integration docs; a broken link will frustrate users. You can run:

Expect to see a header followed by a matching ID.


🏁 Script executed:

#!/bin/bash
# Verify that the anchor for remote adapters exists in the Bluetooth integration docs
rg -n '^#+\s*Remote Adapters' -A2 $(fd -t f 'bluetooth.md')

Length of output: 59


🏁 Script executed:

#!/bin/bash
# Locate the Bluetooth integration markdown file and verify the 'Remote Adapters' header (and implied anchor)
file=$(fd -t f -e markdown bluetooth)
echo "Inspecting: $file"
rg -nE '^#{1,6}\s*Remote Adapters' -A2 "$file"

Length of output: 1529


🏁 Script executed:

#!/bin/bash
# Inspect the Bluetooth integration markdown for the 'Remote Adapters (Bluetooth Proxies)' heading
file="source/_integrations/bluetooth.markdown"
echo "Inspecting headings in: $file"
rg -n '^#{1,6}' "$file"
echo
echo "Context around 'Remote Adapters':"
rg -n -C1 'Remote Adapters' "$file"
echo
echo "Context around 'Bluetooth Proxies':"
rg -n -C1 'Bluetooth Proxies' "$file"

Length of output: 2276


Link anchor validated in Bluetooth integration docs

The heading

## Remote adapters (Bluetooth proxies)

exists at line 271 in source/_integrations/bluetooth.markdown, which generates the anchor #remote-adapters-bluetooth-proxies. The documentation link is correct—no changes needed.

@bdraco
Copy link
Member Author

bdraco commented Apr 26, 2025

thanks

@bdraco bdraco merged commit 6d74644 into current Apr 26, 2025
9 checks passed
@bdraco bdraco deleted the bdraco-patch-10 branch April 26, 2025 20:14
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
current This PR goes into the current branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants