devices.py 516 B

1234567891011121314151617181920212223242526272829
  1. from enum import Enum
  2. from typing import Dict
  3. from pydantic import BaseModel
  4. class ThermalMode(str, Enum):
  5. cooling = 'cooling'
  6. heating = 'heating'
  7. hold = 'hold'
  8. class DevicesInstructionsBaseResponse(BaseModel):
  9. projectId: str
  10. equipId: str
  11. output: Dict
  12. class DevicesEarlyStartTime(BaseModel):
  13. projectId: str
  14. spaceId: str
  15. minutes: float
  16. class ACATVIInstructionsRequest(BaseModel):
  17. projectId: str
  18. equipId: str
  19. spaceTempTarget: float
  20. spaceRealTimeTemp: float