core/homeassistant/components/homekit_controller/const.py

29 lines
791 B
Python
Raw Normal View History

"""Constants for the homekit_controller component."""
2019-07-31 19:25:30 +00:00
DOMAIN = "homekit_controller"
KNOWN_DEVICES = "{}-devices".format(DOMAIN)
CONTROLLER = "{}-controller".format(DOMAIN)
2019-07-31 19:25:30 +00:00
ENTITY_MAP = "{}-entity-map".format(DOMAIN)
2019-07-31 19:25:30 +00:00
HOMEKIT_DIR = ".homekit"
PAIRING_FILE = "pairing.json"
2019-03-28 03:01:10 +00:00
# Mapping from Homekit type to component.
HOMEKIT_ACCESSORY_DISPATCH = {
2019-07-31 19:25:30 +00:00
"lightbulb": "light",
"outlet": "switch",
"switch": "switch",
"thermostat": "climate",
"security-system": "alarm_control_panel",
"garage-door-opener": "cover",
"window": "cover",
"window-covering": "cover",
"lock-mechanism": "lock",
"contact": "binary_sensor",
"motion": "binary_sensor",
"carbon-dioxide": "sensor",
2019-07-31 19:25:30 +00:00
"humidity": "sensor",
"light": "sensor",
"temperature": "sensor",
}