mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
add hysteresis entity
This commit is contained in:
@@ -63,9 +63,20 @@ DEVICE_ENTITY_DESCRIPTIONS: tuple[ViCareNumberEntityDescription, ...] = (
|
|||||||
native_max_value=60,
|
native_max_value=60,
|
||||||
native_step=1,
|
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, ...] = (
|
CIRCUIT_ENTITY_DESCRIPTIONS: tuple[ViCareNumberEntityDescription, ...] = (
|
||||||
ViCareNumberEntityDescription(
|
ViCareNumberEntityDescription(
|
||||||
key="heating curve shift",
|
key="heating curve shift",
|
||||||
|
@@ -107,6 +107,9 @@
|
|||||||
},
|
},
|
||||||
"dhw_secondary_temperature": {
|
"dhw_secondary_temperature": {
|
||||||
"name": "DHW secondary temperature"
|
"name": "DHW secondary temperature"
|
||||||
|
},
|
||||||
|
"dhw_hysteresis": {
|
||||||
|
"name": "DHW hysteresis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
|
Reference in New Issue
Block a user