Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the sia integration."""
2 
3 from __future__ import annotations
4 
5 from typing import Final
6 
7 from homeassistant.const import Platform
8 
9 PLATFORMS: Final = [Platform.ALARM_CONTROL_PANEL, Platform.BINARY_SENSOR]
10 
11 DOMAIN: Final = "sia"
12 
13 ATTR_CODE: Final = "last_code"
14 ATTR_ZONE: Final = "last_zone"
15 ATTR_MESSAGE: Final = "last_message"
16 ATTR_ID: Final = "last_id"
17 ATTR_TIMESTAMP: Final = "last_timestamp"
18 
19 TITLE: Final = "SIA Alarm on port {}"
20 CONF_ACCOUNT: Final = "account"
21 CONF_ACCOUNTS: Final = "accounts"
22 CONF_ADDITIONAL_ACCOUNTS: Final = "additional_account"
23 CONF_ENCRYPTION_KEY: Final = "encryption_key"
24 CONF_IGNORE_TIMESTAMPS: Final = "ignore_timestamps"
25 CONF_PING_INTERVAL: Final = "ping_interval"
26 CONF_ZONES: Final = "zones"
27 
28 SIA_HUB_ZONE: Final = 0
29 SIA_EVENT: Final = "sia_event_{}_{}"
30 
31 KEY_ALARM: Final = "alarm"
32 KEY_SMOKE: Final = "smoke"
33 KEY_MOISTURE: Final = "moisture"
34 KEY_POWER: Final = "power"
35 KEY_CONNECTIVITY: Final = "connectivity"
36 
37 PREVIOUS_STATE: Final = "previous_state"
38 AVAILABILITY_EVENT_CODE: Final = "RP"