|
@@ -86,7 +86,9 @@ class ACATAHSupplyAirTemperatureController:
|
|
|
cold_ratio = self.get_cold_ratio()
|
|
|
temperature = self.calculate_by_cold_vav(cold_ratio)
|
|
|
else:
|
|
|
- temperature = 31.0
|
|
|
+ temperature = 30.0
|
|
|
+
|
|
|
+ temperature = max(20.0, min(30.0, temperature))
|
|
|
|
|
|
return temperature
|
|
|
|
|
@@ -136,10 +138,12 @@ async def get_planned(project_id: str, device_id: str) -> float:
|
|
|
)
|
|
|
on_off_set_duration = await platform.get_duration(InfoCode.equip_switch_set, device_id, 15 * 60)
|
|
|
|
|
|
- if hot_water_valve_opening_set_duration[-1]['value'] == 0.0:
|
|
|
- thermal_mode = ThermalMode.cooling
|
|
|
+ # if hot_water_valve_opening_set_duration[-1]['value'] == 0.0:
|
|
|
+ # thermal_mode = ThermalMode.cooling
|
|
|
if chill_water_valve_opening_set_duration[-1]['value'] == 0.0:
|
|
|
thermal_mode = ThermalMode.heating
|
|
|
+ else:
|
|
|
+ thermal_mode = ThermalMode.cooling
|
|
|
|
|
|
is_off_to_on = False
|
|
|
if on_off_set_duration[-1]['value'] == 1.0:
|