1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
|
from __future__ import annotations
from typing import Any, List
from deprecated import deprecated
from PyViCare.PyViCareHeatingDevice import HeatingDevice, HeatingDeviceWithComponent
from PyViCare.PyViCareUtils import handleAPICommandErrors, handleNotSupported
from PyViCare.PyViCareVentilationDevice import VentilationDevice
class HeatPump(HeatingDevice, VentilationDevice):
@property
def compressors(self) -> List[Compressor]:
return [self.getCompressor(x) for x in self.getAvailableCompressors()]
def getCompressor(self, compressor) -> Compressor:
return Compressor(self, compressor)
@handleNotSupported
def getAvailableCompressors(self):
return self.getProperty("heating.compressors")["properties"]["enabled"]["value"]
@property
def condensors(self) -> List[Condensor]:
return [self.getCondensor(x) for x in self.getAvailableCompressors()]
def getCondensor(self, condensor) -> Condensor:
return Condensor(self, condensor)
@property
def evaporators(self) -> List[Evaporator]:
return [self.getEvaporator(x) for x in self.getAvailableCompressors()]
def getEvaporator(self, evaporator) -> Evaporator:
return Evaporator(self, evaporator)
@handleNotSupported
def getBufferMainTemperature(self):
return self.getProperty("heating.bufferCylinder.sensors.temperature.main")["properties"]['value']['value']
@handleNotSupported
def getBufferTopTemperature(self):
return self.getProperty("heating.bufferCylinder.sensors.temperature.top")["properties"]['value']['value']
# Power consumption for Heating:
@handleNotSupported
def getPowerSummaryConsumptionHeatingUnit(self):
return self.getProperty("heating.power.consumption.summary.heating")["properties"]["currentDay"]["unit"]
@handleNotSupported
def getPowerSummaryConsumptionHeatingCurrentDay(self):
return self.getProperty("heating.power.consumption.summary.heating")["properties"]["currentDay"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionHeatingCurrentMonth(self):
return self.getProperty("heating.power.consumption.summary.heating")["properties"]["currentMonth"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionHeatingCurrentYear(self):
return self.getProperty("heating.power.consumption.summary.heating")["properties"]["currentYear"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionHeatingLastMonth(self):
return self.getProperty("heating.power.consumption.summary.heating")["properties"]["lastMonth"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionHeatingLastSevenDays(self):
return self.getProperty("heating.power.consumption.summary.heating")["properties"]["lastSevenDays"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionHeatingLastYear(self):
return self.getProperty("heating.power.consumption.summary.heating")["properties"]["lastYear"]["value"]
# Power consumption for Cooling:
@handleNotSupported
def getPowerConsumptionCoolingUnit(self):
return self.getProperty("heating.power.consumption.cooling")["properties"]["day"]["unit"]
@handleNotSupported
def getPowerConsumptionCoolingToday(self):
return self.getProperty("heating.power.consumption.cooling")["properties"]["day"]["value"][0]
@handleNotSupported
def getPowerConsumptionCoolingThisMonth(self):
return self.getProperty("heating.power.consumption.cooling")["properties"]["month"]["value"][0]
@handleNotSupported
def getPowerConsumptionCoolingThisYear(self):
return self.getProperty("heating.power.consumption.cooling")["properties"]["year"]["value"][0]
@handleNotSupported
def getPowerConsumptionUnit(self):
return self.getProperty("heating.power.consumption.total")["properties"]["day"]["unit"]
@handleNotSupported
def getPowerConsumptionToday(self):
return self.getProperty("heating.power.consumption.total")["properties"]["day"]["value"][0]
@handleNotSupported
def getPowerConsumptionDomesticHotWaterToday(self):
return self.getProperty("heating.power.consumption.dhw")["properties"]["day"]["value"][0]
# Power consumption for Domestic Hot Water:
@handleNotSupported
def getPowerSummaryConsumptionDomesticHotWaterUnit(self):
return self.getProperty("heating.power.consumption.summary.dhw")["properties"]["currentDay"]["unit"]
@handleNotSupported
def getPowerSummaryConsumptionDomesticHotWaterCurrentDay(self):
return self.getProperty("heating.power.consumption.summary.dhw")["properties"]["currentDay"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionDomesticHotWaterCurrentMonth(self):
return self.getProperty("heating.power.consumption.summary.dhw")["properties"]["currentMonth"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionDomesticHotWaterCurrentYear(self):
return self.getProperty("heating.power.consumption.summary.dhw")["properties"]["currentYear"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionDomesticHotWaterLastMonth(self):
return self.getProperty("heating.power.consumption.summary.dhw")["properties"]["lastMonth"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionDomesticHotWaterLastSevenDays(self):
return self.getProperty("heating.power.consumption.summary.dhw")["properties"]["lastSevenDays"]["value"]
@handleNotSupported
def getPowerSummaryConsumptionDomesticHotWaterLastYear(self):
return self.getProperty("heating.power.consumption.summary.dhw")["properties"]["lastYear"]["value"]
@handleNotSupported
def getVolumetricFlowReturn(self):
return self.getProperty("heating.sensors.volumetricFlow.allengra")["properties"]['value']['value']
@handleNotSupported
@deprecated(reason="renamed, use getVentilationModes", version="2.40.0")
def getAvailableVentilationModes(self):
return self.getVentilationModes()
@deprecated(reason="renamed, use activateVentilationMode", version="2.40.0")
def setActiveVentilationMode(self, mode):
""" Set the active mode
Parameters
----------
mode : str
Valid mode can be obtained using getModes()
Returns
-------
result: json
json representation of the answer
"""
return self.activateVentilationMode(mode)
@handleNotSupported
@deprecated(reason="renamed, use getVentilationPrograms", version="2.40.0")
def getAvailableVentilationPrograms(self):
return self.getVentilationPrograms()
@handleNotSupported
def getDomesticHotWaterHysteresisUnit(self) -> str:
return str(self.getProperty("heating.dhw.temperature.hysteresis")["properties"]["value"]["unit"])
@handleNotSupported
def getDomesticHotWaterHysteresis(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["properties"]["value"]["value"])
@handleNotSupported
def getDomesticHotWaterHysteresisMin(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresis"]["params"]["hysteresis"]["constraints"]["min"])
@handleNotSupported
def getDomesticHotWaterHysteresisMax(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresis"]["params"]["hysteresis"]["constraints"]["max"])
@handleNotSupported
def getDomesticHotWaterHysteresisStepping(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresis"]["params"]["hysteresis"]["constraints"]["stepping"])
@handleAPICommandErrors
def setDomesticHotWaterHysteresis(self, temperature: float) -> Any:
""" Set the hysteresis temperature for domestic host water
Parameters
----------
temperature : float
hysteresis temperature
Returns
-------
result: json
json representation of the answer
"""
return self.setProperty("heating.dhw.temperature.hysteresis", "setHysteresis", {'hysteresis': temperature})
@handleNotSupported
def getDomesticHotWaterHysteresisSwitchOn(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["properties"]["switchOnValue"]["value"])
@handleNotSupported
def getDomesticHotWaterHysteresisSwitchOnMin(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresisSwitchOnValue"]["params"]["hysteresis"]["constraints"]["min"])
@handleNotSupported
def getDomesticHotWaterHysteresisSwitchOnMax(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresisSwitchOnValue"]["params"]["hysteresis"]["constraints"]["max"])
@handleNotSupported
def getDomesticHotWaterHysteresisSwitchOnStepping(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresisSwitchOnValue"]["params"]["hysteresis"]["constraints"]["stepping"])
@handleAPICommandErrors
def setDomesticHotWaterHysteresisSwitchOn(self, temperature: float) -> Any:
""" Set the hysteresis switch on temperature for domestic host water
Parameters
----------
temperature : float
hysteresis switch on temperature
Returns
-------
result: json
json representation of the answer
"""
return self.setProperty("heating.dhw.temperature.hysteresis", "setHysteresisSwitchOnValue", {'hysteresis': temperature})
@handleNotSupported
def getDomesticHotWaterHysteresisSwitchOff(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["properties"]["switchOffValue"]["value"])
@handleNotSupported
def getDomesticHotWaterHysteresisSwitchOffMin(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresisSwitchOffValue"]["params"]["hysteresis"]["constraints"]["min"])
@handleNotSupported
def getDomesticHotWaterHysteresisSwitchOffMax(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresisSwitchOffValue"]["params"]["hysteresis"]["constraints"]["max"])
@handleNotSupported
def getDomesticHotWaterHysteresisSwitchOffStepping(self) -> float:
return float(self.getProperty("heating.dhw.temperature.hysteresis")["commands"]["setHysteresisSwitchOffValue"]["params"]["hysteresis"]["constraints"]["stepping"])
@handleAPICommandErrors
def setDomesticHotWaterHysteresisSwitchOff(self, temperature: float) -> Any:
""" Set the hysteresis switch off temperature for domestic host water
Parameters
----------
temperature : float
hysteresis switch off temperature
Returns
-------
result: json
json representation of the answer
"""
return self.setProperty("heating.dhw.temperature.hysteresis", "setHysteresisSwitchOffValue", {'hysteresis': temperature})
@handleNotSupported
def getSupplyPressureUnit(self) -> str:
# Returns heating supply pressure unit (e.g. bar)
return str(self.getProperty("heating.sensors.pressure.supply")["properties"]["value"]["unit"])
@handleNotSupported
def getSupplyPressure(self) -> float:
# Returns heating supply pressure
return float(self.getProperty("heating.sensors.pressure.supply")["properties"]["value"]["value"])
@handleNotSupported
def getSeasonalPerformanceFactorDHW(self) -> float:
return float(self.getProperty("heating.spf.dhw")["properties"]["value"]["value"])
@handleNotSupported
def getSeasonalPerformanceFactorHeating(self) -> float:
return float(self.getProperty("heating.spf.heating")["properties"]["value"]["value"])
@handleNotSupported
def getSeasonalPerformanceFactorTotal(self) -> float:
return float(self.getProperty("heating.spf.total")["properties"]["value"]["value"])
@handleNotSupported
def getHeatingRodStarts(self) -> int:
return int(self.getProperty("heating.heatingRod.statistics")["properties"]["starts"]["value"])
@handleNotSupported
def getHeatingRodHours(self) -> int:
return int(self.getProperty("heating.heatingRod.statistics")["properties"]["hours"]["value"])
@handleNotSupported
def getHeatingRodHeatProductionCurrent(self) -> float:
return float(self.getProperty("heating.heatingRod.heat.production.current")["properties"]["value"]["value"])
@handleNotSupported
def getHeatingRodHeatProductionCurrentUnit(self) -> str:
return str(self.getProperty("heating.heatingRod.heat.production.current")["properties"]["value"]["unit"])
@handleNotSupported
def getHeatingRodPowerConsumptionCurrent(self) -> float:
return float(self.getProperty("heating.heatingRod.power.consumption.current")["properties"]["value"]["value"])
@handleNotSupported
def getHeatingRodPowerConsumptionCurrentUnit(self) -> str:
return str(self.getProperty("heating.heatingRod.power.consumption.current")["properties"]["value"]["unit"])
@handleNotSupported
def getHeatingRodPowerConsumptionDHWThisYear(self) -> float:
return float(self.getProperty("heating.heatingRod.power.consumption.dhw")["properties"]["year"]["value"][0])
@handleNotSupported
def getHeatingRodPowerConsumptionHeatingThisYear(self) -> float:
return float(self.getProperty("heating.heatingRod.power.consumption.heating")["properties"]["year"]["value"][0])
@handleNotSupported
def getHeatingRodPowerConsumptionTotalThisYear(self) -> float:
return float(self.getProperty("heating.heatingRod.power.consumption.total")["properties"]["year"]["value"][0])
class Compressor(HeatingDeviceWithComponent):
@property
def compressor(self) -> str:
return self.component
@handleNotSupported
def getStarts(self):
return self.getProperty(f"heating.compressors.{self.compressor}.statistics")["properties"]["starts"]["value"]
@handleNotSupported
def getHours(self):
return self.getProperty(f"heating.compressors.{self.compressor}.statistics")["properties"]["hours"]["value"]
@handleNotSupported
def getHoursLoadClass1(self):
return self.getProperty(f"heating.compressors.{self.compressor}.statistics")["properties"]["hoursLoadClassOne"]["value"]
@handleNotSupported
def getHoursLoadClass2(self):
return self.getProperty(f"heating.compressors.{self.compressor}.statistics")["properties"]["hoursLoadClassTwo"]["value"]
@handleNotSupported
def getHoursLoadClass3(self):
return self.getProperty(f"heating.compressors.{self.compressor}.statistics")["properties"]["hoursLoadClassThree"]["value"]
@handleNotSupported
def getHoursLoadClass4(self):
return self.getProperty(f"heating.compressors.{self.compressor}.statistics")["properties"]["hoursLoadClassFour"]["value"]
@handleNotSupported
def getHoursLoadClass5(self):
return self.getProperty(f"heating.compressors.{self.compressor}.statistics")["properties"]["hoursLoadClassFive"]["value"]
@handleNotSupported
def getActive(self):
return self.getProperty(f"heating.compressors.{self.compressor}")["properties"]["active"]["value"]
@handleNotSupported
def getPhase(self):
return self.getProperty(f"heating.compressors.{self.compressor}")["properties"]["phase"]["value"]
@handleNotSupported
def getHeatProductionCurrent(self) -> float:
return float(self.getProperty(f"heating.compressors.{self.compressor}.heat.production.current")["properties"]["value"]["value"])
@handleNotSupported
def getHeatProductionCurrentUnit(self) -> str:
return str(self.getProperty(f"heating.compressors.{self.compressor}.heat.production.current")["properties"]["value"]["unit"])
@handleNotSupported
def getPowerConsumptionCurrent(self) -> float:
return float(self.getProperty(f"heating.compressors.{self.compressor}.power.consumption.current")["properties"]["value"]["value"])
@handleNotSupported
def getPowerConsumptionCurrentUnit(self) -> str:
return str(self.getProperty(f"heating.compressors.{self.compressor}.power.consumption.current")["properties"]["value"]["unit"])
@handleNotSupported
def getPowerConsumptionDHWThisYear(self) -> float:
return float(self.getProperty(f"heating.compressors.{self.compressor}.power.consumption.dhw")["properties"]["year"]["value"][0])
@handleNotSupported
def getPowerConsumptionHeatingThisYear(self) -> float:
return float(self.getProperty(f"heating.compressors.{self.compressor}.power.consumption.heating")["properties"]["year"]["value"][0])
@handleNotSupported
def getPowerConsumptionCoolingThisYear(self) -> float:
return float(self.getProperty(f"heating.compressors.{self.compressor}.power.consumption.cooling")["properties"]["year"]["value"][0])
@handleNotSupported
def getPowerConsumptionTotalThisYear(self) -> float:
return float(self.getProperty(f"heating.compressors.{self.compressor}.power.consumption.total")["properties"]["year"]["value"][0])
@handleNotSupported
def getPowerConsumptionTotalUnit(self) -> str:
return str(self.getProperty(f"heating.compressors.{self.compressor}.power.consumption.total")["properties"]["year"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getOutletPressureUnit", version="2.55.1")
def getCompressorOutletPressureUnit(self) -> str:
return str(self.getOutletPressureUnit())
@handleNotSupported
def getOutletPressureUnit(self) -> str:
# Shows the unit of measurement of the outlet pressure.
return str(self.getProperty(f"heating.compressors.{self.compressor}.sensors.pressure.outlet")["properties"]["value"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getOutletPressure", version="2.55.1")
def getCompressorOutletPressure(self) -> float:
return float(self.getOutletPressure())
@handleNotSupported
def getOutletPressure(self) -> float:
# Shows the outlet pressure of the compressor.
return float(self.getProperty(f"heating.compressors.{self.compressor}.sensors.pressure.outlet")["properties"]["value"]["value"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getInletPressureUnit", version="2.55.1")
def getCompressorInletPressureUnit(self) -> str:
return str(self.getInletPressureUnit())
@handleNotSupported
def getInletPressureUnit(self) -> str:
# Shows the unit of measurement of the inlet pressure.
return str(self.getProperty(f"heating.compressors.{self.compressor}.sensors.pressure.inlet")["properties"]["value"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getInletPressure", version="2.55.1")
def getCompressorInletPressure(self) -> float:
return float(self.getInletPressure())
@handleNotSupported
def getInletPressure(self) -> float:
# Shows the inlet pressure of the compressor.
return float(self.getProperty(f"heating.compressors.{self.compressor}.sensors.pressure.inlet")["properties"]["value"]["value"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getOutletTemperatureUnit", version="2.55.1")
def getCompressorOutletTemperatureUnit(self) -> str:
return str(self.getOutletTemperatureUnit())
@handleNotSupported
def getOutletTemperatureUnit(self) -> str:
# Shows the unit of measurement of the outlet temperature.
return str(self.getProperty(f"heating.compressors.{self.compressor}.sensors.temperature.outlet")["properties"]["value"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getOutletTemperature", version="2.55.1")
def getCompressorOutletTemperature(self) -> float:
return float(self.getOutletTemperature())
@handleNotSupported
def getOutletTemperature(self) -> float:
# Shows the outlet temperature of the compressor.
return float(self.getProperty(f"heating.compressors.{self.compressor}.sensors.temperature.outlet")["properties"]["value"]["value"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getInletTemperatureUnit", version="2.55.1")
def getCompressorInletTemperatureUnit(self) -> str:
return str(self.getInletTemperatureUnit())
@handleNotSupported
def getInletTemperatureUnit(self) -> str:
# Shows the unit of measurement of the inlet temperature.
return str(self.getProperty(f"heating.compressors.{self.compressor}.sensors.temperature.inlet")["properties"]["value"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getInletTemperature", version="2.55.1")
def getCompressorInletTemperature(self) -> float:
return float(self.getInletTemperature())
@handleNotSupported
def getInletTemperature(self) -> float:
# Shows the inlet temperature of the compressor.
return float(self.getProperty(f"heating.compressors.{self.compressor}.sensors.temperature.inlet")["properties"]["value"]["value"])
class Evaporator(HeatingDeviceWithComponent):
@property
def evaporator(self) -> str:
return self.component
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getLiquidTemperatureUnit", version="2.55.1")
def getEvaporatorLiquidTemperatureUnit(self) -> str:
return str(self.getLiquidTemperatureUnit())
@handleNotSupported
def getLiquidTemperatureUnit(self) -> str:
# Shows the unit of measurement of the liquid temperature of the evaporator.
return str(self.getProperty(f"heating.evaporators.{self.evaporator}.sensors.temperature.liquid")["properties"]["value"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getLiquidTemperature", version="2.55.1")
def getEvaporatorLiquidTemperature(self) -> float:
return float(self.getLiquidTemperature())
@handleNotSupported
def getLiquidTemperature(self) -> float:
# Shows the liquid temperature of the evaporator.
return float(self.getProperty(f"heating.evaporators.{self.evaporator}.sensors.temperature.liquid")["properties"]["value"]["value"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getOverheatTemperatureUnit", version="2.55.1")
def getEvaporatorOverheatTemperatureUnit(self) -> str:
return str(self.getOverheatTemperatureUnit())
@handleNotSupported
def getOverheatTemperatureUnit(self) -> str:
# Shows the unit of measurement of the overheat temperature of the evaporator.
return str(self.getProperty(f"heating.evaporators.{self.evaporator}.sensors.temperature.overheat")["properties"]["value"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getOverheatTemperature", version="2.55.1")
def getEvaporatorOverheatTemperature(self) -> float:
return float(self.getOverheatTemperature())
@handleNotSupported
def getOverheatTemperature(self) -> float:
# Shows the overheat temperature of the evaporator.
return float(self.getProperty(f"heating.evaporators.{self.evaporator}.sensors.temperature.overheat")["properties"]["value"]["value"])
class Condensor(HeatingDeviceWithComponent):
@property
def condensor(self) -> str:
return self.component
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getSubcoolingTemperatureUnit", version="2.55.1")
def getCondensorSubcoolingTemperatureUnit(self) -> str:
return str(self.getSubcoolingTemperatureUnit())
@handleNotSupported
def getSubcoolingTemperatureUnit(self) -> str:
# Shows the unit of measurement of the subcooling temperature of the condenser.
return str(self.getProperty(f"heating.condensors.{self.condensor}.sensors.temperature.subcooling")["properties"]["value"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getSubcoolingTemperature", version="2.55.1")
def getCondensorSubcoolingTemperature(self) -> float:
return float(self.getSubcoolingTemperature())
@handleNotSupported
def getSubcoolingTemperature(self) -> float:
# Shows the subcooling temperature of the condenser.
return float(self.getProperty(f"heating.condensors.{self.condensor}.sensors.temperature.subcooling")["properties"]["value"]["value"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getLiquidTemperatureUnit", version="2.55.1")
def getCondensorLiquidTemperatureUnit(self) -> str:
return str(self.getLiquidTemperatureUnit())
@handleNotSupported
def getLiquidTemperatureUnit(self) -> str:
# Shows the unit of measurement of the liquid temperature of the condenser.
return str(self.getProperty(f"heating.condensors.{self.condensor}.sensors.temperature.liquid")["properties"]["value"]["unit"])
#TODO: remove deprecated method in 03.2026 release
@handleNotSupported
@deprecated(reason="renamed, use getLiquidTemperature", version="2.55.1")
def getCondensorLiquidTemperature(self) -> float:
return float(self.getLiquidTemperature())
@handleNotSupported
def getLiquidTemperature(self) -> float:
# Shows the liquid temperature of the condenser.
return float(self.getProperty(f"heating.condensors.{self.condensor}.sensors.temperature.liquid")["properties"]["value"]["value"])
|