Browse Source

add a param for ACATVA instructions router

highing666 3 years ago
parent
commit
1054207e65
1 changed files with 5 additions and 2 deletions
  1. 5 2
      app/controllers/equipment/vav.py

+ 5 - 2
app/controllers/equipment/vav.py

@@ -313,8 +313,11 @@ async def build_acatva_instructions(params: ACATVAInstructionsRequest) -> ACATVA
         temp_sp.diff = temp_sp.temperature_target - temp_sp.realtime_temperature
         space_params.append(temp_sp)
 
-    if params.supply_air_temperature > 0:
-        supply_air_temperature = params.supply_air_temperature
+    if params.supply_air_temperature == -1:
+        if params.acatah_supply_air_temperature == -1:
+            supply_air_temperature = np.NAN
+        else:
+            supply_air_temperature = params.acatah_supply_air_temperature
     else:
         supply_air_temperature = params.acatah_supply_air_temperature