Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """The DoorBird integration constants."""
2 
3 from homeassistant.const import Platform
4 
5 DOMAIN = "doorbird"
6 PLATFORMS = [Platform.BUTTON, Platform.CAMERA, Platform.EVENT]
7 
8 CONF_EVENTS = "events"
9 MANUFACTURER = "Bird Home Automation Group"
10 DOORBIRD_OUI = "1CCAE3"
11 
12 DOORBIRD_INFO_KEY_FIRMWARE = "FIRMWARE"
13 DOORBIRD_INFO_KEY_BUILD_NUMBER = "BUILD_NUMBER"
14 DOORBIRD_INFO_KEY_DEVICE_TYPE = "DEVICE-TYPE"
15 DOORBIRD_INFO_KEY_RELAYS = "RELAYS"
16 DOORBIRD_INFO_KEY_PRIMARY_MAC_ADDR = "PRIMARY_MAC_ADDR"
17 DOORBIRD_INFO_KEY_WIFI_MAC_ADDR = "WIFI_MAC_ADDR"
18 
19 UNDO_UPDATE_LISTENER = "undo_update_listener"
20 
21 API_URL = f"/api/{DOMAIN}"
22 
23 
24 DEFAULT_DOORBELL_EVENT = "doorbell"
25 DEFAULT_MOTION_EVENT = "motion"
26 
27 DEFAULT_EVENT_TYPES = (
28  (DEFAULT_DOORBELL_EVENT, "doorbell"),
29  (DEFAULT_MOTION_EVENT, "motion"),
30 )
31 
32 HTTP_EVENT_TYPE = "http"
33 MIN_WEEKDAY = 104400
34 MAX_WEEKDAY = 104399