2017-08-29 20:40:08 +00:00
|
|
|
"""Constants for the cloud component."""
|
|
|
|
DOMAIN = 'cloud'
|
2017-10-15 02:43:14 +00:00
|
|
|
CONFIG_DIR = '.cloud'
|
2017-08-29 20:40:08 +00:00
|
|
|
REQUEST_TIMEOUT = 10
|
|
|
|
|
2018-11-20 22:23:07 +00:00
|
|
|
PREF_ENABLE_ALEXA = 'alexa_enabled'
|
|
|
|
PREF_ENABLE_GOOGLE = 'google_enabled'
|
|
|
|
PREF_GOOGLE_ALLOW_UNLOCK = 'google_allow_unlock'
|
2018-11-26 13:10:18 +00:00
|
|
|
PREF_CLOUDHOOKS = 'cloudhooks'
|
2018-11-20 22:23:07 +00:00
|
|
|
|
2017-08-29 20:40:08 +00:00
|
|
|
SERVERS = {
|
2017-12-16 08:42:25 +00:00
|
|
|
'production': {
|
|
|
|
'cognito_client_id': '60i2uvhvbiref2mftj7rgcrt9u',
|
|
|
|
'user_pool_id': 'us-east-1_87ll5WOP8',
|
|
|
|
'region': 'us-east-1',
|
2018-03-23 19:13:52 +00:00
|
|
|
'relayer': 'wss://cloud.hass.io:8000/websocket',
|
|
|
|
'google_actions_sync_url': ('https://24ab3v80xd.execute-api.us-east-1.'
|
|
|
|
'amazonaws.com/prod/smart_home_sync'),
|
2018-09-20 12:53:13 +00:00
|
|
|
'subscription_info_url': ('https://stripe-api.nabucasa.com/payments/'
|
2018-11-26 13:10:18 +00:00
|
|
|
'subscription_info'),
|
2018-12-06 08:20:53 +00:00
|
|
|
'cloudhook_create_url': 'https://webhooks-api.nabucasa.com/generate'
|
2017-12-16 08:42:25 +00:00
|
|
|
}
|
2017-08-29 20:40:08 +00:00
|
|
|
}
|
2017-11-15 07:16:19 +00:00
|
|
|
|
|
|
|
MESSAGE_EXPIRATION = """
|
|
|
|
It looks like your Home Assistant Cloud subscription has expired. Please check
|
|
|
|
your [account page](/config/cloud/account) to continue using the service.
|
|
|
|
"""
|
2018-03-02 18:33:05 +00:00
|
|
|
|
|
|
|
MESSAGE_AUTH_FAIL = """
|
|
|
|
You have been logged out of Home Assistant Cloud because we have been unable
|
|
|
|
to verify your credentials. Please [log in](/config/cloud) again to continue
|
|
|
|
using the service.
|
|
|
|
"""
|
2019-03-04 03:03:49 +00:00
|
|
|
|
|
|
|
STATE_CONNECTING = 'connecting'
|
|
|
|
STATE_CONNECTED = 'connected'
|
|
|
|
STATE_DISCONNECTED = 'disconnected'
|