space.py 739 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- coding: utf-8 -*-
  2. import numpy as np
  3. from pydantic import BaseModel
  4. class SpaceBase(BaseModel):
  5. id: str | None
  6. realtime_temperature: float | None
  7. class Space(SpaceBase):
  8. equipment: list | None
  9. temperature_target: float | None = np.NAN
  10. comfortable_temperature: float | None = np.NAN
  11. diff: float | None = np.NAN
  12. class SpaceATVA(Space):
  13. vav_default_weight: float | None = np.NAN
  14. vav_temporary_weight: float | None = np.NAN
  15. vav_temporary_update_time: str | None = ""
  16. class SpaceATAH(Space):
  17. ahu_default_weight: float | None
  18. ahu_temporary_weight: float | None
  19. ahu_temporary_update_time: str = ""
  20. class SpaceATFU(SpaceBase):
  21. realtime_co2: float | None
  22. hcho: float | None