Add min/max temperature and humidity to ClimateEntity
entity options
#1164
Unanswered
gjohansson-ST
asked this question in
Entity Models
Replies: 1 comment 4 replies
-
The proposal should explain what happens when the device has been set to a setpoint outside the range configured in Home Assistant. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
Currently in
ClimateEntity
there are properties for for min and max for bothtemperature
andhumidity
.These are used in the action calls for
set_temperature
andset_humidity
to validate that the user input are within the expected range. In addition these are also used by frontend to provide the correct range in the appropriate cards.These properties are mandatory and the developers are supposed to overwrite these with the correct min/max that is valid for the integration/device they are implementing.
The following challenges has been identified since the implementation of the validation:
Proposal
Implement entity options for min/max for temperature and humidity to allow the user to configure/change these.
All integrations should still provide a proper min/max to the extent it's possible, the properties are still mandatory from a dev implementation.
Benefits
zwave
,zha
,esphome
, etc.Implementation details
ClimateEntity
needs to define if a user is allowed to expand the range outside of the provided min/max value (defaults to False). Mainly targets "generic" integrations as mentioned in the background. A user can always set a more narrow range within the integration provided min/max.set_temperature
orset_humidity
needs to change.Alternatives to consider
Mainly an issue/wish for temperature settings (not seen any request for humidity) so an alternative is to leave humidity out of this.
This is an alternative to #1152 which is to make min/max optional.
Beta Was this translation helpful? Give feedback.
All reactions