-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
✨ Support TARGET_TEMPERATURE_RANGE for water heater entities #102960
✨ Support TARGET_TEMPERATURE_RANGE for water heater entities #102960
Conversation
This patch allows to set temperature_target_{high, low} with `water_heater.set_temperature` service. Those values were already present before this patch but could not be set with a service. This patch changes the default WaterHeaterEntityFeature to include TARGET_TEMPERATURE to be fully backward compatible. This is heavily inspired by the same behavior on ClimateEntity. This patch opens the way for the UI to expose/update high/low temperature targets.
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
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.
This requires a architectural discussion to take place before such feature is added.
Please open a discussion here and once that is approved this PR can be reopened.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
@gjohansson-ST , I've opened home-assistant/architecture#995 but don't get feedback for now. Could you guide me further if there a need to do something else to have the discussion started? |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
I'd be glad to keep this open and get some feedback :) |
No need to keep open until the architectural discussion has been decided upon. |
Thanks for your comment, do you know how I can get feedback on the architectural discussion? |
The interesting thing is that the entity already have high and low temperature attributes: https://developers.home-assistant.io/docs/core/entity/water-heater/ |
Yes, those values were already present before this patch but could not be set with a service. |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
PR is still relevant. I'll keep it open until there is a consensus on the related architecture discussion. |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
Breaking change
Expected changes:
set_temperature
might not containtemperature
field anymore but can containtarget_temp_high
andtarget_temp_low
instead.State of water_heater entities will not contain
target_temp_high
andtarget_temp_low
unless those features are explicitly supported.Proposed change
This patch allows to set temperature_target_{high, low} with
water_heater.set_temperature
service.Those values were already present before this patch but could not be set with a service.
This patch changes the default WaterHeaterEntityFeature to include TARGET_TEMPERATURE to be fully backward compatible.
This is heavily inspired by the same behavior on ClimateEntity.
This patch opens the way for the UI to expose/update high/low temperature targets.
See home-assistant/architecture#995
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: