|
@@ -35,6 +35,7 @@ from app.controllers.equipment.vav import (
|
|
|
)
|
|
|
from app.controllers.equipment.ventilation_fan.switch import build_acvtsf_switch_set
|
|
|
from app.controllers.equipment.vrf.basic import build_acatvi_instructions, build_acatvi_instructions_v2
|
|
|
+from app.controllers.equipment.vrf.early_start import build_acatvi_early_start_prediction
|
|
|
from app.controllers.equipment.vrf.mode import build_acatvi_mode
|
|
|
|
|
|
router = APIRouter()
|
|
@@ -242,6 +243,21 @@ async def get_acatvi_mode(params: domain_devices.ACATVIModeRequest):
|
|
|
return {"mode": new_mode}
|
|
|
|
|
|
|
|
|
+@router.post("/instructions/acatvi/early-start", response_model=domain_devices.ACATVIEarlyStartPredictionResponse)
|
|
|
+async def get_acatvi_early_start_prediction(
|
|
|
+ params: domain_devices.ACATVIEarlyStartPredictionRequest,
|
|
|
+ db: Session = Depends(get_db)
|
|
|
+):
|
|
|
+ minutes = build_acatvi_early_start_prediction(params, db)
|
|
|
+
|
|
|
+ logger.info(params)
|
|
|
+ logger.info(f"{params.space_id} - {minutes}")
|
|
|
+
|
|
|
+ resp = {"minutes": minutes}
|
|
|
+
|
|
|
+ return resp
|
|
|
+
|
|
|
+
|
|
|
@router.post(
|
|
|
"/instructions/acatfc", response_model=domain_devices.ACATFCInstructionsResponse
|
|
|
)
|