mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 12:29:55 +00:00
Start preparing for homekit_controller config entries (#21564)
* Start preparing for homekit_controller config entries * Review feedback * Review feedback * Only use the vol.strip validator for pairing_code * CV not required now * Changes from review * Changes after review
This commit is contained in:
23
homeassistant/components/homekit_controller/const.py
Normal file
23
homeassistant/components/homekit_controller/const.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""Constants for the homekit_controller component."""
|
||||
DOMAIN = 'homekit_controller'
|
||||
|
||||
KNOWN_ACCESSORIES = "{}-accessories".format(DOMAIN)
|
||||
KNOWN_DEVICES = "{}-devices".format(DOMAIN)
|
||||
CONTROLLER = "{}-controller".format(DOMAIN)
|
||||
|
||||
# Mapping from Homekit type to component.
|
||||
HOMEKIT_ACCESSORY_DISPATCH = {
|
||||
'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',
|
||||
'motion': 'binary_sensor',
|
||||
'humidity': 'sensor',
|
||||
'light': 'sensor',
|
||||
'temperature': 'sensor'
|
||||
}
|
||||
Reference in New Issue
Block a user