2018-02-25 09:58:13 +00:00
|
|
|
"""Constants used be the HomeKit component."""
|
2020-05-01 04:05:06 +00:00
|
|
|
|
2018-05-21 02:25:53 +00:00
|
|
|
# #### Misc ####
|
2018-04-06 21:11:53 +00:00
|
|
|
DEBOUNCE_TIMEOUT = 0.5
|
2020-03-31 00:47:03 +00:00
|
|
|
DEVICE_PRECISION_LEEWAY = 6
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "homekit"
|
|
|
|
HOMEKIT_FILE = ".homekit.state"
|
2020-04-21 22:38:43 +00:00
|
|
|
HOMEKIT_PAIRING_QR = "homekit-pairing-qr"
|
|
|
|
HOMEKIT_PAIRING_QR_SECRET = "homekit-pairing-qr-secret"
|
2020-05-01 04:05:06 +00:00
|
|
|
HOMEKIT = "homekit"
|
|
|
|
SHUTDOWN_TIMEOUT = 30
|
|
|
|
CONF_ENTRY_INDEX = "index"
|
2020-03-31 00:47:03 +00:00
|
|
|
|
2020-05-07 14:55:09 +00:00
|
|
|
# ### Codecs ####
|
|
|
|
VIDEO_CODEC_COPY = "copy"
|
|
|
|
VIDEO_CODEC_LIBX264 = "libx264"
|
|
|
|
AUDIO_CODEC_OPUS = "libopus"
|
|
|
|
VIDEO_CODEC_H264_OMX = "h264_omx"
|
|
|
|
AUDIO_CODEC_COPY = "copy"
|
|
|
|
|
2018-10-16 11:32:53 +00:00
|
|
|
# #### Attributes ####
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_DISPLAY_NAME = "display_name"
|
|
|
|
ATTR_VALUE = "value"
|
2021-06-11 11:35:03 +00:00
|
|
|
ATTR_INTEGRATION = "platform"
|
2020-05-19 13:11:04 +00:00
|
|
|
ATTR_KEY_NAME = "key_name"
|
2020-10-23 17:18:02 +00:00
|
|
|
# Current attribute used by homekit_controller
|
|
|
|
ATTR_OBSTRUCTION_DETECTED = "obstruction-detected"
|
2018-10-16 11:32:53 +00:00
|
|
|
|
2018-05-21 02:25:53 +00:00
|
|
|
# #### Config ####
|
2020-10-15 16:59:50 +00:00
|
|
|
CONF_HOMEKIT_MODE = "mode"
|
2019-10-23 05:06:21 +00:00
|
|
|
CONF_ADVERTISE_IP = "advertise_ip"
|
2020-05-07 14:55:09 +00:00
|
|
|
CONF_AUDIO_CODEC = "audio_codec"
|
2020-05-05 00:03:46 +00:00
|
|
|
CONF_AUDIO_MAP = "audio_map"
|
|
|
|
CONF_AUDIO_PACKET_SIZE = "audio_packet_size"
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_AUTO_START = "auto_start"
|
|
|
|
CONF_ENTITY_CONFIG = "entity_config"
|
|
|
|
CONF_FEATURE = "feature"
|
|
|
|
CONF_FEATURE_LIST = "feature_list"
|
|
|
|
CONF_FILTER = "filter"
|
2021-02-24 00:22:23 +00:00
|
|
|
CONF_EXCLUDE_ACCESSORY_MODE = "exclude_accessory_mode"
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_LINKED_BATTERY_SENSOR = "linked_battery_sensor"
|
2020-04-22 00:43:49 +00:00
|
|
|
CONF_LINKED_BATTERY_CHARGING_SENSOR = "linked_battery_charging_sensor"
|
2020-07-31 19:41:36 +00:00
|
|
|
CONF_LINKED_DOORBELL_SENSOR = "linked_doorbell_sensor"
|
2020-05-25 23:05:38 +00:00
|
|
|
CONF_LINKED_MOTION_SENSOR = "linked_motion_sensor"
|
2020-07-02 17:53:11 +00:00
|
|
|
CONF_LINKED_HUMIDITY_SENSOR = "linked_humidity_sensor"
|
2020-10-23 17:18:02 +00:00
|
|
|
CONF_LINKED_OBSTRUCTION_SENSOR = "linked_obstruction_sensor"
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_LOW_BATTERY_THRESHOLD = "low_battery_threshold"
|
2020-05-05 00:03:46 +00:00
|
|
|
CONF_MAX_FPS = "max_fps"
|
|
|
|
CONF_MAX_HEIGHT = "max_height"
|
|
|
|
CONF_MAX_WIDTH = "max_width"
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_SAFE_MODE = "safe_mode"
|
2020-04-12 14:59:50 +00:00
|
|
|
CONF_ZEROCONF_DEFAULT_INTERFACE = "zeroconf_default_interface"
|
2020-05-05 00:03:46 +00:00
|
|
|
CONF_STREAM_ADDRESS = "stream_address"
|
|
|
|
CONF_STREAM_SOURCE = "stream_source"
|
|
|
|
CONF_SUPPORT_AUDIO = "support_audio"
|
2020-05-07 14:55:09 +00:00
|
|
|
CONF_VIDEO_CODEC = "video_codec"
|
2020-05-05 00:03:46 +00:00
|
|
|
CONF_VIDEO_MAP = "video_map"
|
|
|
|
CONF_VIDEO_PACKET_SIZE = "video_packet_size"
|
2020-07-25 17:12:14 +00:00
|
|
|
CONF_STREAM_COUNT = "stream_count"
|
2018-03-15 01:48:21 +00:00
|
|
|
|
2018-05-21 02:25:53 +00:00
|
|
|
# #### Config Defaults ####
|
2020-05-11 14:09:48 +00:00
|
|
|
DEFAULT_SUPPORT_AUDIO = False
|
2020-05-07 14:55:09 +00:00
|
|
|
DEFAULT_AUDIO_CODEC = AUDIO_CODEC_OPUS
|
2020-05-05 00:03:46 +00:00
|
|
|
DEFAULT_AUDIO_MAP = "0:a:0"
|
|
|
|
DEFAULT_AUDIO_PACKET_SIZE = 188
|
2018-03-15 01:48:21 +00:00
|
|
|
DEFAULT_AUTO_START = True
|
2021-02-24 00:22:23 +00:00
|
|
|
DEFAULT_EXCLUDE_ACCESSORY_MODE = False
|
2019-04-30 00:02:54 +00:00
|
|
|
DEFAULT_LOW_BATTERY_THRESHOLD = 20
|
2020-05-05 00:03:46 +00:00
|
|
|
DEFAULT_MAX_FPS = 30
|
|
|
|
DEFAULT_MAX_HEIGHT = 1080
|
|
|
|
DEFAULT_MAX_WIDTH = 1920
|
2021-03-07 07:41:56 +00:00
|
|
|
DEFAULT_PORT = 21063
|
|
|
|
DEFAULT_CONFIG_FLOW_PORT = 21064
|
2018-11-16 10:08:39 +00:00
|
|
|
DEFAULT_SAFE_MODE = False
|
2020-05-07 14:55:09 +00:00
|
|
|
DEFAULT_VIDEO_CODEC = VIDEO_CODEC_LIBX264
|
2020-05-05 00:03:46 +00:00
|
|
|
DEFAULT_VIDEO_MAP = "0:v:0"
|
|
|
|
DEFAULT_VIDEO_PACKET_SIZE = 1316
|
2020-07-25 17:12:14 +00:00
|
|
|
DEFAULT_STREAM_COUNT = 3
|
2018-03-15 01:48:21 +00:00
|
|
|
|
2018-05-28 14:26:33 +00:00
|
|
|
# #### Features ####
|
2019-07-31 19:25:30 +00:00
|
|
|
FEATURE_ON_OFF = "on_off"
|
|
|
|
FEATURE_PLAY_PAUSE = "play_pause"
|
|
|
|
FEATURE_PLAY_STOP = "play_stop"
|
|
|
|
FEATURE_TOGGLE_MUTE = "toggle_mute"
|
2018-05-28 14:26:33 +00:00
|
|
|
|
2018-10-16 11:32:53 +00:00
|
|
|
# #### HomeKit Component Event ####
|
2019-07-31 19:25:30 +00:00
|
|
|
EVENT_HOMEKIT_CHANGED = "homekit_state_change"
|
2020-05-19 13:11:04 +00:00
|
|
|
EVENT_HOMEKIT_TV_REMOTE_KEY_PRESSED = "homekit_tv_remote_key_pressed"
|
2018-10-16 11:32:53 +00:00
|
|
|
|
2020-10-15 16:59:50 +00:00
|
|
|
# #### HomeKit Modes ####
|
|
|
|
HOMEKIT_MODE_ACCESSORY = "accessory"
|
|
|
|
HOMEKIT_MODE_BRIDGE = "bridge"
|
|
|
|
DEFAULT_HOMEKIT_MODE = HOMEKIT_MODE_BRIDGE
|
|
|
|
HOMEKIT_MODES = [HOMEKIT_MODE_BRIDGE, HOMEKIT_MODE_ACCESSORY]
|
|
|
|
|
2018-05-21 02:25:53 +00:00
|
|
|
# #### HomeKit Component Services ####
|
2019-07-31 19:25:30 +00:00
|
|
|
SERVICE_HOMEKIT_START = "start"
|
|
|
|
SERVICE_HOMEKIT_RESET_ACCESSORY = "reset_accessory"
|
2021-07-22 10:44:36 +00:00
|
|
|
SERVICE_HOMEKIT_UNPAIR = "unpair"
|
2018-03-15 01:48:21 +00:00
|
|
|
|
2018-05-21 02:25:53 +00:00
|
|
|
# #### String Constants ####
|
2019-07-31 19:25:30 +00:00
|
|
|
BRIDGE_MODEL = "Bridge"
|
|
|
|
BRIDGE_NAME = "Home Assistant Bridge"
|
2020-05-01 04:05:06 +00:00
|
|
|
SHORT_BRIDGE_NAME = "HASS Bridge"
|
2021-01-29 15:57:13 +00:00
|
|
|
SHORT_ACCESSORY_NAME = "HASS Accessory"
|
2019-07-31 19:25:30 +00:00
|
|
|
BRIDGE_SERIAL_NUMBER = "homekit.bridge"
|
|
|
|
MANUFACTURER = "Home Assistant"
|
2018-02-19 22:46:22 +00:00
|
|
|
|
2018-06-01 16:04:54 +00:00
|
|
|
# #### Switch Types ####
|
2019-07-31 19:25:30 +00:00
|
|
|
TYPE_FAUCET = "faucet"
|
|
|
|
TYPE_OUTLET = "outlet"
|
|
|
|
TYPE_SHOWER = "shower"
|
|
|
|
TYPE_SPRINKLER = "sprinkler"
|
|
|
|
TYPE_SWITCH = "switch"
|
|
|
|
TYPE_VALVE = "valve"
|
2018-06-01 16:04:54 +00:00
|
|
|
|
2018-03-15 01:48:21 +00:00
|
|
|
# #### Services ####
|
2019-07-31 19:25:30 +00:00
|
|
|
SERV_ACCESSORY_INFO = "AccessoryInformation"
|
|
|
|
SERV_AIR_QUALITY_SENSOR = "AirQualitySensor"
|
|
|
|
SERV_BATTERY_SERVICE = "BatteryService"
|
2020-05-11 13:17:10 +00:00
|
|
|
SERV_CAMERA_RTP_STREAM_MANAGEMENT = "CameraRTPStreamManagement"
|
2019-07-31 19:25:30 +00:00
|
|
|
SERV_CARBON_DIOXIDE_SENSOR = "CarbonDioxideSensor"
|
|
|
|
SERV_CARBON_MONOXIDE_SENSOR = "CarbonMonoxideSensor"
|
|
|
|
SERV_CONTACT_SENSOR = "ContactSensor"
|
2020-07-31 19:41:36 +00:00
|
|
|
SERV_DOORBELL = "Doorbell"
|
2019-07-31 19:25:30 +00:00
|
|
|
SERV_FANV2 = "Fanv2"
|
|
|
|
SERV_GARAGE_DOOR_OPENER = "GarageDoorOpener"
|
2020-07-02 17:53:11 +00:00
|
|
|
SERV_HUMIDIFIER_DEHUMIDIFIER = "HumidifierDehumidifier"
|
2019-07-31 19:25:30 +00:00
|
|
|
SERV_HUMIDITY_SENSOR = "HumiditySensor"
|
|
|
|
SERV_INPUT_SOURCE = "InputSource"
|
|
|
|
SERV_LEAK_SENSOR = "LeakSensor"
|
|
|
|
SERV_LIGHT_SENSOR = "LightSensor"
|
|
|
|
SERV_LIGHTBULB = "Lightbulb"
|
|
|
|
SERV_LOCK = "LockMechanism"
|
|
|
|
SERV_MOTION_SENSOR = "MotionSensor"
|
|
|
|
SERV_OCCUPANCY_SENSOR = "OccupancySensor"
|
|
|
|
SERV_OUTLET = "Outlet"
|
|
|
|
SERV_SECURITY_SYSTEM = "SecuritySystem"
|
|
|
|
SERV_SMOKE_SENSOR = "SmokeSensor"
|
2020-07-31 19:41:36 +00:00
|
|
|
SERV_SPEAKER = "Speaker"
|
2020-08-06 22:47:39 +00:00
|
|
|
SERV_STATELESS_PROGRAMMABLE_SWITCH = "StatelessProgrammableSwitch"
|
2019-07-31 19:25:30 +00:00
|
|
|
SERV_SWITCH = "Switch"
|
|
|
|
SERV_TELEVISION = "Television"
|
|
|
|
SERV_TELEVISION_SPEAKER = "TelevisionSpeaker"
|
|
|
|
SERV_TEMPERATURE_SENSOR = "TemperatureSensor"
|
|
|
|
SERV_THERMOSTAT = "Thermostat"
|
|
|
|
SERV_VALVE = "Valve"
|
2020-09-27 05:07:59 +00:00
|
|
|
SERV_WINDOW = "Window"
|
2019-07-31 19:25:30 +00:00
|
|
|
SERV_WINDOW_COVERING = "WindowCovering"
|
2018-03-01 23:20:02 +00:00
|
|
|
|
2018-03-15 01:48:21 +00:00
|
|
|
# #### Characteristics ####
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_ACTIVE = "Active"
|
|
|
|
CHAR_ACTIVE_IDENTIFIER = "ActiveIdentifier"
|
|
|
|
CHAR_AIR_PARTICULATE_DENSITY = "AirParticulateDensity"
|
|
|
|
CHAR_AIR_QUALITY = "AirQuality"
|
|
|
|
CHAR_BATTERY_LEVEL = "BatteryLevel"
|
|
|
|
CHAR_BRIGHTNESS = "Brightness"
|
|
|
|
CHAR_CARBON_DIOXIDE_DETECTED = "CarbonDioxideDetected"
|
|
|
|
CHAR_CARBON_DIOXIDE_LEVEL = "CarbonDioxideLevel"
|
|
|
|
CHAR_CARBON_DIOXIDE_PEAK_LEVEL = "CarbonDioxidePeakLevel"
|
|
|
|
CHAR_CARBON_MONOXIDE_DETECTED = "CarbonMonoxideDetected"
|
|
|
|
CHAR_CARBON_MONOXIDE_LEVEL = "CarbonMonoxideLevel"
|
|
|
|
CHAR_CARBON_MONOXIDE_PEAK_LEVEL = "CarbonMonoxidePeakLevel"
|
|
|
|
CHAR_CHARGING_STATE = "ChargingState"
|
|
|
|
CHAR_COLOR_TEMPERATURE = "ColorTemperature"
|
|
|
|
CHAR_CONFIGURED_NAME = "ConfiguredName"
|
|
|
|
CHAR_CONTACT_SENSOR_STATE = "ContactSensorState"
|
|
|
|
CHAR_COOLING_THRESHOLD_TEMPERATURE = "CoolingThresholdTemperature"
|
|
|
|
CHAR_CURRENT_AMBIENT_LIGHT_LEVEL = "CurrentAmbientLightLevel"
|
|
|
|
CHAR_CURRENT_DOOR_STATE = "CurrentDoorState"
|
|
|
|
CHAR_CURRENT_HEATING_COOLING = "CurrentHeatingCoolingState"
|
2020-07-02 17:53:11 +00:00
|
|
|
CHAR_CURRENT_HUMIDIFIER_DEHUMIDIFIER = "CurrentHumidifierDehumidifierState"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_CURRENT_POSITION = "CurrentPosition"
|
|
|
|
CHAR_CURRENT_HUMIDITY = "CurrentRelativeHumidity"
|
|
|
|
CHAR_CURRENT_SECURITY_STATE = "SecuritySystemCurrentState"
|
|
|
|
CHAR_CURRENT_TEMPERATURE = "CurrentTemperature"
|
2020-03-31 00:47:03 +00:00
|
|
|
CHAR_CURRENT_TILT_ANGLE = "CurrentHorizontalTiltAngle"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_CURRENT_VISIBILITY_STATE = "CurrentVisibilityState"
|
2020-07-02 17:53:11 +00:00
|
|
|
CHAR_DEHUMIDIFIER_THRESHOLD_HUMIDITY = "RelativeHumidityDehumidifierThreshold"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_FIRMWARE_REVISION = "FirmwareRevision"
|
|
|
|
CHAR_HEATING_THRESHOLD_TEMPERATURE = "HeatingThresholdTemperature"
|
|
|
|
CHAR_HUE = "Hue"
|
2020-07-02 17:53:11 +00:00
|
|
|
CHAR_HUMIDIFIER_THRESHOLD_HUMIDITY = "RelativeHumidityHumidifierThreshold"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_IDENTIFIER = "Identifier"
|
|
|
|
CHAR_IN_USE = "InUse"
|
|
|
|
CHAR_INPUT_SOURCE_TYPE = "InputSourceType"
|
|
|
|
CHAR_IS_CONFIGURED = "IsConfigured"
|
|
|
|
CHAR_LEAK_DETECTED = "LeakDetected"
|
|
|
|
CHAR_LOCK_CURRENT_STATE = "LockCurrentState"
|
|
|
|
CHAR_LOCK_TARGET_STATE = "LockTargetState"
|
|
|
|
CHAR_LINK_QUALITY = "LinkQuality"
|
|
|
|
CHAR_MANUFACTURER = "Manufacturer"
|
|
|
|
CHAR_MODEL = "Model"
|
|
|
|
CHAR_MOTION_DETECTED = "MotionDetected"
|
|
|
|
CHAR_MUTE = "Mute"
|
|
|
|
CHAR_NAME = "Name"
|
2020-10-23 17:18:02 +00:00
|
|
|
CHAR_OBSTRUCTION_DETECTED = "ObstructionDetected"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_OCCUPANCY_DETECTED = "OccupancyDetected"
|
|
|
|
CHAR_ON = "On"
|
|
|
|
CHAR_OUTLET_IN_USE = "OutletInUse"
|
|
|
|
CHAR_POSITION_STATE = "PositionState"
|
2020-07-31 19:41:36 +00:00
|
|
|
CHAR_PROGRAMMABLE_SWITCH_EVENT = "ProgrammableSwitchEvent"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_REMOTE_KEY = "RemoteKey"
|
|
|
|
CHAR_ROTATION_DIRECTION = "RotationDirection"
|
|
|
|
CHAR_ROTATION_SPEED = "RotationSpeed"
|
|
|
|
CHAR_SATURATION = "Saturation"
|
|
|
|
CHAR_SERIAL_NUMBER = "SerialNumber"
|
|
|
|
CHAR_SLEEP_DISCOVER_MODE = "SleepDiscoveryMode"
|
|
|
|
CHAR_SMOKE_DETECTED = "SmokeDetected"
|
|
|
|
CHAR_STATUS_LOW_BATTERY = "StatusLowBattery"
|
2020-05-11 13:17:10 +00:00
|
|
|
CHAR_STREAMING_STRATUS = "StreamingStatus"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_SWING_MODE = "SwingMode"
|
|
|
|
CHAR_TARGET_DOOR_STATE = "TargetDoorState"
|
|
|
|
CHAR_TARGET_HEATING_COOLING = "TargetHeatingCoolingState"
|
|
|
|
CHAR_TARGET_POSITION = "TargetPosition"
|
2020-07-02 17:53:11 +00:00
|
|
|
CHAR_TARGET_HUMIDIFIER_DEHUMIDIFIER = "TargetHumidifierDehumidifierState"
|
2020-03-31 18:45:33 +00:00
|
|
|
CHAR_TARGET_HUMIDITY = "TargetRelativeHumidity"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_TARGET_SECURITY_STATE = "SecuritySystemTargetState"
|
|
|
|
CHAR_TARGET_TEMPERATURE = "TargetTemperature"
|
2020-03-31 00:47:03 +00:00
|
|
|
CHAR_TARGET_TILT_ANGLE = "TargetHorizontalTiltAngle"
|
2020-04-12 22:27:17 +00:00
|
|
|
CHAR_HOLD_POSITION = "HoldPosition"
|
2019-07-31 19:25:30 +00:00
|
|
|
CHAR_TEMP_DISPLAY_UNITS = "TemperatureDisplayUnits"
|
|
|
|
CHAR_VALVE_TYPE = "ValveType"
|
|
|
|
CHAR_VOLUME = "Volume"
|
|
|
|
CHAR_VOLUME_SELECTOR = "VolumeSelector"
|
|
|
|
CHAR_VOLUME_CONTROL_TYPE = "VolumeControlType"
|
2019-05-05 15:51:48 +00:00
|
|
|
|
2018-02-26 03:27:40 +00:00
|
|
|
|
2018-03-15 01:48:21 +00:00
|
|
|
# #### Properties ####
|
2019-07-31 19:25:30 +00:00
|
|
|
PROP_MAX_VALUE = "maxValue"
|
|
|
|
PROP_MIN_VALUE = "minValue"
|
|
|
|
PROP_MIN_STEP = "minStep"
|
|
|
|
PROP_CELSIUS = {"minValue": -273, "maxValue": 999}
|
2020-07-02 17:53:11 +00:00
|
|
|
PROP_VALID_VALUES = "ValidValues"
|
2018-04-09 13:32:29 +00:00
|
|
|
|
2018-05-21 02:25:53 +00:00
|
|
|
# #### Device Classes ####
|
2019-07-31 19:25:30 +00:00
|
|
|
DEVICE_CLASS_DOOR = "door"
|
|
|
|
DEVICE_CLASS_GARAGE_DOOR = "garage_door"
|
|
|
|
DEVICE_CLASS_GAS = "gas"
|
|
|
|
DEVICE_CLASS_MOISTURE = "moisture"
|
|
|
|
DEVICE_CLASS_MOTION = "motion"
|
|
|
|
DEVICE_CLASS_OCCUPANCY = "occupancy"
|
|
|
|
DEVICE_CLASS_OPENING = "opening"
|
|
|
|
DEVICE_CLASS_PM25 = "pm25"
|
|
|
|
DEVICE_CLASS_SMOKE = "smoke"
|
|
|
|
DEVICE_CLASS_WINDOW = "window"
|
2018-09-21 10:51:02 +00:00
|
|
|
|
|
|
|
# #### Thresholds ####
|
|
|
|
THRESHOLD_CO = 25
|
|
|
|
THRESHOLD_CO2 = 1000
|
2018-10-19 19:04:05 +00:00
|
|
|
|
|
|
|
# #### Default values ####
|
|
|
|
DEFAULT_MIN_TEMP_WATER_HEATER = 40 # °C
|
|
|
|
DEFAULT_MAX_TEMP_WATER_HEATER = 60 # °C
|
2020-04-12 22:15:55 +00:00
|
|
|
|
2020-05-19 13:11:04 +00:00
|
|
|
# #### Media Player Key Names ####
|
|
|
|
KEY_ARROW_DOWN = "arrow_down"
|
|
|
|
KEY_ARROW_LEFT = "arrow_left"
|
|
|
|
KEY_ARROW_RIGHT = "arrow_right"
|
|
|
|
KEY_ARROW_UP = "arrow_up"
|
|
|
|
KEY_BACK = "back"
|
|
|
|
KEY_EXIT = "exit"
|
|
|
|
KEY_FAST_FORWARD = "fast_forward"
|
|
|
|
KEY_INFORMATION = "information"
|
|
|
|
KEY_NEXT_TRACK = "next_track"
|
|
|
|
KEY_PREVIOUS_TRACK = "previous_track"
|
|
|
|
KEY_REWIND = "rewind"
|
|
|
|
KEY_SELECT = "select"
|
|
|
|
KEY_PLAY_PAUSE = "play_pause"
|
|
|
|
|
2020-04-12 22:15:55 +00:00
|
|
|
# #### Door states ####
|
|
|
|
HK_DOOR_OPEN = 0
|
|
|
|
HK_DOOR_CLOSED = 1
|
|
|
|
HK_DOOR_OPENING = 2
|
|
|
|
HK_DOOR_CLOSING = 3
|
|
|
|
HK_DOOR_STOPPED = 4
|
2020-04-16 02:38:31 +00:00
|
|
|
|
|
|
|
# ### Position State ####
|
|
|
|
HK_POSITION_GOING_TO_MIN = 0
|
|
|
|
HK_POSITION_GOING_TO_MAX = 1
|
|
|
|
HK_POSITION_STOPPED = 2
|
2020-04-22 00:43:49 +00:00
|
|
|
|
|
|
|
# ### Charging State ###
|
|
|
|
HK_NOT_CHARGING = 0
|
|
|
|
HK_CHARGING = 1
|
|
|
|
HK_NOT_CHARGABLE = 2
|
2020-05-01 04:05:06 +00:00
|
|
|
|
|
|
|
# ### Config Options ###
|
|
|
|
CONFIG_OPTIONS = [
|
|
|
|
CONF_FILTER,
|
|
|
|
CONF_AUTO_START,
|
|
|
|
CONF_SAFE_MODE,
|
2020-05-07 14:55:09 +00:00
|
|
|
CONF_ENTITY_CONFIG,
|
2020-10-15 16:59:50 +00:00
|
|
|
CONF_HOMEKIT_MODE,
|
2020-05-01 04:05:06 +00:00
|
|
|
]
|