2019-03-07 03:44:52 +00:00
|
|
|
"""Constants for the homekit_controller component."""
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "homekit_controller"
|
2019-03-07 03:44:52 +00:00
|
|
|
|
2019-09-03 15:27:14 +00:00
|
|
|
KNOWN_DEVICES = f"{DOMAIN}-devices"
|
|
|
|
CONTROLLER = f"{DOMAIN}-controller"
|
|
|
|
ENTITY_MAP = f"{DOMAIN}-entity-map"
|
2019-03-07 03:44:52 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
HOMEKIT_DIR = ".homekit"
|
|
|
|
PAIRING_FILE = "pairing.json"
|
2019-03-28 03:01:10 +00:00
|
|
|
|
2019-03-07 03:44:52 +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",
|
2019-08-01 10:24:46 +00:00
|
|
|
"carbon-dioxide": "sensor",
|
2019-07-31 19:25:30 +00:00
|
|
|
"humidity": "sensor",
|
|
|
|
"light": "sensor",
|
|
|
|
"temperature": "sensor",
|
2019-08-31 12:18:18 +00:00
|
|
|
"battery": "sensor",
|
2019-12-30 08:05:49 +00:00
|
|
|
"smoke": "binary_sensor",
|
2020-01-05 14:56:46 +00:00
|
|
|
"fan": "fan",
|
|
|
|
"fanv2": "fan",
|
2020-01-06 15:35:10 +00:00
|
|
|
"air-quality": "air_quality",
|
2019-03-07 03:44:52 +00:00
|
|
|
}
|