-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Document generic_thermostat enhancements for PR #136298. #37546
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
Documentation changes for `min_cycle_duration`, `max_cycle_duration`, and `cycle_cooldown`. Also adjustments regarding `min_cycle_duration` and `keep_alive` (they can now co-exist).
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe changes update the documentation for the generic thermostat integration. New configuration options, Changes
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: 0
🧹 Nitpick comments (1)
source/_integrations/generic_thermostat.markdown (1)
147-147
: Detail Time Format Constraints and Parameter RelationshipsThe newly added note succinctly specifies acceptable time formats (either "hh:mm:ss", dictionary forms, or integers representing seconds) and reiterates that if both
min_cycle_duration
andmax_cycle_duration
are provided, the maximum must be greater than the minimum. Given the PR objective clarifies thatmin_cycle_duration
andkeep_alive
can now coexist, consider explicitly mentioning this coexistence if it’s a common point of confusion for users.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/generic_thermostat.markdown
(4 hunks)
🔇 Additional comments (4)
source/_integrations/generic_thermostat.markdown (4)
82-84
: Clarifymin_cycle_duration
DocumentationThe updated description now clearly states that this parameter specifies the minimum time that must elapse before the heater switch can be turned off, and the type now accepts both time and integer formats. Ensure that any examples (such as in the YAML configuration below) reflect this dual-format capability accurately.
85-88
: Addmax_cycle_duration
OptionThe new
max_cycle_duration
parameter is well documented. The description specifies that it marks the maximum allowable cycle duration and the type supports both time and integer values. It would be beneficial to remind users (or cross-reference in the clarification note) that if bothmin_cycle_duration
andmax_cycle_duration
are set, the latter must be greater than the former.
89-90
: Introducecycle_cooldown
ParameterThe description for
cycle_cooldown
clearly states that it defines the minimum wait time before the heater switch can be switched back on after being turned off. The type change to[time, integer]
is consistent with the other cycle duration parameters.
168-172
: Update YAML Configuration Example for Cycle DurationsThe example now demonstrates using different time formats:
min_cycle_duration
is set using a minute-based dictionary (minutes: 1
),max_cycle_duration
with (minutes: 10
), andcycle_cooldown
with (seconds: 30
).This clearly illustrates the expected YAML formatting for durations. It may help to include a brief inline comment or note that these values must satisfy the condition where
max_cycle_duration
is greater thanmin_cycle_duration
for clarity.
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, @esand 👍
Documentation changes for
min_cycle_duration
,max_cycle_duration
, andcycle_cooldown
. Also adjustments regardingmin_cycle_duration
andkeep_alive
(they can now co-exist).Proposed change
These changes document the changes proposed in home-assistant/core#136298.
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit