-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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 OSO Energy Service documentation #33070
Add OSO Energy Service documentation #33070
Conversation
✅ 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.
Tiny tweaks
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Co-authored-by: c0ffeeca7 <[email protected]>
WalkthroughWalkthroughThe changes introduce new services in the OSO Energy integration for managing water heater temperature profiles and heating control. Users can now retrieve and set temperature profiles, adjust the minimum water quantity at 40°C, and control heating operations based on temperature limits. These enhancements provide greater control and flexibility for managing water heaters. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant HomeAssistant
participant OSOEnergy
User->>HomeAssistant: Call osoenergy.get_profile(entity_id)
HomeAssistant->>OSOEnergy: Retrieve temperature profile
OSOEnergy-->>HomeAssistant: Return temperature profile
HomeAssistant-->>User: Display temperature profile
User->>HomeAssistant: Call osoenergy.set_profile(entity_id, hour_00, ..., hour_23)
HomeAssistant->>OSOEnergy: Set temperature profile
OSOEnergy-->>HomeAssistant: Acknowledge profile set
HomeAssistant-->>User: Confirm profile set
User->>HomeAssistant: Call osoenergy.set_v40_min(entity_id, v40_min)
HomeAssistant->>OSOEnergy: Set minimum water quantity at 40°C
OSOEnergy-->>HomeAssistant: Acknowledge minimum water quantity set
HomeAssistant-->>User: Confirm minimum water quantity set
User->>HomeAssistant: Call osoenergy.turn_off(entity_id, until_temp_limit)
HomeAssistant->>OSOEnergy: Turn off heating
OSOEnergy-->>HomeAssistant: Acknowledge heating off
HomeAssistant-->>User: Confirm heating off
User->>HomeAssistant: Call osoenergy.turn_on(entity_id, until_temp_limit)
HomeAssistant->>OSOEnergy: Turn on heating
OSOEnergy-->>HomeAssistant: Acknowledge heating on
HomeAssistant-->>User: Confirm heating on
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional context usedLanguageTool
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 as PR comments)
Additionally, you can add CodeRabbit Configration 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: 5
|
||
### Service `osoenergy.get_profile` | ||
|
||
You can use the service `osoenergy.get_profile` to get the temperature profile for a water heater. Each temperature corresponds to a given local hour during the current day. For example, a temperature at index 1 corresponds to 01:00 local time. |
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.
Ensure consistency in service description.
The description for osoenergy.get_profile
could be enhanced by specifying what is meant by "temperature profile". For example, "You can use the service osoenergy.get_profile
to retrieve a detailed temperature profile, which includes temperature settings for each hour of the current day for a water heater."
Tools
LanguageTool
[misspelling] ~31-~31: Possible spelling mistake found. (MORFOLOGIK_RULE_EN_US)
Context: ...y.get_profileYou can use the service
osoenergy.get_profile` to get the temperature pro...
|
||
| Service data attribute | Optional | Description | | ||
| ---------------------- | -------- | -------------------------------------------------- | | ||
| `entity_id` | no | String, Name of entity e.g., `water_heater.heater` | |
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.
Clarify parameter descriptions.
The description for entity_id
in the osoenergy.set_profile
service could be standardized to match other descriptions in the document. Consider revising to: "String, specifies the entity name, e.g., water_heater.heater
."
| Service data attribute | Optional | Description | | ||
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------------------------- | | ||
| `entity_id` | no | String, name of entity. For example: `water_heater.heater` | | ||
| `until_temp_limit` | no | Choose, if the heating should be off until the minimum temperature (`True`) is reached, or for one hour (`False`). For example, `True` | |
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.
Clarify parameter usage.
The description for until_temp_limit
in the osoenergy.turn_off
service could be more descriptive. Consider revising to: "Boolean, determines whether the heating should be turned off until the minimum temperature is reached (True
) or just for one hour (False
)."
| Service data attribute | Optional | Description | | ||
| ---------------------- | -------- | ---------------------------------------------------------------------------------------------------------------- | | ||
| `entity_id` | no | String, name of entity. For example: `water_heater.heater` | | ||
| `until_temp_limit` | no | Choose, if the heating should be on until the maximum temperature (`True`) is reached, or for one hour (`False`). For example, `True` | |
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.
Ensure consistency in parameter descriptions.
The description for until_temp_limit
in the osoenergy.turn_on
service should be consistent with the turn_off
service. Consider revising to: "Boolean, specifies whether the heating should continue until the maximum temperature is reached (True
) or just for one hour (False
)."
|
||
| Service data attribute | Optional | Description | | ||
| ---------------------- | -------- | ----------------------------------------------------------------------------- | | ||
| `entity_id` | no | String, name of entity. For example: `water_heater.heater` f entity e.g., `water_heater.heater` | |
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.
Correct typographical errors.
There appears to be a typographical error in the description of the entity_id
for the osoenergy.set_v40_min
service. It should be cleaned up to remove redundant text. Here's a suggested correction:
- String, name of entity. For example: `water_heater.heater` f entity e.g., `water_heater.heater`
+ String, name of entity. For example: `water_heater.heater`
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.
| `entity_id` | no | String, name of entity. For example: `water_heater.heater` f entity e.g., `water_heater.heater` | | |
| `entity_id` | no | String, name of entity. For example: `water_heater.heater` | |
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, @osohotwateriot 👍
Proposed change
Add custom service documentation for OSO Energy
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit