-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.py
More file actions
37 lines (34 loc) · 910 Bytes
/
const.py
File metadata and controls
37 lines (34 loc) · 910 Bytes
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
DOMAIN = "alarmo_sia_bridge"
PROTOCOLS = ["TCP", "UDP"]
DEFAULT_POLLING_MINUTES = 30
# UI Configuration Keys to SIA Trigger Codes
SENSOR_TYPES = {
"fire_sensors": "FA",
"gas_sensors": "GA",
"holdup_sensors": "HA",
"heat_sensors": "KA",
"medical_sensors": "MA",
"panic_sensors": "PA",
"water_sensors": "WA"
}
# Mapping Triggers to their proper Restore Codes
RESTORE_MAP = {
"FA": "FH", # Fire Restore
"GA": "GH", # Gas Restore
"HA": "HH", # Holdup Restore
"KA": "KH", # Heat Restore
"MA": "MH", # Medical Restore
"PA": "PH", # Panic Restore
"WA": "WH", # Water Restore
"BA": "BH" # Burglary Restore
}
# Fallbacks for HA device classes if not manually mapped
SIA_MAPPING = {
"moisture": "WA",
"smoke": "FA",
"gas": "GA",
"safety": "BA",
"door": "BA",
"window": "BA",
"motion": "BA",
}