579553a850
HACS-compatible custom component split out from the main LedGrab repo. Creates light, switch, sensor, number, and select entities for each configured LedGrab device.
23 lines
543 B
Python
23 lines
543 B
Python
"""Constants for the LedGrab Home Assistant integration."""
|
|
|
|
DOMAIN = "ledgrab"
|
|
|
|
# Configuration
|
|
CONF_SERVER_NAME = "server_name"
|
|
CONF_SERVER_URL = "server_url"
|
|
CONF_API_KEY = "api_key"
|
|
|
|
# Default values
|
|
DEFAULT_SCAN_INTERVAL = 3 # seconds
|
|
DEFAULT_TIMEOUT = 10 # seconds
|
|
WS_RECONNECT_DELAY = 5 # seconds
|
|
WS_MAX_RECONNECT_DELAY = 60 # seconds
|
|
|
|
# Target types
|
|
TARGET_TYPE_LED = "led"
|
|
TARGET_TYPE_HA_LIGHT = "ha_light"
|
|
|
|
# Data keys stored in hass.data[DOMAIN][entry_id]
|
|
DATA_COORDINATOR = "coordinator"
|
|
DATA_EVENT_LISTENER = "event_listener"
|