* Changed version of "HAP-python" to "v1.1.7" * Updated acc file to simplify init calls * Code refactored and '°F' temp Sensors added * Changed call to 'HomeAccessory' and 'HomeBridge' * Extended function of 'add_preload_service' to add additional characteristics * Added function to override characteristic property values * TemperatureSensor * Added unit * Added calc_temperature * Updated tests
21 lines
623 B
Python
21 lines
623 B
Python
"""Constants used be the HomeKit component."""
|
|
MANUFACTURER = 'HomeAssistant'
|
|
|
|
# Service: AccessoryInfomation
|
|
SERV_ACCESSORY_INFO = 'AccessoryInformation'
|
|
CHAR_MODEL = 'Model'
|
|
CHAR_MANUFACTURER = 'Manufacturer'
|
|
CHAR_SERIAL_NUMBER = 'SerialNumber'
|
|
|
|
# Service: TemperatureSensor
|
|
SERV_TEMPERATURE_SENSOR = 'TemperatureSensor'
|
|
CHAR_CURRENT_TEMPERATURE = 'CurrentTemperature'
|
|
|
|
# Service: WindowCovering
|
|
SERV_WINDOW_COVERING = 'WindowCovering'
|
|
CHAR_CURRENT_POSITION = 'CurrentPosition'
|
|
CHAR_TARGET_POSITION = 'TargetPosition'
|
|
CHAR_POSITION_STATE = 'PositionState'
|
|
|
|
# Properties
|
|
PROP_CELSIUS = {'minValue': -273, 'maxValue': 999}
|