Skip to content
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

Add go2rtc #34998

Draft
wants to merge 6 commits into
base: next
Choose a base branch
from
Draft

Add go2rtc #34998

wants to merge 6 commits into from

Conversation

edenhaus
Copy link
Contributor

@edenhaus edenhaus commented Oct 1, 2024

Proposed change

Add go2rtc documentation

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

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

  • New Features

    • Introduced the go2rtc integration, allowing users to connect to a WebRTC proxy for camera feeds.
    • Provided detailed configuration flow instructions for different Home Assistant installation types.
  • Documentation

    • Added references and guidance for users on setting up the go2rtc integration.

@home-assistant home-assistant bot added Hacktoberfest An PR on this issue (or the PR itself) is eligible towards Hacktoberfest! has-parent This PR has a parent PR in a other repo next This PR goes into the next branch labels Oct 1, 2024
Copy link

netlify bot commented Oct 1, 2024

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit f30581f
🔍 Latest deploy log https://app.netlify.com/sites/home-assistant-docs/deploys/66fe461ebf5d300008a6be0e
😎 Deploy Preview https://deploy-preview-34998--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.

@edenhaus edenhaus mentioned this pull request Oct 1, 2024
13 tasks
@edenhaus edenhaus marked this pull request as ready for review October 1, 2024 08:27
Copy link
Contributor

coderabbitai bot commented Oct 1, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The changes introduce the go2rtc integration for Home Assistant, which allows users to connect to a go2rtc instance for WebRTC proxying of camera feeds. The documentation includes setup instructions tailored to different Home Assistant installation types, specifying automatic detection for users with preinstalled binaries and manual setup requirements for Home Assistant Core users.

Changes

File Change Summary
source/_integrations/go2rtc.markdown Added new integration documentation for go2rtc, detailing configuration flow and setup instructions for various Home Assistant installations.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant HomeAssistant
    participant go2rtc

    User->>HomeAssistant: Initiate go2rtc integration
    HomeAssistant->>go2rtc: Connect to go2rtc instance
    go2rtc-->>HomeAssistant: Provide WebRTC proxy for camera feeds
    HomeAssistant-->>User: Stream camera feeds
Loading

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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 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: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between ea47493 and 6c43975.

📒 Files selected for processing (1)
  • source/_integrations/go2rtc.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/go2rtc.markdown

[uncategorized] ~26-~26: “than” (as in: greater than) seems less likely than “then” (at that time, later on).
Context: ...nning {% term "Home Assistant Core" %}, than you need to setup a go2rtc instance and...

(AI_HYDRA_LEO_CP_THAN_THEN)


[grammar] ~26-~26: The word “setup” is a noun. The verb is spelled with a space.
Context: ...me Assistant Core" %}, than you need to setup a go2rtc instance and provide the URL i...

(NOUN_VERB_CONFUSION)

🪛 Markdownlint
source/_integrations/go2rtc.markdown

23-23: Expected: 0 or 2; Actual: 4
Trailing spaces

(MD009, no-trailing-spaces)


27-27: null
Bare URL used

(MD034, no-bare-urls)

🔇 Additional comments (2)
source/_integrations/go2rtc.markdown (2)

14-16: LGTM: Clear introduction and proper use of templates.

The introduction succinctly explains the purpose of the go2rtc integration, and the use of templates is correct. The inclusion of the configuration flow template is appropriate for guiding users through the setup process.


1-12: Verify release version and consider specific codeowners.

The YAML front matter looks good overall. However, there are two points to consider:

  1. The ha_release is set to 2024.11, which is in the future. Please confirm if this is the intended release version.
  2. The ha_codeowners is set to '@home-assistant/core'. Consider adding specific individuals or a more specialized team as codeowners for this integration.

To check if there are any other integrations with future release dates:

✅ Verification successful

ha_release confirmed as intended for the upcoming release.

The ha_release is set to 2024.11, which is appropriate for the planned release of the go2rtc integration. Additionally, no other integrations have future release dates, ensuring consistency across the codebase.

Consider specifying more detailed codeowners to improve ownership clarity for this integration.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for other integrations with future release dates

rg --type yaml 'ha_release: 202[4-9]' source/_integrations/

Length of output: 61

