1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
|
import enum
class CurrentMediaStateValues(enum.IntEnum):
"""States that a TV can be."""
PLAYING = 0
PAUSED = 1
STOPPED = 2
class TargetMediaStateValues(enum.IntEnum):
"""States that a TV can be set to."""
PLAY = 0
PAUSE = 1
STOP = 2
class RemoteKeyValues(enum.IntEnum):
"""Keys that can be send using the Remote Key characteristic."""
REWIND = 0
FAST_FORWARD = 1
NEXT_TRACK = 2
PREVIOUS_TRACK = 3
ARROW_UP = 4
ARROW_DOWN = 5
ARROW_LEFT = 6
ARROW_RIGHT = 7
SELECT = 8
BACK = 9
EXIT = 10
PLAY_PAUSE = 11
INFORMATION = 15
class InputEventValues(enum.IntEnum):
"""Types of button press for CharacteristicsTypes.INPUT_EVENT."""
SINGLE_PRESS = 0
DOUBLE_PRESS = 1
LONG_PRESS = 2
class HeatingCoolingCurrentValues(enum.IntEnum):
"""What is a thermostat currently doing."""
IDLE = 0
HEATING = 1
COOLING = 2
class HeatingCoolingTargetValues(enum.IntEnum):
"""What is the current 'goal' for the thermostat."""
OFF = 0
HEAT = 1
COOL = 2
AUTO = 3
class InUseValues(enum.IntEnum):
"""Whether or not something is in use."""
NOT_IN_USE = 0
IN_USE = 1
class IsConfiguredValues(enum.IntEnum):
"""Whether or not something is configured."""
NOT_CONFIGURED = 0
CONFIGURED = 1
class ProgramModeValues(enum.IntEnum):
"""Whether or not a program is set."""
NO_PROGRAM_SCHEDULED = 0
PROGRAM_SCHEDULED = 1
PROGRAM_SCHEDULED_MANUAL_MODE = 2
class ValveTypeValues(enum.IntEnum):
"""The type of valve."""
GENERIC_VALVE = 0
IRRIGATION = 1
SHOWER_HEAD = 2
WATER_FAUCET = 3
class ActivationStateValues(enum.IntEnum):
"""Possible values for the current status of an accessory.
https://developer.apple.com/documentation/homekit/hmcharacteristicvalueactivationstate
"""
INACTIVE = 0
ACTIVE = 1
class AirQualityValues(enum.IntEnum):
"""Possible values for the air quality.
https://developer.apple.com/documentation/homekit/hmcharacteristicvalueairquality"""
UNKNOWN = 0
EXCELLENT = 1
GOOD = 2
FAIR = 3
INFERIOR = 4
POOR = 5
class CurrentAirPurifierStateValues(enum.IntEnum):
"""Possible values for the current state of an air purifier.
https://developer.apple.com/documentation/homekit/hmcharacteristicvaluecurrentairpurifierstate
"""
INACTIVE = 0
IDLE = 1
ACTIVE = 2
class TargetAirPurifierStateValues(enum.IntEnum):
"""Possible values for the target state of an air purifier.
https://developer.apple.com/documentation/homekit/hmcharacteristicvaluetargetairpurifierstate
"""
MANUAL = 0
AUTOMATIC = 1
class SwingModeValues(enum.IntEnum):
"""Possible values for fan movement.
https://developer.apple.com/documentation/homekit/hmcharacteristicvalueswingmode"""
DISABLED = 0
ENABLED = 1
class CurrentHeaterCoolerStateValues(enum.IntEnum):
"""Possible values for the current state of a device that heats or cools.
https://developer.apple.com/documentation/homekit/hmcharacteristicvaluecurrentheatercoolerstate
"""
INACTIVE = 0
IDLE = 1
HEATING = 2
COOLING = 3
class TargetHeaterCoolerStateValues(enum.IntEnum):
"""Possible values for the target state of a device that heats or cools.
https://developer.apple.com/documentation/homekit/hmcharacteristicvaluetargetheatercoolerstate
"""
AUTOMATIC = 0
HEAT = 1
COOL = 2
class StreamingStatusValues(enum.IntEnum):
"""The current streaming state of a camera."""
AVAILABLE = 0
IN_USE = 1
UNAVAILABLE = 2
class SessionControlCommandValues(enum.IntEnum):
"""Session control commands."""
END_SESSION = 0
START_SESSION = 1
SUSPEND_SESSION = 2
RESUME_SESSION = 3
RECONFIGURE_SESSION = 4
class VideoCodecTypeValues(enum.IntEnum):
H264 = 0
class ProfileIDValues(enum.IntEnum):
"""
The type of H.264 profile used.
3-255 are vendor specific.
"""
CONTRAINED_BASELINE_PROFILE = 0
MAIN_PROFILE = 1
HIGH_PROFILE = 2
class ProfileSupportLevelValues(enum.IntEnum):
"""
3-255 are reserved by Apple.
"""
THREE_ONE = 0
THREE_TWO = 1
FOUR = 2
class PacketizationModeValues(enum.IntEnum):
"""
1 - 255 are reserved by Apple.
"""
NON_INTERLEAVED_MODE = 0
class CVOEnabledValues(enum.IntEnum):
NOT_SUPPORTED = 0
SUPPORTED = 1
class AudioCodecValues(enum.IntEnum):
"""
7-255 reserved for Apple.
"""
AAC_ELD = 2
OPUS = 3
AMR = 5
AMR_WB = 6
class BitRateValues(enum.IntEnum):
VARIABLE = 0
CONSTANT = 1
class SampleRateValues(enum.IntEnum):
EIGHT_KHZ = 0
SIXTEEN_KHZ = 1
TWENTY_FOUR_KHZ = 2
class SRTPCryptoSuiteValues(enum.IntEnum):
AES_CM_128_HMAC_SHA1_80 = 0
AES_256_CM_HMAC_SHA1_80 = 1
DISABLED = 2
class ThreadNodeCapabilities(enum.IntFlag):
MINIMAL = 0x01
SLEEPY = 0x02
FULL = 0x04
ROUTER_ELIGIBLE = 0x08
BORDER_ROUTER_CAPABLE = 0x10
class ThreadStatus(enum.IntFlag):
DISABLED = 0x01
DETACHED = 0x02
JOINING = 0x04
CHILD = 0x08
ROUTER = 0x10
LEADER = 0x20
BORDER_ROUTER = 0x40
class TemperatureDisplayUnits(enum.IntEnum):
CELSIUS = 0
FAHRENHEIT = 1
|