mirror of https://github.com/home-assistant/core
49 lines
1.0 KiB
Python
49 lines
1.0 KiB
Python
"""Konnected constants."""
|
|
|
|
DOMAIN = "konnected"
|
|
|
|
CONF_ACTIVATION = "activation"
|
|
CONF_API_HOST = "api_host"
|
|
CONF_DEFAULT_OPTIONS = "default_options"
|
|
CONF_MOMENTARY = "momentary"
|
|
CONF_PAUSE = "pause"
|
|
CONF_POLL_INTERVAL = "poll_interval"
|
|
CONF_PRECISION = "precision"
|
|
CONF_INVERSE = "inverse"
|
|
CONF_BLINK = "blink"
|
|
CONF_DHT_SENSORS = "dht_sensors"
|
|
CONF_DS18B20_SENSORS = "ds18b20_sensors"
|
|
|
|
STATE_LOW = "low"
|
|
STATE_HIGH = "high"
|
|
|
|
ZONES = [
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4",
|
|
"5",
|
|
"6",
|
|
"7",
|
|
"8",
|
|
"9",
|
|
"10",
|
|
"11",
|
|
"12",
|
|
"alarm1",
|
|
"out1",
|
|
"alarm2_out2",
|
|
"out",
|
|
]
|
|
|
|
# alarm panel pro only handles zones,
|
|
# alarm panel allows specifying pins via configuration.yaml
|
|
PIN_TO_ZONE = {"1": "1", "2": "2", "5": "3", "6": "4", "7": "5", "8": "out", "9": "6"}
|
|
ZONE_TO_PIN = {zone: pin for pin, zone in PIN_TO_ZONE.items()}
|
|
|
|
ENDPOINT_ROOT = "/api/konnected"
|
|
UPDATE_ENDPOINT = ENDPOINT_ROOT + r"/device/{device_id:[a-zA-Z0-9]+}"
|
|
SIGNAL_DS18B20_NEW = "konnected.ds18b20.new"
|
|
|
|
UNDO_UPDATE_LISTENER = "undo_update_listener"
|