mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add hysteresis entity for heat pumps via ViCare (#124294)
* add hysteresis entity * update PyViCare-neo dependency * add hysteresis switch on / of entities * Revert "add hysteresis entity" This reverts commit dcb5680d0ca1958640e68de36f6befbf6416ab41.
This commit is contained in:
parent
f56c38d69b
commit
b23297bb7e
@ -11,5 +11,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/vicare",
|
"documentation": "https://www.home-assistant.io/integrations/vicare",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["PyViCare"],
|
"loggers": ["PyViCare"],
|
||||||
"requirements": ["PyViCare-neo==0.2.1"]
|
"requirements": ["PyViCare-neo==0.3.0"]
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,34 @@ DEVICE_ENTITY_DESCRIPTIONS: tuple[ViCareNumberEntityDescription, ...] = (
|
|||||||
native_max_value=60,
|
native_max_value=60,
|
||||||
native_step=1,
|
native_step=1,
|
||||||
),
|
),
|
||||||
|
ViCareNumberEntityDescription(
|
||||||
|
key="dhw_hysteresis_switch_on",
|
||||||
|
translation_key="dhw_hysteresis_switch_on",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
|
native_unit_of_measurement=UnitOfTemperature.KELVIN,
|
||||||
|
value_getter=lambda api: api.getDomesticHotWaterHysteresisSwitchOn(),
|
||||||
|
value_setter=lambda api, value: api.setDomesticHotWaterHysteresisSwitchOn(
|
||||||
|
value
|
||||||
|
),
|
||||||
|
min_value_getter=lambda api: api.getDomesticHotWaterHysteresisSwitchOnMin(),
|
||||||
|
max_value_getter=lambda api: api.getDomesticHotWaterHysteresisSwitchOnMax(),
|
||||||
|
stepping_getter=lambda api: api.getDomesticHotWaterHysteresisSwitchOnStepping(),
|
||||||
|
),
|
||||||
|
ViCareNumberEntityDescription(
|
||||||
|
key="dhw_hysteresis_switch_off",
|
||||||
|
translation_key="dhw_hysteresis_switch_off",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
|
native_unit_of_measurement=UnitOfTemperature.KELVIN,
|
||||||
|
value_getter=lambda api: api.getDomesticHotWaterHysteresisSwitchOff(),
|
||||||
|
value_setter=lambda api, value: api.setDomesticHotWaterHysteresisSwitchOff(
|
||||||
|
value
|
||||||
|
),
|
||||||
|
min_value_getter=lambda api: api.getDomesticHotWaterHysteresisSwitchOffMin(),
|
||||||
|
max_value_getter=lambda api: api.getDomesticHotWaterHysteresisSwitchOffMax(),
|
||||||
|
stepping_getter=lambda api: api.getDomesticHotWaterHysteresisSwitchOffStepping(),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -110,6 +110,12 @@
|
|||||||
},
|
},
|
||||||
"dhw_secondary_temperature": {
|
"dhw_secondary_temperature": {
|
||||||
"name": "DHW secondary temperature"
|
"name": "DHW secondary temperature"
|
||||||
|
},
|
||||||
|
"dhw_hysteresis_switch_on": {
|
||||||
|
"name": "DHW hysteresis switch on"
|
||||||
|
},
|
||||||
|
"dhw_hysteresis_switch_off": {
|
||||||
|
"name": "DHW hysteresis switch off"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
|
@ -100,7 +100,7 @@ PyTransportNSW==0.1.1
|
|||||||
PyTurboJPEG==1.7.5
|
PyTurboJPEG==1.7.5
|
||||||
|
|
||||||
# homeassistant.components.vicare
|
# homeassistant.components.vicare
|
||||||
PyViCare-neo==0.2.1
|
PyViCare-neo==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.xiaomi_aqara
|
# homeassistant.components.xiaomi_aqara
|
||||||
PyXiaomiGateway==0.14.3
|
PyXiaomiGateway==0.14.3
|
||||||
|
@ -94,7 +94,7 @@ PyTransportNSW==0.1.1
|
|||||||
PyTurboJPEG==1.7.5
|
PyTurboJPEG==1.7.5
|
||||||
|
|
||||||
# homeassistant.components.vicare
|
# homeassistant.components.vicare
|
||||||
PyViCare-neo==0.2.1
|
PyViCare-neo==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.xiaomi_aqara
|
# homeassistant.components.xiaomi_aqara
|
||||||
PyXiaomiGateway==0.14.3
|
PyXiaomiGateway==0.14.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user