meter_pro.py 1010 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. from enum import Enum
  2. class MeterProWeatherIcon(Enum):
  3. """Weather icons supported by the Meter Pro and Meter Pro CO2 displays."""
  4. NONE = 0
  5. SUNNY = 1
  6. CLOUDY = 2
  7. OVERCAST = 3
  8. LIGHT_RAIN = 4
  9. HEAVY_RAIN = 5
  10. LIGHT_SNOW = 6
  11. HEAVY_SNOW = 7
  12. class MeterProDisplayZone(Enum):
  13. """Configurable areas of the Meter Pro screen."""
  14. MIDDLE = 1
  15. BOTTOM = 2
  16. class MeterProZoneIcon(Enum):
  17. """Icon shown next to a display zone."""
  18. INDOOR = 1
  19. OUTDOOR = 2
  20. class MeterProDisplaySource(Enum):
  21. """Where a display zone takes its temperature and humidity from."""
  22. NONE = 0
  23. METER = 1
  24. METER_PLUS = 2
  25. INDOOR_OUTDOOR_METER = 3
  26. HUB = 4 # Hub 2 and Hub Mini Matter
  27. METER_PRO = 5 # this device when the MAC is empty, else another Meter Pro
  28. NETWORK = 6 # values written with the weather command
  29. WEATHER_STATION = 8
  30. HUB3 = 9
  31. class MeterProDateFormat(Enum):
  32. """Date layout on the screen."""
  33. MONTH_DAY = 0
  34. DAY_MONTH = 1