2020-02-25 18:18:15 +00:00
|
|
|
"""Constants for August devices."""
|
|
|
|
|
|
|
|
from datetime import timedelta
|
|
|
|
|
2021-12-03 16:51:30 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2022-01-31 04:50:49 +00:00
|
|
|
DEFAULT_TIMEOUT = 15
|
2020-02-25 18:18:15 +00:00
|
|
|
|
|
|
|
CONF_ACCESS_TOKEN_CACHE_FILE = "access_token_cache_file"
|
|
|
|
CONF_LOGIN_METHOD = "login_method"
|
|
|
|
CONF_INSTALL_ID = "install_id"
|
|
|
|
|
|
|
|
VERIFICATION_CODE_KEY = "verification_code"
|
|
|
|
|
|
|
|
NOTIFICATION_ID = "august_notification"
|
|
|
|
NOTIFICATION_TITLE = "August"
|
|
|
|
|
2020-07-15 04:03:24 +00:00
|
|
|
MANUFACTURER = "August Home Inc."
|
|
|
|
|
2020-02-25 18:18:15 +00:00
|
|
|
DEFAULT_AUGUST_CONFIG_FILE = ".august.conf"
|
|
|
|
|
|
|
|
DEFAULT_NAME = "August"
|
|
|
|
DOMAIN = "august"
|
|
|
|
|
2020-03-11 00:09:49 +00:00
|
|
|
OPERATION_METHOD_AUTORELOCK = "autorelock"
|
|
|
|
OPERATION_METHOD_REMOTE = "remote"
|
|
|
|
OPERATION_METHOD_KEYPAD = "keypad"
|
|
|
|
OPERATION_METHOD_MOBILE_DEVICE = "mobile"
|
|
|
|
|
|
|
|
ATTR_OPERATION_AUTORELOCK = "autorelock"
|
|
|
|
ATTR_OPERATION_METHOD = "method"
|
|
|
|
ATTR_OPERATION_REMOTE = "remote"
|
|
|
|
ATTR_OPERATION_KEYPAD = "keypad"
|
|
|
|
|
2020-02-27 02:48:44 +00:00
|
|
|
# Limit battery, online, and hardware updates to hourly
|
2020-02-25 18:18:15 +00:00
|
|
|
# in order to reduce the number of api requests and
|
|
|
|
# avoid hitting rate limits
|
2020-02-27 02:48:44 +00:00
|
|
|
MIN_TIME_BETWEEN_DETAIL_UPDATES = timedelta(hours=1)
|
2020-02-25 18:18:15 +00:00
|
|
|
|
|
|
|
# Activity needs to be checked more frequently as the
|
|
|
|
# doorbell motion and rings are included here
|
2020-02-27 02:48:44 +00:00
|
|
|
ACTIVITY_UPDATE_INTERVAL = timedelta(seconds=10)
|
2020-02-25 18:18:15 +00:00
|
|
|
|
|
|
|
LOGIN_METHODS = ["phone", "email"]
|
|
|
|
|
2021-12-03 16:51:30 +00:00
|
|
|
PLATFORMS = [
|
2022-02-11 23:13:35 +00:00
|
|
|
Platform.BUTTON,
|
2021-12-03 16:51:30 +00:00
|
|
|
Platform.CAMERA,
|
|
|
|
Platform.BINARY_SENSOR,
|
|
|
|
Platform.LOCK,
|
|
|
|
Platform.SENSOR,
|
|
|
|
]
|