|
@@ -30,7 +30,7 @@ async def get_equipment_command(
|
|
if equipType.value == EquipmentName.FCU:
|
|
if equipType.value == EquipmentName.FCU:
|
|
fcu = await get_fcu_control_result(projectId, equipId)
|
|
fcu = await get_fcu_control_result(projectId, equipId)
|
|
output = {
|
|
output = {
|
|
- 'RunStatus': 1 if fcu.running_status else 0,
|
|
|
|
|
|
+ 'EquipSwitchSet': 1 if fcu.running_status else 0,
|
|
'WorkModeSet': 3,
|
|
'WorkModeSet': 3,
|
|
'FanGearSet': fcu.air_valve_speed.value,
|
|
'FanGearSet': fcu.air_valve_speed.value,
|
|
'IndoorAirTempSet': fcu.setting_temperature
|
|
'IndoorAirTempSet': fcu.setting_temperature
|
|
@@ -57,11 +57,12 @@ async def get_equipment_command_v2(equipment_control_info: EquipmentControlReque
|
|
if equipment_control_info.equipType == EquipmentName.FCU:
|
|
if equipment_control_info.equipType == EquipmentName.FCU:
|
|
fcu = await get_fcu_control_result(equipment_control_info.projectId, equipment_control_info.equipId)
|
|
fcu = await get_fcu_control_result(equipment_control_info.projectId, equipment_control_info.equipId)
|
|
output = {
|
|
output = {
|
|
- 'RunStatus': 1 if fcu.running_status else 0,
|
|
|
|
|
|
+ 'EquipSwitchSet': 1 if fcu.running_status else 0,
|
|
'WorkModeSet': 3,
|
|
'WorkModeSet': 3,
|
|
- 'FanGearSet': fcu.air_valve_speed.value,
|
|
|
|
'IndoorAirTempSet': int(round_half_up(fcu.setting_temperature, 1) * 10)
|
|
'IndoorAirTempSet': int(round_half_up(fcu.setting_temperature, 1) * 10)
|
|
}
|
|
}
|
|
|
|
+ if fcu.air_valve_speed.value != 0.0:
|
|
|
|
+ output.update({'FanGearSet': fcu.air_valve_speed.value})
|
|
elif equipment_control_info.equipType == EquipmentName.VAV:
|
|
elif equipment_control_info.equipType == EquipmentName.VAV:
|
|
vav = await get_vav_control_result(equipment_control_info.projectId, equipment_control_info.equipId)
|
|
vav = await get_vav_control_result(equipment_control_info.projectId, equipment_control_info.equipId)
|
|
output = {
|
|
output = {
|