2018-11-14 20:23:49 +00:00
|
|
|
"""Define constants for the SimpliSafe component."""
|
|
|
|
from datetime import timedelta
|
2019-03-21 05:56:46 +00:00
|
|
|
import logging
|
2018-11-14 20:23:49 +00:00
|
|
|
|
2019-05-07 22:52:49 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
2018-11-14 20:23:49 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "rainmachine"
|
2018-11-14 20:23:49 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DATA_CLIENT = "client"
|
2020-01-26 03:27:35 +00:00
|
|
|
DATA_PROGRAMS = "programs"
|
|
|
|
DATA_PROVISION_SETTINGS = "provision.settings"
|
|
|
|
DATA_RESTRICTIONS_CURRENT = "restrictions.current"
|
|
|
|
DATA_RESTRICTIONS_UNIVERSAL = "restrictions.universal"
|
|
|
|
DATA_ZONES = "zones"
|
|
|
|
DATA_ZONES_DETAILS = "zones_details"
|
2018-11-14 20:23:49 +00:00
|
|
|
|
|
|
|
DEFAULT_PORT = 8080
|
|
|
|
DEFAULT_SCAN_INTERVAL = timedelta(seconds=60)
|
2018-12-05 17:31:32 +00:00
|
|
|
DEFAULT_SSL = True
|
2018-11-14 20:23:49 +00:00
|
|
|
|
2020-01-26 03:27:35 +00:00
|
|
|
PROGRAM_UPDATE_TOPIC = f"{DOMAIN}_program_update"
|
|
|
|
SENSOR_UPDATE_TOPIC = f"{DOMAIN}_data_update"
|
|
|
|
ZONE_UPDATE_TOPIC = f"{DOMAIN}_zone_update"
|