-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 docs for new switch platform for bosch alarm #38350
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe Bosch Alarm integration documentation has been updated to include a new category ("Switch") in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant BoschIntegration
participant AlarmPanel
User->>BoschIntegration: Send switch control command
BoschIntegration->>AlarmPanel: Check if output is a remote output
AlarmPanel-->>BoschIntegration: Confirm remote output status
BoschIntegration->>AlarmPanel: Execute Mode 2 API command for switch control
AlarmPanel-->>BoschIntegration: Return output status update
BoschIntegration->>User: Deliver switch state update
🪧 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/bosch_alarm.markdown (1)
45-45
: Remove Trailing Spaces
Static analysis indicates that line 45 contains trailing whitespace. Please remove the extra spaces to conform with markdown linting guidelines (MD009).🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown
(3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
🔇 Additional comments (4)
source/_integrations/bosch_alarm.markdown (4)
6-6
: New Category "Switch" Added to ha_category
The addition of "Switch" in theha_category
list correctly extends the integration’s classification to reflect the new switch functionality.
16-16
: New Platform "switch" Added to ha_platforms
Including"switch"
in theha_platforms
section is consistent with the new feature and follows the naming conventions established by the integration.
39-39
: New "Switch" Entity Added to Provided Entities
The entry- [Switch](#switch)
in the Provided Entities section clearly documents that a switch is created for each output configured on the panel. The hyperlink appears correctly set up.
46-48
: New "Switch" Documentation Section
This section explains the switch functionality well, noting that only outputs with the type set to "remote output" can be controlled via the Mode 2 API. The details enhance clarity for users.
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/bosch_alarm.markdown (1)
45-51
: New "Switch" Section & Trailing WhitespaceThe new section starting with
## Switch
provides valuable details about the switch functionality, including the API limitations. For consistency and to maintain markdown style guidelines, please remove the trailing whitespace on line 45 (MD009).🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown
(3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
🔇 Additional comments (3)
source/_integrations/bosch_alarm.markdown (3)
6-6
: New Category Addition: "Switch"The documentation now includes "Switch" as an additional category in
ha_category
, which aligns with the new Bosch Alarm switch platform. Ensure that related configuration and integration references are updated elsewhere if needed.
16-16
: New Platform Addition: "switch"The
ha_platforms
section now lists "switch". This clearly indicates that the integration supports switch functionality in addition to the traditional alarm control panel. Please verify that the underlying integration code supports this new platform.
39-39
: Provided Entity Update: "Switch"An entry for "Switch" has been added in the Provided Entities section. This documentation now clarifies that a switch is created for each output and will be available for panels with the "remote output" configuration alongside each configured door.
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/bosch_alarm.markdown (1)
45-45
: Remove Trailing Whitespace.Static analysis indicates trailing spaces on this line. Please remove the extraneous whitespace to ensure compliance with markdownlint guidelines.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown
(3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
🔇 Additional comments (4)
source/_integrations/bosch_alarm.markdown (4)
4-7
: Addition of "Switch" in ha_category is appropriate.The YAML header now includes a new category "Switch," which aligns well with the PR objectives and clearly reflects the expansion of the integration's scope.
14-16
: Inclusion of "switch" in ha_platforms is correctly implemented.Adding the "switch" platform ensures that the integration recognizes the new switch functionality. Verify that downstream code handling these platforms expects the lowercase value.
38-39
: Updated Provided Entities List with Switch.The provided entities section now adds a link for "Switch," which contributes to clarity regarding the new feature. Ensure that the link (
#switch
) navigates correctly within the document.
46-50
: New "Switch" Section Documentation is Informative.The added section clearly explains that a switch is created for each output and for each configured door, while noting that only "remote output" types can be controlled via the Mode 2 API. This detailed description meets the documentation standards and aids user understanding.
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, @sanjay900 👍
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/bosch_alarm.markdown (1)
45-45
: Remove Trailing Whitespace
Trailing whitespace detected on line 45 should be removed to comply with Markdown style guidelines (MD009).🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown
(3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
🔇 Additional comments (4)
source/_integrations/bosch_alarm.markdown (4)
4-6
: New Category Addition inha_category
The addition of"Switch"
to theha_category
list clearly aligns with the new switch platform functionality. Please ensure that its naming and purpose remain consistent with Home Assistant documentation standards.
14-16
: New Platform Entry inha_platforms
The inclusion of"switch"
alongside"alarm_control_panel"
is correct and reflects the integration’s expanded capabilities. Confirm that the case and styling follow the project's naming conventions.
38-39
: Provided Entities Update for Switch
The new entry- [Switch](#switch)
in the Provided Entities section correctly links to the dedicated Switch documentation. Verify that the link anchor matches the section header below to ensure smooth navigation.
46-50
: New Switch Section Documentation
The new Switch section clearly details that a switch is created for each output configured on the panel and that only outputs with the type set to remote output can be controlled via the Mode 2 API. Additionally, it notes that a switch is added for each configured door. This documentation is concise and informative; however, ensure it accurately reflects the integration’s behavior and that any special configuration requirements are mentioned if applicable.
…ant.io into bosch_alarm_switch
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 (2)
source/_integrations/bosch_alarm.markdown (2)
45-45
: Remove Trailing Whitespace
A trailing whitespace has been detected on this line (MD009). Please remove the extra space to ensure compliance with markdownlint guidelines.- +🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
46-50
: New Switch Documentation Section
The new "## Switch" section thoroughly explains the switch functionality: it clarifies that a switch is created for each output configured on the panel, notes that only outputs designated as remote output are controllable via the Mode 2 API, and specifies that three switches are added per door for locking, securing, or cycling the door.Consider revising the sentence:
"Three switches are added per door, that allow for locking, securing or cycling the door."
to a more fluid version such as:
"Three switches are added per door to allow locking, securing, or cycling the door."
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown
(3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
45-45: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
🔇 Additional comments (3)
source/_integrations/bosch_alarm.markdown (3)
6-6
: Addition of "Switch" in ha_category
The new "Switch" category is correctly added alongside "Alarm" in theha_category
section. This clearly signals the expanded functionality for the Bosch Alarm integration.
16-16
: Inclusion of "switch" in ha_platforms
The addition of"switch"
in theha_platforms
section follows Home Assistant’s naming conventions (using lowercase for platform identifiers) and correctly indicates support for the switch component.
39-39
: Provided Entity Update: Link to Switch
The new bullet point for[Switch](#switch)
in the Provided entities list properly references the new section added below, ensuring users can easily navigate to details about the switch functionality.
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
♻️ Duplicate comments (1)
source/_integrations/bosch_alarm.markdown (1)
40-42
: Provided Entities Update: New Switch EntryThe provided entities section now includes a link to the "Switch" entity. This change mirrors the functional enhancements indicated in the PR, ensuring end users are aware of the new switch capabilities.
🧹 Nitpick comments (2)
source/_integrations/bosch_alarm.markdown (2)
48-48
: Formatting Issue: Remove Trailing WhitespaceLine 48 contains extraneous trailing whitespace. Removing these spaces will help maintain consistency with markdown formatting standards.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
48-48: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
49-53
: Detailed Switch Section: Clarity and CompletenessThe new "Switch" section comprehensively describes the behavior: a switch is created for each output configured on the panel, and it clarifies that only outputs with the type set to remote output can be controlled via Mode 2 API. It also notes that three switches are added per door for locking, securing, or cycling the door. Please verify that these details accurately reflect the integration's behavior and consider if further clarification is needed to help users differentiate between door-related switches and output switches, if applicable.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown
(3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
48-48: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
🔇 Additional comments (2)
source/_integrations/bosch_alarm.markdown (2)
4-7
: New Category Addition: Verify "Switch" Entry inha_category
The addition of "Switch" to the
ha_category
list aligns well with the PR objectives and clearly communicates the expanded scope of the Bosch Alarm integration. Please confirm that the ordering of categories meets the project's documentation standards.
15-18
: New Platform Addition: Validate "switch" inha_platforms
The new platform "switch" has been added to the
ha_platforms
list. This is consistent with the introduction of switch functionality. Ensure that the integration code supports this platform and that related documentation is updated accordingly.
Proposed change
Add documentation for the new switch platform on the bosch alarm integration.
Switches are added to represent both doors and outputs on the panel.
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
Summary by CodeRabbit
New Features
Documentation