-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Adjust Satel Integra for config and options flow #37609
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
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. |
Warning Rate limit exceeded@c0ffeeca7 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 14 minutes and 37 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe documentation for the Satel Integra integration has undergone a complete overhaul. The configuration section now references a configuration flow instead of requiring manual YAML entries. Detailed options such as code, partitions, zones, outputs, and switchable outputs have been removed, leaving only a simplified configuration for Host and Port. A new "Settings" section has been added to explain how to manage these settings through the Home Assistant interface. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant HA as Home Assistant UI
participant CF as Configuration Flow
U->>HA: Initiates Satel Integra integration setup
HA->>CF: Requests configuration form
CF->>U: Displays simplified form (Host, Port)
U->>CF: Submits configuration values
CF->>HA: Updates integration settings via UI
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? 🪧 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: 1
🧹 Nitpick comments (3)
source/_integrations/satel_integra.markdown (3)
64-64
: Grammar Correction – Possessive Pronoun
The phrase “Each partition will have it's own alarm panel…” contains an incorrect contraction. It should be “its own alarm panel.” Please update to maintain professional documentation standards.🧰 Tools
🪛 LanguageTool
[uncategorized] ~64-~64: Did you mean “its” (the possessive pronoun)?
Context: ...option forms. Each partition will have it's own alarm panel, each zone and output w...(ITS_PREMIUM)
74-74
: Punctuation and Style Improvement
In the sentence “Afterwards fill in the required fields for each entry type…”, consider adding a comma after "Afterwards" or switching to “Afterward” (as preferred in American English) to improve flow and consistency with style guidelines.
75-75
: Clarification on Deletion Behavior
The sentence on line 75 could be rephrased for clarity. The current wording—“Deleting an entry removes the corresponding entry from the configuration, but the entity will still exist, you will manually have to remove this from the list afterwards.”—might be interpreted as a single run-on sentence. Consider splitting it or adding a semicolon for clarity. For example:“Deleting an entry removes it from the configuration; however, the entity remains and must be manually removed from the list afterward.”
🧰 Tools
🪛 LanguageTool
[locale-violation] ~75-~75: In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects.
Context: ...ually have to remove this from the list afterwards. Having configured the zones and the o...(AFTERWARDS_US)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/satel_integra.markdown
(2 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/satel_integra.markdown
[uncategorized] ~64-~64: Did you mean “its” (the possessive pronoun)?
Context: ...option forms. Each partition will have it's own alarm panel, each zone and output w...
(ITS_PREMIUM)
[formatting] ~73-~73: Consider adding a comma after ‘Afterwards’ for more clarity.
Context: .../eba00284-c9fb-4678-9f46-1e67bd806ab3) Afterwards fill in the required fields for each en...
(CONJUNCTIVE_LINKING_ADVERB_COMMA_PREMIUM)
[locale-violation] ~75-~75: In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects.
Context: ...ually have to remove this from the list afterwards. Having configured the zones and the o...
(AFTERWARDS_US)
⏰ 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 (3)
source/_integrations/satel_integra.markdown (3)
45-46
: Config Flow Inclusion Check
The inclusion of{% include integrations/config_flow.md %}
appears correctly placed to signal the switch from YAML configuration to a configuration flow. Please verify that the referenced file accurately reflects the new integration configuration flow.
56-59
: Addition of the Settings Section
The new "## Settings" section clearly explains that partitions, zones, and outputs are now managed via the Home Assistant UI options. This aligns with the PR objective to simplify configuration. No changes are needed unless further clarification is desired in terms of UI navigation.
60-63
: Partitions, Zones and Outputs Overview
The "### Partitions, Zones and Outputs" heading and accompanying description offer a clear overview of the new management flow using option forms. The content is informative and aligns with the integration’s updated interaction model.
{% configuration_basic %} | ||
Host: | ||
description: The IP address of the Satel Integra ETHM module. | ||
Port: | ||
description: The port on which the ETHM module listens for clients using integration protocol. | ||
required: false | ||
default: 7094 | ||
type: integer | ||
code: | ||
description: User password, it's needed for making use of the switchable_outputs. It's recommended not to use admin password. | ||
required: false | ||
type: string | ||
partitions: | ||
description: List of the partitions to operate on. | ||
required: false | ||
type: [integer, list] | ||
keys: | ||
name: | ||
description: Name of the partition. | ||
required: true | ||
type: string | ||
arm_home_mode: | ||
description: The mode in which the partition is armed when 'arm home' is used. Possible options are `1`,`2` or `3`. For more information on what the differences are between them, please refer to Satel Integra manual. | ||
required: false | ||
default: 1 | ||
type: integer | ||
zones: | ||
description: "This parameter lists the zones (or inputs) that will be visible by Home Assistant. For each zone, a proper ID must be given as well as its name. The name is arbitrary and does not need to match the one specified in Satel Integra alarm configuration." | ||
required: false | ||
type: [integer, list] | ||
keys: | ||
name: | ||
description: Name of the zone. | ||
required: true | ||
type: string | ||
type: | ||
description: The zone type. | ||
required: false | ||
default: motion | ||
type: string | ||
outputs: | ||
description: "Very similar to zones, but with outputs. Satel Integra uses outputs to inform external systems about different events. For example power failure, or that alarm started counting for exit or some other user-defined condition. They may be used for simple alarm-based automation. For more information please refer to Satel homepage and forums." | ||
required: false | ||
type: [integer, list] | ||
keys: | ||
name: | ||
description: Name of the output. | ||
required: true | ||
type: string | ||
type: | ||
description: The type of the device - just for presentation. | ||
required: false | ||
default: motion | ||
type: string | ||
switchable_outputs: | ||
description: "Switchable outputs. These will show up as switches within Home Assistant." | ||
required: false | ||
type: [integer, list] | ||
keys: | ||
name: | ||
description: Name of the output. | ||
required: true | ||
type: string | ||
{% endconfiguration %} | ||
|
||
## Full examples | ||
Code: | ||
description: Optional code that will be used to toggle switchable outputs. | ||
{% endconfiguration_basic %} |
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.
🛠️ Refactor suggestion
Review the Simplified Configuration Block
The new {% configuration_basic %}
block lists three settings: Host, Port, and Code. Note that the PR objectives and AI summary indicate a move to a simplified configuration focusing on Host and Port only. If the “Code” field is no longer required, consider removing it to align with the documentation objectives. Otherwise, update the documentation to clarify its purpose.
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 (3)
source/_integrations/satel_integra.markdown (3)
60-62
: Typographical Correction: Replace “it's” with “its”
In line 62, the phrase “Each partition will have it's own alarm panel…” uses an incorrect possessive form. Changing “it's” to “its” will improve the clarity and correctness of the text.🧰 Tools
🪛 LanguageTool
[uncategorized] ~62-~62: Did you mean “its” (the possessive pronoun)?
Context: ...option forms. Each partition will have it's own alarm panel, each zone and output w...(ITS_PREMIUM)
72-72
: Punctuation Suggestion for Improved Readability
In line 72, consider adding a comma after “Afterwards” in “Afterwards fill in the required fields for each entry type” to enhance readability.
73-73
: Locale Consistency: Review Usage of “afterwards”
In line 73, the word “afterwards” is used. If the documentation’s style guide prefers American English, consider using “afterward” for consistency.🧰 Tools
🪛 LanguageTool
[locale-violation] ~73-~73: In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects.
Context: ...ually have to remove this from the list afterwards. Having configured the zones and the o...(AFTERWARDS_US)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/satel_integra.markdown
(2 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/satel_integra.markdown
[uncategorized] ~62-~62: Did you mean “its” (the possessive pronoun)?
Context: ...option forms. Each partition will have it's own alarm panel, each zone and output w...
(ITS_PREMIUM)
[formatting] ~71-~71: Consider adding a comma after ‘Afterwards’ for more clarity.
Context: .../eba00284-c9fb-4678-9f46-1e67bd806ab3) Afterwards fill in the required fields for each en...
(CONJUNCTIVE_LINKING_ADVERB_COMMA_PREMIUM)
[locale-violation] ~73-~73: In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects.
Context: ...ually have to remove this from the list afterwards. Having configured the zones and the o...
(AFTERWARDS_US)
⏰ 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/satel_integra.markdown (2)
43-43
: Verify the Included Configuration Flow Documentation
The{% include integrations/config_flow.md %}
tag on line 43 now pulls in a shared configuration flow section. Please ensure that the content of this included file is fully up to date with the new integration approach and reflects the updated options flow.
45-52
: Clarify the “Code” Field in the Simplified Configuration Block
The new{% configuration_basic %}
block (lines 45–52) lists fields for Host, Port, and Code. According to the PR objectives and the AI summary, the configuration is intended to be simplified—focusing solely on Host and Port. If the “Code” field is no longer required, consider removing it to align with the updated integration documentation. Otherwise, please update the field’s description to clarify its purpose.
I'm drafting this PR, as changes are needed. Please undraft it, once the changes have been implemented and the PR is ready for review again. |
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/satel_integra.markdown (2)
60-61
: Grammar Correction in Option Forms Description:
In line 61, the sentence “Each partition will have it's own alarm panel…” uses “it's” (a contraction for “it is”) instead of the possessive pronoun “its.” Updating this will avoid a grammatical error.-Each partition will have it's own alarm panel, each zone and output will have a binary sensor and each switchable output will have a switch created. +Each partition will have its own alarm panel, each zone and output will have a binary sensor and each switchable output will have a switch created.
70-70
: Stylistic Improvement for Clarity:
In line 70, consider adding a comma after “Afterwards” to improve readability. Additionally, if the American English style is preferred in your documentation, you might want to use “afterward” instead of “afterwards.”-Afterwards fill in the required fields for each entry type. Saving the options form should automatically generate and/or update the {%term entities %}. +Afterwards, fill in the required fields for each entry type. Saving the options form should automatically generate and/or update the {%term entities %}.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
source/images/integrations/satel_integra/satel_integra_options_flow.png
is excluded by!**/*.png
source/images/integrations/satel_integra/satel_integra_partition_configuration.png
is excluded by!**/*.png
📒 Files selected for processing (1)
source/_integrations/satel_integra.markdown
(2 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/satel_integra.markdown
[uncategorized] ~62-~62: Did you mean “its” (the possessive pronoun)?
Context: ...option forms. Each partition will have it's own alarm panel, each zone and output w...
(ITS_PREMIUM)
[formatting] ~71-~71: Consider adding a comma after ‘Afterwards’ for more clarity.
Context: ...l_integra_partition_configuration.png) Afterwards fill in the required fields for each en...
(CONJUNCTIVE_LINKING_ADVERB_COMMA_PREMIUM)
[locale-violation] ~73-~73: In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects.
Context: ...ually have to remove this from the list afterwards. Having configured the zones and the o...
(AFTERWARDS_US)
🔇 Additional comments (3)
source/_integrations/satel_integra.markdown (3)
43-43
: Review Include Directive:
Line 43 uses the include directive to pull in the configuration flow documentation ({% include integrations/config_flow.md %}
). Ensure that the referenced file exists at the expected location and that this inclusion properly integrates with the overall documentation flow.
45-52
: Review Simplified Configuration Block:
The configuration block introduced between lines 45 and 52 employs the{% configuration_basic %}
tags for the integration settings. While the "Host" and "Port" fields meet the new simplified configuration objectives, the inclusion of a "Code" field may conflict with the PR objective of reducing configuration complexity. Please verify if the "Code" field is still necessary; if not, consider removing it to maintain consistency with the simplified approach.
64-68
: Ensure Image Assets Are Available:
The screenshots referenced in lines 64 and 68 (namely,satel_integra_options_flow.png
andsatel_integra_partition_configuration.png
) should be present in the repository under/images/integrations/satel_integra
. Please confirm that these images have been uploaded accordingly, as previously suggested.
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/satel_integra.markdown (1)
66-70
: Enhance Image References and Text Clarity
Please ensure that the images (satel_integra_options_flow.png
andsatel_integra_partition_configuration.png
) are uploaded into the repository under/images/integrations/satel_integra
as previously requested.Additionally, consider improving the clarity of the instruction by adding a comma and using American English style. For example, in line 69:
-Afterwards fill in the required fields for each entry type. +Afterward, fill in the required fields for each entry type.This adjustment enhances readability and consistency with American English standards.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/satel_integra.markdown
(2 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/satel_integra.markdown
[formatting] ~71-~71: Consider adding a comma after ‘Afterwards’ for more clarity.
Context: ...l_integra_partition_configuration.png) Afterwards fill in the required fields for each en...
(CONJUNCTIVE_LINKING_ADVERB_COMMA_PREMIUM)
[locale-violation] ~73-~73: In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects.
Context: ...ually have to remove this from the list afterwards. Having configured the zones and the o...
(AFTERWARDS_US)
🔇 Additional comments (5)
source/_integrations/satel_integra.markdown (5)
43-43
: Include Updated Configuration Flow
The inclusion of{% include integrations/config_flow.md %}
integrates the external configuration flow instructions. Please verify that the referenced file is current and aligns with the updated configuration process.
45-52
: Simplify the Configuration Block
The{% configuration_basic %}
block currently lists three settings—Host, Port, and Code. According to the PR objectives and AI summary, the configuration should be simplified to focus solely on Host and Port. If the “Code” field is no longer required, please remove it; otherwise, update the description to clarify its relevance.
54-57
: New "Settings" Section Review
The newly added "Settings" section clearly explains how to configure partitions, zones, and outputs through the Home Assistant UI. Confirm that the guidelines accurately reflect the current options flow and UI elements.
58-63
: Heading and Description Consistency
The heading "### Partitions, zones, and outputs" follows the sentence-style capitalization guidelines. The description outlining how entries are managed is clear. Minor rephrasing for brevity could be considered, but overall it meets documentation standards.
75-88
: YAML Example Snippet
The provided YAML automation example is clear and correctly formatted. It effectively demonstrates how the configured entities can be used in an automation.
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, @Tommatheussen 👍
Proposed change
Update documentation for Satel Integra to reflect the config and options flow.
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
New Features
Documentation