12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- from enum import Enum
- from typing import Dict, List, Optional
- from pydantic import BaseModel, Field
- class ThermalMode(str, Enum):
- cooling = 'cooling'
- heating = 'heating'
- hold = 'hold'
- class DevicesInstructionsBaseResponse(BaseModel):
- project_id: str = Field(None, alias='projectId')
- device_id: str = Field(None, alias='equipId')
- output: Dict
- class DevicesEarlyStartTime(BaseModel):
- project_id: str = Field(None, alias='projectId')
- space_id: str = Field(None, alias='spaceId')
- minutes: float
- class ACATVIInstructionsRequest(BaseModel):
- return_air_temperature: float
- space_temperature_target: float
- space_realtime_temperature: float
- class ACATVIInstructionsTemporaryResponse(BaseModel):
- output: Dict
- class ACATVIInstructionsResponse(BaseModel):
- switch_set: Optional[str]
- speed_set: Optional[str]
- temperature_set: Optional[str]
- mode_set: Optional[str]
- class ACATFCInstructionsRequest(BaseModel):
- season: str
- space_temperature_target: float
- space_realtime_temperature: Optional[float]
- class ACATFCInstructionsResponse(BaseModel):
- switch_set: int = Field(None, alias='onOff')
- speed_set: int = Field(None, alias='speed')
- temperature_set: float = Field(None, alias='temperature')
- mode_set: int = Field(None, alias='mode')
- water_valve_switch_set: int = Field(None, alias='water')
- class Space(BaseModel):
- realtime_temperature: float
- temperature_target: float
- vav_default_weight: float
- vav_temporary_weight: float
- vav_temporary_update_time: str
- class ACATVAInstructionsRequest(BaseModel):
- season: str
- supply_air_temperature: float
- supply_air_flow: float
- supply_air_flow_lower_limit: float
- supply_air_flow_upper_limit: float
- spaces: List[Space]
- class ACATVAInstructionsResponse(BaseModel):
- supply_air_flow_set: float = Field(None, alias='SupplyAirFlowSet')
- virtual_temperature_target_set: float = Field(None, alias='TargetTemperatureSet')
- virtual_realtime_temperature: float = Field(None, alias='VirtualRealtimeTemperature')
|