|
@@ -3,6 +3,7 @@ from fastapi import APIRouter, BackgroundTasks, Query
|
|
|
from app.controllers.equipment.ahu.supply_air_temperature_set import get_next_supply_air_temperature_set
|
|
|
from app.controllers.equipment.ahu.thermal_mode import get_thermal_mode
|
|
|
from app.controllers.equipment.fcu.on_ratio import start_on_ratio_mode
|
|
|
+from app.controllers.equipment.pau.switch import get_switch_action
|
|
|
from app.models.domain.devices import DevicesInstructionsBaseResponse
|
|
|
|
|
|
|
|
@@ -49,3 +50,27 @@ async def run_on_ratio_experiment(fcu_id: str, target: float, period: int, backg
|
|
|
'target': target,
|
|
|
'period': period
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+@router.get('/instructions/acatfu/equip-switch-set', response_model=DevicesInstructionsBaseResponse)
|
|
|
+async def get_acatfu_equip_switch_set(
|
|
|
+ project_id: str = Query(..., max_length=50, regex='^Pj', alias='projectId'),
|
|
|
+ device_id: str = Query(..., max_length=50, regex='^Eq', alias='equipId')
|
|
|
+):
|
|
|
+ action = await get_switch_action(project_id, device_id)
|
|
|
+
|
|
|
+ return {
|
|
|
+ 'projectId': project_id,
|
|
|
+ 'equipId': device_id,
|
|
|
+ 'output': {
|
|
|
+ 'equipSwitchSet': action
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+@router.get('/instructions/acatfu/supply-ari-temperature-set', response_model=DevicesInstructionsBaseResponse)
|
|
|
+async def get_acatfu_supply_air_temperature_set(
|
|
|
+ project_id: str = Query(..., max_length=50, regex='^Pj', alias='projectId'),
|
|
|
+ device_id: str = Query(..., max_length=50, regex='^Eq', alias='equipId')
|
|
|
+):
|
|
|
+ pass
|