* Basic Homekit support * Added Temperatur Sensor * Added Window Cover * Code refactored * Added class HomeAccessory(Accessory) * Added class HomeBridge(Bridge) * Changed homekit imports to relative, to enable use in custom_components * Updated requirements * Added docs * Other smaller changes * Changed Homekit from entity to class * Changes based on feedback * Updated config schema * Add only covers that support set_cover_position * Addressed comments, updated to pyhap==1.1.5 * For lint: added files to gen_requirements_all * Added codeowner * Small change to Wrapper classes * Moved imports to import_types, small changes * Small changes, added tests * Homekit class: removed add_accessory since it's already covered by pyhap * Added test requirement: HAP-python * Added test suit for homekit setup and interaction between HA and pyhap * Added test suit for get_accessories function * Test bugfix * Added validate pincode, tests for cover and sensor types
18 lines
570 B
Python
18 lines
570 B
Python
"""Constants used be the homekit component."""
|
|
MANUFACTURER = 'HomeAssistant'
|
|
|
|
# Service: AccessoryInfomation
|
|
SERVICES_ACCESSORY_INFO = 'AccessoryInformation'
|
|
CHAR_MODEL = 'Model'
|
|
CHAR_MANUFACTURER = 'Manufacturer'
|
|
CHAR_SERIAL_NUMBER = 'SerialNumber'
|
|
|
|
# Service: TemperatureSensor
|
|
SERVICES_TEMPERATURE_SENSOR = 'TemperatureSensor'
|
|
CHAR_CURRENT_TEMPERATURE = 'CurrentTemperature'
|
|
|
|
# Service: WindowCovering
|
|
SERVICES_WINDOW_COVERING = 'WindowCovering'
|
|
CHAR_CURRENT_POSITION = 'CurrentPosition'
|
|
CHAR_TARGET_POSITION = 'TargetPosition'
|
|
CHAR_POSITION_STATE = 'PositionState'
|