| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- from enum import Enum, IntFlag
- class MeterProWeatherIcon(Enum):
- """Weather icons supported by the Meter Pro and Meter Pro CO2 displays."""
- NONE = 0
- SUNNY = 1
- CLOUDY = 2
- OVERCAST = 3
- LIGHT_RAIN = 4
- HEAVY_RAIN = 5
- LIGHT_SNOW = 6
- HEAVY_SNOW = 7
- class MeterProDisplayZone(Enum):
- """Configurable areas of the Meter Pro screen."""
- MIDDLE = 1
- BOTTOM = 2
- class MeterProZoneIcon(Enum):
- """Icon shown next to a display zone."""
- INDOOR = 1
- OUTDOOR = 2
- class MeterProDisplaySource(Enum):
- """Where a display zone takes its temperature and humidity from."""
- NONE = 0
- METER = 1
- METER_PLUS = 2
- INDOOR_OUTDOOR_METER = 3
- HUB = 4 # Hub 2 and Hub Mini Matter
- METER_PRO = 5 # this device when the MAC is empty, else another Meter Pro
- NETWORK = 6 # values written with the weather command
- WEATHER_STATION = 8
- HUB3 = 9
- class MeterProDateFormat(Enum):
- """Date layout on the screen."""
- MONTH_DAY = 0
- DAY_MONTH = 1
- class MeterProComfortStatus(Enum):
- """The device's current temperature and humidity comfort status."""
- COMFORTABLE = 0
- DRY = 1
- WET = 2
- UNAVAILABLE = 3
- class MeterProAlarmMode(Enum):
- """How the meter signals a local threshold alarm."""
- DISABLED = 0
- FLASH_ONLY = 1
- SOUND_AND_FLASH = 2
- class MeterProAlarmVolume(Enum):
- """Alarm buzzer volume."""
- OFF = 1
- LOW = 2
- MEDIUM = 3
- HIGH = 4
- class MeterProCO2AlarmMode(IntFlag):
- """CO2 alarm conditions and the protocol's custom-setting bit."""
- DISABLED = 0
- LOW = 1
- HIGH = 2
- IN_RANGE = 4
- CUSTOM = 8
- class MeterProCO2AlarmStatus(Enum):
- """Current CO2 alarm reported by the meter."""
- NONE = 0
- LOW = 1
- HIGH = 2
- IN_RANGE = 3
- class MeterProTemperatureHumidityAlarmMode(IntFlag):
- """Local alarm conditions for the temperature and humidity limits."""
- DISABLED = 0
- TEMPERATURE_LOW = 0x01
- TEMPERATURE_HIGH = 0x02
- TEMPERATURE_IN_RANGE = 0x04
- HUMIDITY_LOW = 0x10
- HUMIDITY_HIGH = 0x20
- HUMIDITY_IN_RANGE = 0x40
- class MeterProTemperatureHumidityAlarmStatus(Enum):
- """Current alarm state of the temperature or humidity measurement."""
- NONE = 0
- LOW = 1
- HIGH = 2
- IN_RANGE = 3
|