highing666 пре 4 година
родитељ
комит
2e1af668e7
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/controllers/equipment/ahu/supply_air_temperature_set.py

+ 2 - 1
app/controllers/equipment/ahu/supply_air_temperature_set.py

@@ -130,7 +130,7 @@ async def get_planned(project_id: str, device_id: str) -> float:
         chill_water_valve_opening_set_duration = await platform.get_duration(
             InfoCode.chill_water_valve_opening_set, device_id, 15 * 60
         )
-        on_off_set_duration = await platform.get_duration(InfoCode.equip_switch_set, device_id, 15 * 60)
+        on_off_set_duration = await platform.get_duration(InfoCode.equip_switch_set, device_id, 20 * 60)
 
         # if hot_water_valve_opening_set_duration[-1]['value'] == 0.0:
         #     thermal_mode = ThermalMode.cooling
@@ -145,6 +145,7 @@ async def get_planned(project_id: str, device_id: str) -> float:
                 if item['value'] == 0.0:
                     is_off_to_on = True
                     break
+        logger.debug(f'{device_id} was off to on: {is_off_to_on}')
 
         is_thermal_mode_switched = False
         if len(set([item['value'] for item in hot_water_valve_opening_set_duration])) > 1: