-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.py
executable file
·63 lines (51 loc) · 1.25 KB
/
const.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"""Constants for the iParcelBox (Beta) integration."""
DOMAIN = "iparcelbox"
MANUFACTURER = "iParcelBox Ltd"
IPARCELBOX = "iparcelbox"
IPARCELBOX_INFO = "iparcelbox_info"
IPARCELBOX_API = "api"
IPARCELBOX_INFO_KEY_FIRMWARE = "fw_version"
IPARCELBOX_MAC_ADRESS = "mac"
PLATFORMS = ["lock", "sensor", "binary_sensor"]
IPARCELBOX_UPDATE_SIGNAL="iparcelbox_update_{}"
IPARCELBOX_MESSAGE_SIGNAL="iparcelbox_message_{}"
# IPARCELBOX_UPDATE_SIGNAL="iparcelbox_update"
CONF_SERIAL = "serial"
CONF_WEBHOOK_URL = "webhook_url"
REQUEST_TIMEOUT = 10
IS_LOCKED = "locked"
# Services
BOX_STATUS = "boxStatus"
LOCK_STATUS = "lockStatus"
LID_STATUS = "lidStatus"
PARCEL_COUNT = "parcelCount"
LAST_OPENED = "lastOpened"
ROUTER_RSSI = "routerRSSI"
ROUTER_SSID = "routerSSID"
BATTERY_LEVEL = "battery"
BATTERY_CHARGING = "charging"
STATUS_MESSAGE = "message"
ASLEEP = "asleep"
SENSORS = [
BOX_STATUS,
PARCEL_COUNT,
LAST_OPENED,
ROUTER_RSSI,
ROUTER_SSID,
BATTERY_LEVEL,
STATUS_MESSAGE
]
BINARY_SENSORS = [
LOCK_STATUS,
LID_STATUS,
ASLEEP,
BATTERY_CHARGING,
]
SERVICE_ALLOW_DELIVERY = "allowdelivery"
SERVICE_EMPTY_BOX = "emptybox"
SERVICE_LOCK_BOX = "lockbox"
SERVICES = [
SERVICE_ALLOW_DELIVERY,
SERVICE_EMPTY_BOX,
SERVICE_LOCK_BOX,
]