-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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 Appartme System - new integration documentation #34965
Conversation
It seems that this PR is targeted against an incorrect branch. Documentation updates which apply to our current stable release should target the |
📝 Walkthrough📝 WalkthroughWalkthroughThe changes introduce the Appartme System integration for Home Assistant, allowing users to control their Appartme Main Module via the Appartme PaaS API. The documentation details the prerequisites for integration, configuration steps, and the functionalities supported, including control over lighting, heating, and real-time monitoring of electrical parameters. Several entities are created within Home Assistant to facilitate these controls and monitoring, along with troubleshooting guidance and support resources. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant HomeAssistant
participant AppartmeAPI
User->>HomeAssistant: Configure Appartme Integration
HomeAssistant->>AppartmeAPI: Authenticate and Retrieve Data
AppartmeAPI-->>HomeAssistant: Return Device Status
User->>HomeAssistant: Control Devices (Lighting, Heating, etc.)
HomeAssistant->>AppartmeAPI: Send Control Commands
AppartmeAPI-->>HomeAssistant: Confirm Command Execution
HomeAssistant-->>User: Update Interface with New Status
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 (
|
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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
🧹 Outside diff range and nitpick comments (2)
source/_integrations/appartme.markdown (2)
83-96
: Minor: Improve formatting consistency in Switches section.To maintain consistency with the other sections, consider removing the blank lines between the switch entity descriptions. This will make the formatting uniform across all entity types.
Apply this formatting change:
### Switches - **Switch Entity**: `switch.lighting` - - Control your lighting. - - **Switch Entity**: `switch.sockets` - - Control power to your sockets. - - **Switch Entity**: `switch.water` - - Open or close your water valve. - - **Switch Entity**: `switch.additional_channel` - Control the additional channel connected to your Main Module.
168-170
: Minor: Grammatical improvement in FAQ answer.To improve clarity, consider rephrasing the answer to the question about changing default temperatures.
Apply this change:
### How do I change the default temperatures for comfort and eco modes? -You can adjust the default temperatures by setting the target temperature while in the desired preset mode (`comfort` or `eco`). The integration will use the new temperature as the default for that mode. +You can adjust the default temperatures by setting the target temperature while the thermostat is in the desired preset mode (`comfort` or `eco`). The integration will then use this new temperature as the default for that mode.🧰 Tools
🪛 LanguageTool
[misspelling] ~168-~168: This word is normally spelled with a hyphen.
Context: ...he default temperatures for comfort and eco modes? You can adjust the default temperatur...(EN_COMPOUNDS_ECO_MODES)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- source/_integrations/appartme.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/appartme.markdown
[uncategorized] ~36-~36: Consider adding a hyphen.
Context: ...k the Add Integration button in the bottom right corner. 4. Search for Appartme and ...(TOP_LEFT_CORNER)
[misspelling] ~59-~59: This word is normally spelled with a hyphen.
Context: ...ault temperature values for comfort and eco modes**: - Customize the default target te...(EN_COMPOUNDS_ECO_MODES)
[uncategorized] ~76-~76: Loose punctuation mark.
Context: ...r regular heating schedules. -eco
: For energy-saving heating schedules. ...(UNLIKELY_OPENING_PUNCTUATION)
[misspelling] ~168-~168: This word is normally spelled with a hyphen.
Context: ...he default temperatures for comfort and eco modes? You can adjust the default temperatur...(EN_COMPOUNDS_ECO_MODES)
🔇 Additional comments (4)
source/_integrations/appartme.markdown (4)
1-16
: Verify the release version and consider adding config_flow tag.The release version is set to "2024.10", which is in the future. Please confirm if this is the intended release version or if it should be adjusted to the next upcoming release.
Additionally, if this integration supports config flow (which seems likely given the setup instructions), consider adding the
ha_config_flow: true
tag to the frontmatter.
18-28
: LGTM: Clear introduction and prerequisites.The introduction and prerequisites section provides clear and concise information about the Appartme System integration, including important compatibility notes and necessary credentials.
30-39
: LGTM: Clear configuration instructions.The configuration section provides clear, step-by-step instructions for setting up the Appartme integration through the Home Assistant UI.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~36-~36: Consider adding a hyphen.
Context: ...k the Add Integration button in the bottom right corner. 4. Search for Appartme and ...(TOP_LEFT_CORNER)
128-139
: LGTM: Clear configuration options instructions.The configuration options section provides clear information on how to adjust the update interval, including step-by-step instructions for changing the options.
Thank you for contributing, @MiloszSlabs 👍
|
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
🧹 Outside diff range and nitpick comments (4)
source/_integrations/appartme.markdown (4)
18-28
: LGTM with a minor suggestionThe introduction and prerequisites section is well-written and informative. It clearly outlines what users need to get started with the Appartme System integration.
To improve clarity, consider adding a brief explanation of what the Main Module is, as some users might not be familiar with it. For example:
- **Main Module added to your account**: Ensure that your Main Module is properly set up and linked to your Appartme account. + **Main Module added to your account**: Ensure that your Main Module (the central control unit of your Appartme System) is properly set up and linked to your Appartme account.
30-39
: LGTM with a minor suggestionThe configuration steps are clear, concise, and easy to follow. They provide a good guide for users to set up the Appartme integration through the Home Assistant UI.
To make the instructions even more comprehensive, consider adding a final step to confirm that the integration was successfully added. For example:
6. Follow the on-screen instructions to complete the setup process. + 7. Once completed, you should see the Appartme integration listed in your Integrations page, and the associated devices and entities should be available in Home Assistant.
This addition would help users confirm that they've successfully completed the setup process.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~36-~36: Consider adding a hyphen.
Context: ...k the Add Integration button in the bottom right corner. 4. Search for Appartme and ...(TOP_LEFT_CORNER)
41-126
: LGTM with a minor suggestion for consistencyThe capabilities and entities sections are comprehensive and well-structured. They provide clear information about what the integration can do and what entities it creates in Home Assistant.
For consistency and clarity, consider using the same format for all entity names. Currently, some are in backticks and some are not. For example:
- **Climate Entity**: `climate.thermostat` + **Climate Entity**: `climate.thermostat` - **Switch Entity**: `switch.lighting` + **Switch Entity**: `switch.lighting` - **Sensor Entities for Each Phase**: + **Sensor Entities for Each Phase**: - **Current Sensors**: + **Current Sensors**: - - `sensor.phase_1_current` + - `sensor.phase_1_current`Apply this formatting consistently throughout the entities section.
🧰 Tools
🪛 LanguageTool
[misspelling] ~59-~59: This word is normally spelled with a hyphen.
Context: ...ault temperature values for comfort and eco modes**: - Customize the default target te...(EN_COMPOUNDS_ECO_MODES)
[uncategorized] ~76-~76: Loose punctuation mark.
Context: ...r regular heating schedules. -eco
: For energy-saving heating schedules. ...(UNLIKELY_OPENING_PUNCTUATION)
128-157
: LGTM with a suggestion for the troubleshooting sectionThe configuration options and troubleshooting sections provide valuable information for users to customize the integration and resolve common issues.
To enhance the troubleshooting section, consider adding information about how users can access and share Home Assistant logs if they need to report an issue. This can be helpful for both users and developers when diagnosing problems. For example, you could add:
### Reporting Issues If you encounter a problem that you can't resolve using the troubleshooting steps above: 1. Enable debug logging for the Appartme integration by adding the following to your `configuration.yaml`: ```yaml logger: logs: custom_components.appartme: debug
- Restart Home Assistant.
- Reproduce the issue.
- Go to Configuration > Logs in your Home Assistant interface.
- Copy the relevant log entries.
- Share the logs along with a description of the issue on the Home Assistant Community Forum or contact Appartme Support.
This addition would provide users with a clear process for reporting and getting help with issues they can't resolve on their own. </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used: CodeRabbit UI** **Review profile: CHILL** <details> <summary>📥 Commits</summary> Files that changed from the base of the PR and between 309dc7e3786573fbe4a84f38ab05f2e0ec9b2bb7 and 1539b43ffeb372ddc9e908792d9ab1aa332161cd. </details> <details> <summary>📒 Files selected for processing (1)</summary> * source/_integrations/appartme.markdown (1 hunks) </details> <details> <summary>🧰 Additional context used</summary> <details> <summary>🪛 LanguageTool</summary><blockquote> <details> <summary>source/_integrations/appartme.markdown</summary><blockquote> [uncategorized] ~36-~36: Consider adding a hyphen. Context: ...k the **Add Integration** button in the bottom right corner. 4. Search for **Appartme** and ... (TOP_LEFT_CORNER) --- [misspelling] ~59-~59: This word is normally spelled with a hyphen. Context: ...ault temperature values for comfort and eco modes**: - Customize the default target te... (EN_COMPOUNDS_ECO_MODES) --- [uncategorized] ~76-~76: Loose punctuation mark. Context: ...r regular heating schedules. - `eco`: For energy-saving heating schedules. ... (UNLIKELY_OPENING_PUNCTUATION) --- [misspelling] ~168-~168: This word is normally spelled with a hyphen. Context: ...he default temperatures for comfort and eco modes? You can adjust the default temperatur... (EN_COMPOUNDS_ECO_MODES) </blockquote></details> </blockquote></details> </details> <details> <summary>🔇 Additional comments (4)</summary><blockquote> <details> <summary>source/_integrations/appartme.markdown (4)</summary><blockquote> `1-16`: **Verify release version and consider adding config_flow tag** The YAML front matter looks good overall. However, please note: 1. The `ha_release` is set to "2024.10". Ensure this is the correct intended release version, as it's in the future. 2. If this integration supports config flow (which seems likely based on the configuration steps described later), consider adding the `ha_config_flow: true` tag to the front matter. Could you confirm if the release version is correct and if the integration supports config flow? --- `158-171`: **LGTM! Comprehensive FAQ section** The FAQ section is well-crafted and addresses key questions that users are likely to have about the Appartme integration. It provides clear answers about obtaining OAuth credentials, hardware compatibility, and adjusting temperature settings. The information is consistent with details provided earlier in the document, which helps reinforce important points for users. <details> <summary>🧰 Tools</summary> <details> <summary>🪛 LanguageTool</summary><blockquote> [misspelling] ~168-~168: This word is normally spelled with a hyphen. Context: ...he default temperatures for comfort and eco modes? You can adjust the default temperatur... (EN_COMPOUNDS_ECO_MODES) </blockquote></details> </details> --- `172-182`: **LGTM! Support and references well-documented** The support and references sections provide valuable resources for users who need assistance or want to learn more about the Appartme integration and Home Assistant development. Regarding the past review comment about creating a specific forum topic: It appears that a dedicated forum topic has been created and linked in this section (`https://community.home-assistant.io/t/appartme-integration-discussion/777682`). This addresses the previous suggestion and provides a centralized place for users to discuss the Appartme integration. --- `1-182`: **Overall excellent documentation with minor suggestions for improvement** This documentation for the Appartme System integration is well-written, comprehensive, and follows Home Assistant documentation standards. It provides users with clear information on prerequisites, configuration, capabilities, troubleshooting, and support. Summary of suggestions: 1. Verify the release version and consider adding the `ha_config_flow` tag if applicable. 2. Add a brief explanation of what the Main Module is in the prerequisites section. 3. Include a final step in the configuration process to confirm successful setup. 4. Ensure consistent formatting of entity names throughout the document. 5. Add information about enabling debug logging and reporting issues in the troubleshooting section. These minor improvements will further enhance the already high-quality documentation. Great job on creating this thorough and user-friendly guide for the Appartme integration! <details> <summary>🧰 Tools</summary> <details> <summary>🪛 LanguageTool</summary><blockquote> [uncategorized] ~36-~36: Consider adding a hyphen. Context: ...k the **Add Integration** button in the bottom right corner. 4. Search for **Appartme** and ... (TOP_LEFT_CORNER) --- [misspelling] ~59-~59: This word is normally spelled with a hyphen. Context: ...ault temperature values for comfort and eco modes**: - Customize the default target te... (EN_COMPOUNDS_ECO_MODES) --- [uncategorized] ~76-~76: Loose punctuation mark. Context: ...r regular heating schedules. - `eco`: For energy-saving heating schedules. ... (UNLIKELY_OPENING_PUNCTUATION) --- [misspelling] ~168-~168: This word is normally spelled with a hyphen. Context: ...he default temperatures for comfort and eco modes? You can adjust the default temperatur... (EN_COMPOUNDS_ECO_MODES) </blockquote></details> </details> </blockquote></details> </blockquote></details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
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
🧹 Outside diff range and nitpick comments (6)
source/_integrations/appartme.markdown (6)
31-41
: LGTM! Consider adding a note about potential setup issues.The configuration section provides clear, step-by-step instructions for setting up the Appartme integration through the Home Assistant UI. To further improve user experience, consider adding a brief note about what users should do if they encounter any issues during the setup process. For example:
8. If you encounter any issues during setup, please refer to the Troubleshooting section below or contact Appartme Support.This addition would help users know what to do next if something doesn't go as expected.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~37-~37: Consider adding a hyphen.
Context: ...k the Add Integration button in the bottom right corner. 4. Search for Appartme and ...(TOP_LEFT_CORNER)
68-128
: LGTM! Comprehensive entity documentation. Minor suggestion for consistency.The entities section provides a thorough description of all entities created by the integration, including their functionalities and attributes. This information will be very helpful for users working with the integration.
For consistency, consider adding a brief description for the temperature sensor similar to the other sensors:
- **Temperature Sensor**: - `sensor.current_temperature`: Displays the current ambient temperature reported by the Main Module.This minor addition would make the temperature sensor description consistent with the level of detail provided for other sensors.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~78-~78: Loose punctuation mark.
Context: ...r regular heating schedules. -eco
: For energy-saving heating schedules. ...(UNLIKELY_OPENING_PUNCTUATION)
130-140
: LGTM! Consider adding more details about the update interval.The configuration options section provides clear instructions on how to adjust the update interval. To make it more informative for users, consider adding:
- A brief explanation of what the update interval does.
- Recommended values or a typical range for the update interval.
- Any potential impacts of setting the interval too low or too high.
For example:
- **Update Interval**: Set the frequency (in seconds) at which the integration polls the Appartme API for updates. A lower value provides more frequent updates but increases API calls. Recommended range: 30-300 seconds.This additional information would help users make informed decisions when adjusting this setting.
142-158
: LGTM! Helpful troubleshooting section. Consider adding a general troubleshooting tip.The troubleshooting section provides clear and practical solutions for common issues users might encounter. To make it even more helpful, consider adding a general troubleshooting tip at the beginning of the section. For example:
## Troubleshooting If you encounter any issues with the Appartme integration, first ensure that your Main Module is online and functioning correctly in the Appartme mobile app. If the problem persists, try the following solutions for specific issues:
This addition would encourage users to first check their Appartme system's status before diving into specific troubleshooting steps.
181-184
: LGTM! Consider using a more specific link for Home Assistant documentation.The references section provides useful links to additional resources. To make it even more helpful, consider using a more specific link for the Home Assistant Developer Documentation. For example:
- **Home Assistant Developer Documentation**: [Creating your first integration](https://developers.home-assistant.io/docs/creating_integration_file_structure)This would direct users to a more relevant starting point in the Home Assistant documentation for understanding integration development.
37-37
: Minor style suggestions (optional).The static analysis tool suggested some minor style improvements:
- Consider adding a hyphen to "eco-modes" for consistency (lines 61 and 170).
- The "Add Integration" button (line 37) could be hyphenated as "Add-Integration", but this is optional for UI element names.
The suggestion about loose punctuation on line 78 can be ignored as it's a false positive due to the markdown formatting.
These are minor stylistic choices and can be implemented at your discretion for consistency across the documentation.
Also applies to: 61-61, 78-78, 170-170
🧰 Tools
🪛 LanguageTool
[uncategorized] ~37-~37: Consider adding a hyphen.
Context: ...k the Add Integration button in the bottom right corner. 4. Search for Appartme and ...(TOP_LEFT_CORNER)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- source/_integrations/appartme.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/appartme.markdown
[uncategorized] ~37-~37: Consider adding a hyphen.
Context: ...k the Add Integration button in the bottom right corner. 4. Search for Appartme and ...(TOP_LEFT_CORNER)
[misspelling] ~61-~61: This word is normally spelled with a hyphen.
Context: ...ault temperature values for comfort and eco modes**: - Customize the default target te...(EN_COMPOUNDS_ECO_MODES)
[uncategorized] ~78-~78: Loose punctuation mark.
Context: ...r regular heating schedules. -eco
: For energy-saving heating schedules. ...(UNLIKELY_OPENING_PUNCTUATION)
[misspelling] ~170-~170: This word is normally spelled with a hyphen.
Context: ...he default temperatures for comfort and eco modes? You can adjust the default temperatur...(EN_COMPOUNDS_ECO_MODES)
🔇 Additional comments (5)
source/_integrations/appartme.markdown (5)
1-17
: Verify the release version and LGTM for the rest.The front matter looks good and includes all necessary metadata. However, please confirm if the
ha_release: "2024.10"
is correct, as it's set to a future date. If this is intentional for a planned release, it's fine. Otherwise, consider adjusting it to the current or next release version.
19-29
: LGTM! Clear introduction and prerequisites.The introduction and prerequisites section is well-written and informative. It clearly explains the purpose of the integration, its limitations regarding legacy hardware, and lists all necessary prerequisites for users. This information will be very helpful for users setting up the integration.
43-66
: LGTM! Comprehensive capabilities description.The capabilities section provides a thorough and well-structured overview of the integration's functionalities. It covers all the main features, including control of various channels and monitoring of temperature and electrical parameters. The detailed description of the heating control is particularly helpful for users.
🧰 Tools
🪛 LanguageTool
[misspelling] ~61-~61: This word is normally spelled with a hyphen.
Context: ...ault temperature values for comfort and eco modes**: - Customize the default target te...(EN_COMPOUNDS_ECO_MODES)
160-172
: LGTM! Informative FAQ section.The FAQ section addresses key questions that users are likely to have about the Appartme integration. The answers are clear, concise, and provide valuable information. The explanation about changing default temperatures for comfort and eco modes is particularly helpful and aligns well with the integration's capabilities.
🧰 Tools
🪛 LanguageTool
[misspelling] ~170-~170: This word is normally spelled with a hyphen.
Context: ...he default temperatures for comfort and eco modes? You can adjust the default temperatur...(EN_COMPOUNDS_ECO_MODES)
174-179
: LGTM! Comprehensive support information provided.The support section provides clear contact information for Appartme Support and includes a link to a specific Appartme Integration Discussion topic on the Home Assistant Community Forum. This addresses the previous suggestion to create a dedicated forum topic for the integration.
Proposed change
I'm creating new Appartme System integration and that's why I wanted to add necessary documentation
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