1
0
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:
Jc2k
2019-03-07 03:44:52 +00:00
committed by Paulus Schoutsen
parent 5616505032
commit dbf129dfdd
8 changed files with 1219 additions and 52 deletions

View 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'
}