2020-03-23 09:14:21 +00:00
|
|
|
"""The DoorBird integration constants."""
|
2024-03-08 13:15:26 +00:00
|
|
|
|
2021-12-03 16:51:30 +00:00
|
|
|
from homeassistant.const import Platform
|
2020-03-23 09:14:21 +00:00
|
|
|
|
|
|
|
DOMAIN = "doorbird"
|
2024-07-04 09:41:56 +00:00
|
|
|
PLATFORMS = [Platform.BUTTON, Platform.CAMERA, Platform.EVENT]
|
2020-06-25 20:17:05 +00:00
|
|
|
|
2020-03-23 09:14:21 +00:00
|
|
|
CONF_EVENTS = "events"
|
|
|
|
MANUFACTURER = "Bird Home Automation Group"
|
|
|
|
DOORBIRD_OUI = "1CCAE3"
|
|
|
|
|
|
|
|
DOORBIRD_INFO_KEY_FIRMWARE = "FIRMWARE"
|
|
|
|
DOORBIRD_INFO_KEY_BUILD_NUMBER = "BUILD_NUMBER"
|
|
|
|
DOORBIRD_INFO_KEY_DEVICE_TYPE = "DEVICE-TYPE"
|
|
|
|
DOORBIRD_INFO_KEY_RELAYS = "RELAYS"
|
|
|
|
DOORBIRD_INFO_KEY_PRIMARY_MAC_ADDR = "PRIMARY_MAC_ADDR"
|
|
|
|
DOORBIRD_INFO_KEY_WIFI_MAC_ADDR = "WIFI_MAC_ADDR"
|
2021-02-25 07:16:20 +00:00
|
|
|
|
|
|
|
UNDO_UPDATE_LISTENER = "undo_update_listener"
|
2023-08-16 09:33:25 +00:00
|
|
|
|
|
|
|
API_URL = f"/api/{DOMAIN}"
|
2024-07-11 09:31:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
DEFAULT_DOORBELL_EVENT = "doorbell"
|
|
|
|
DEFAULT_MOTION_EVENT = "motion"
|
|
|
|
|
|
|
|
DEFAULT_EVENT_TYPES = (
|
|
|
|
(DEFAULT_DOORBELL_EVENT, "doorbell"),
|
|
|
|
(DEFAULT_MOTION_EVENT, "motion"),
|
|
|
|
)
|
|
|
|
|
|
|
|
HTTP_EVENT_TYPE = "http"
|
|
|
|
MIN_WEEKDAY = 104400
|
|
|
|
MAX_WEEKDAY = 104399
|