|
@@ -31,6 +31,7 @@ from app.controllers.equipment.vav import (
|
|
)
|
|
)
|
|
from app.controllers.equipment.ventilation_fan.switch import build_acvtsf_switch_set
|
|
from app.controllers.equipment.ventilation_fan.switch import build_acvtsf_switch_set
|
|
from app.controllers.equipment.vrf.basic import build_acatvi_instructions
|
|
from app.controllers.equipment.vrf.basic import build_acatvi_instructions
|
|
|
|
+from app.controllers.equipment.vrf.mode import build_acatvi_mode
|
|
|
|
|
|
router = APIRouter()
|
|
router = APIRouter()
|
|
|
|
|
|
@@ -190,6 +191,21 @@ async def get_acatvi_instructions(
|
|
|
|
|
|
|
|
|
|
@router.post(
|
|
@router.post(
|
|
|
|
+ "/instructions/acatvi/mode", response_model=domain_devices.ACATVIModeResponse
|
|
|
|
+)
|
|
|
|
+async def get_acatvi_mode(params: domain_devices.ACATVIModeRequest):
|
|
|
|
+ new_mode = await build_acatvi_mode(params)
|
|
|
|
+
|
|
|
|
+ logger.info(params)
|
|
|
|
+ logger.info(
|
|
|
|
+ f"floor space temperature list: {params.space_temperature_list}"
|
|
|
|
+ f"- new mode: {new_mode}"
|
|
|
|
+ )
|
|
|
|
+
|
|
|
|
+ return {"mode": new_mode}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+@router.post(
|
|
"/instructions/acatfc", response_model=domain_devices.ACATFCInstructionsResponse
|
|
"/instructions/acatfc", response_model=domain_devices.ACATFCInstructionsResponse
|
|
)
|
|
)
|
|
async def get_acatfc_instructions(params: domain_devices.ACATFC2InstructionsRequest):
|
|
async def get_acatfc_instructions(params: domain_devices.ACATFC2InstructionsRequest):
|
|
@@ -243,7 +259,8 @@ async def get_acatfc2_instruction_v2(params: domain_devices.ACATFC2InstructionsR
|
|
|
|
|
|
|
|
|
|
@router.post(
|
|
@router.post(
|
|
- "/instructions/acatfc4/v2", response_model=domain_devices.ACATFC4InstructionsResponse
|
|
|
|
|
|
+ "/instructions/acatfc4/v2",
|
|
|
|
+ response_model=domain_devices.ACATFC4InstructionsResponse,
|
|
)
|
|
)
|
|
async def get_acatfc4_instrutions_v2(params: domain_devices.ACATFC4InstructionsRequest):
|
|
async def get_acatfc4_instrutions_v2(params: domain_devices.ACATFC4InstructionsRequest):
|
|
instructions = await build_acatfc4_instructions_v2(params)
|
|
instructions = await build_acatfc4_instructions_v2(params)
|