mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Handle int or mapping for off case in nibe cooling (#89680)
Handle int or mapping for off case in nibe
This commit is contained in:
parent
a9a6ff50cc
commit
02738fb9d4
@ -31,6 +31,7 @@ from . import Coordinator
|
||||
from .const import (
|
||||
DOMAIN,
|
||||
LOGGER,
|
||||
VALUES_COOL_WITH_ROOM_SENSOR_OFF,
|
||||
VALUES_MIXING_VALVE_CLOSED_STATE,
|
||||
VALUES_PRIORITY_COOLING,
|
||||
VALUES_PRIORITY_HEATING,
|
||||
@ -139,10 +140,13 @@ class NibeClimateEntity(CoordinatorEntity[Coordinator], ClimateEntity):
|
||||
|
||||
mode = HVACMode.OFF
|
||||
if _get_value(self._coil_use_room_sensor) == "ON":
|
||||
if _get_value(self._coil_cooling_with_room_sensor) != "OFF":
|
||||
mode = HVACMode.HEAT_COOL
|
||||
else:
|
||||
if (
|
||||
_get_value(self._coil_cooling_with_room_sensor)
|
||||
in VALUES_COOL_WITH_ROOM_SENSOR_OFF
|
||||
):
|
||||
mode = HVACMode.HEAT
|
||||
else:
|
||||
mode = HVACMode.HEAT_COOL
|
||||
self._attr_hvac_mode = mode
|
||||
|
||||
setpoint_heat = _get_float(self._coil_setpoint_heat)
|
||||
|
@ -17,3 +17,4 @@ CONF_MODBUS_UNIT = "modbus_unit"
|
||||
VALUES_MIXING_VALVE_CLOSED_STATE = (30, "CLOSED", "SHUNT CLOSED")
|
||||
VALUES_PRIORITY_HEATING = (30, "HEAT")
|
||||
VALUES_PRIORITY_COOLING = (60, "COOLING")
|
||||
VALUES_COOL_WITH_ROOM_SENSOR_OFF = (0, "OFF")
|
||||
|
Loading…
x
Reference in New Issue
Block a user