mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
add hysteresis entity
This commit is contained in:
@@ -63,9 +63,20 @@ DEVICE_ENTITY_DESCRIPTIONS: tuple[ViCareNumberEntityDescription, ...] = (
|
||||
native_max_value=60,
|
||||
native_step=1,
|
||||
),
|
||||
ViCareNumberEntityDescription(
|
||||
key="dhw_hysteresis",
|
||||
translation_key="dhw_hysteresis",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
device_class=NumberDeviceClass.TEMPERATURE,
|
||||
native_unit_of_measurement=UnitOfTemperature.KELVIN,
|
||||
value_getter=lambda api: api.getDomesticHotWaterHysteresis(),
|
||||
value_setter=lambda api, value: api.setDomesticHotWaterHysteresis(value),
|
||||
min_value_getter=lambda api: api.getDomesticHotWaterHysteresisMin(),
|
||||
max_value_getter=lambda api: api.getDomesticHotWaterHysteresisMax(),
|
||||
stepping_getter=lambda api: api.getDomesticHotWaterHysteresisStepping(),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
CIRCUIT_ENTITY_DESCRIPTIONS: tuple[ViCareNumberEntityDescription, ...] = (
|
||||
ViCareNumberEntityDescription(
|
||||
key="heating curve shift",
|
||||
|
@@ -107,6 +107,9 @@
|
||||
},
|
||||
"dhw_secondary_temperature": {
|
||||
"name": "DHW secondary temperature"
|
||||
},
|
||||
"dhw_hysteresis": {
|
||||
"name": "DHW hysteresis"
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
|
Reference in New Issue
Block a user