|
@@ -4,8 +4,14 @@ from typing import Callable, Optional
|
|
|
|
|
|
from fastapi import FastAPI
|
|
from fastapi import FastAPI
|
|
|
|
|
|
|
|
+from app.controllers.equipment.events import (
|
|
|
|
+ regulate_ahu_freq,
|
|
|
|
+ regulate_ahu_supply_air_temperature,
|
|
|
|
+ regulate_ahu_switch,
|
|
|
|
+ regulate_pau_switch,
|
|
|
|
+ regulate_ventilation_fan_switch
|
|
|
|
+)
|
|
from app.controllers.events import load_q_learning_model
|
|
from app.controllers.events import load_q_learning_model
|
|
-from app.controllers.equipment.events import regulate_ahu_freq, regulate_ahu_supply_air_temperature
|
|
|
|
|
|
|
|
|
|
|
|
def create_start_app_handler(app: Optional[FastAPI] = None) -> Callable:
|
|
def create_start_app_handler(app: Optional[FastAPI] = None) -> Callable:
|
|
@@ -13,5 +19,8 @@ def create_start_app_handler(app: Optional[FastAPI] = None) -> Callable:
|
|
await load_q_learning_model()
|
|
await load_q_learning_model()
|
|
await regulate_ahu_supply_air_temperature()
|
|
await regulate_ahu_supply_air_temperature()
|
|
await regulate_ahu_freq()
|
|
await regulate_ahu_freq()
|
|
|
|
+ await regulate_ahu_switch()
|
|
|
|
+ await regulate_pau_switch()
|
|
|
|
+ await regulate_ventilation_fan_switch()
|
|
|
|
|
|
return start_app
|
|
return start_app
|