Comment on lines +26 to +28
If you are running {% term "Home Assistant Core" %}, than you need to setup a go2rtc instance and provide the URL in the config flow.
Please refer to https://github.com/AlexxIT/go2rtc/

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Address grammatical issues and format URL properly.

There are a few issues in this section that need to be addressed:

  1. There's a grammatical error on line 26. "than" should be "then".
  2. On line 26, "setup" should be "set up" when used as a verb.
  3. The URL on line 27 should be formatted as a proper Markdown link.

Please apply the following changes:

- If you are running {% term "Home Assistant Core" %}, than you need to setup a go2rtc instance and provide the URL in the config flow.
- Please refer to https://github.com/AlexxIT/go2rtc/
+ If you are running {% term "Home Assistant Core" %}, then you need to set up a go2rtc instance and provide the URL in the config flow.
+ Please refer to [go2rtc GitHub repository](https://github.com/AlexxIT/go2rtc/) for more information.

These changes will improve the grammar and make the documentation more consistent with Markdown best practices.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
If you are running {% term "Home Assistant Core" %}, than you need to setup a go2rtc instance and provide the URL in the config flow.
Please refer to https://github.com/AlexxIT/go2rtc/
If you are running {% term "Home Assistant Core" %}, then you need to set up a go2rtc instance and provide the URL in the config flow.
Please refer to [go2rtc GitHub repository](https://github.com/AlexxIT/go2rtc/) for more information.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~26-~26: “than” (as in: greater than) seems less likely than “then” (at that time, later on).
Context: ...nning {% term "Home Assistant Core" %}, than you need to setup a go2rtc instance and...

(AI_HYDRA_LEO_CP_THAN_THEN)


[grammar] ~26-~26: The word “setup” is a noun. The verb is spelled with a space.
Context: ...me Assistant Core" %}, than you need to setup a go2rtc instance and provide the URL i...

(NOUN_VERB_CONFUSION)

🪛 Markdownlint

27-27: null
Bare URL used

(MD034, no-bare-urls)

Comment on lines 18 to 24
If you are running Home Assistant with

- {% term "Home Assistant Operating System" %}
- {% term "Home Assistant Supervised" %}
- {% term "Home Assistant Container" %}

than the go2rtc binary is already preinstalled in the container and the config flow will pick it automatically.
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix grammatical error and remove trailing space.

The installation instructions are clear, but there are two minor issues to address:

  1. There's a grammatical error on line 24. "than" should be "then".
  2. There's a trailing space on line 23.

Please apply the following changes:

- than the go2rtc binary is already preinstalled in the container and the config flow will pick it automatically.
+ then the go2rtc binary is already preinstalled in the container and the config flow will pick it automatically.

Also, remove the trailing space at the end of line 23.

Committable suggestion was skipped due to low confidence.

🧰 Tools
🪛 Markdownlint

23-23: Expected: 0 or 2; Actual: 4
Trailing spaces

(MD009, no-trailing-spaces)

c0ffeeca7
c0ffeeca7 previously approved these changes Oct 1, 2024
Copy link
Contributor

@c0ffeeca7 c0ffeeca7 left a comment

Choose a reason for hiding this comment

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

Thank you, @edenhaus 👍

@c0ffeeca7 c0ffeeca7 added the awaits-parent Awaits the merge of an parent PR label Oct 2, 2024
source/_integrations/go2rtc.markdown Outdated Show resolved Hide resolved

than the go2rtc binary is already preinstalled in the container and the config flow will pick it automatically.

If you are running {% term "Home Assistant Core" %}, than you need to setup a go2rtc instance and provide the URL in the config flow.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
If you are running {% term "Home Assistant Core" %}, than you need to setup a go2rtc instance and provide the URL in the config flow.
If you are running {% term "Home Assistant Core" %}, you need to setup a go2rtc instance and provide the URL in the config flow.

Copy link
Member

Choose a reason for hiding this comment

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

We should explain a bit more what URL this is.

@home-assistant home-assistant bot marked this pull request as draft October 3, 2024 07:11
@home-assistant
Copy link

home-assistant bot commented Oct 3, 2024

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot added the parent-merged The parent PR has been merged already label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaits-parent Awaits the merge of an parent PR Hacktoberfest An PR on this issue (or the PR itself) is eligible towards Hacktoberfest! has-parent This PR has a parent PR in a other repo next This PR goes into the next branch parent-merged The parent PR has been merged already
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants