39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
"""Consts used by Tradfri."""
|
|
from homeassistant.components.light import SUPPORT_BRIGHTNESS, SUPPORT_TRANSITION
|
|
from homeassistant.const import ( # noqa: F401 pylint: disable=unused-import
|
|
CONF_HOST,
|
|
Platform,
|
|
)
|
|
|
|
ATTR_AUTO = "Auto"
|
|
ATTR_DIMMER = "dimmer"
|
|
ATTR_HUE = "hue"
|
|
ATTR_SAT = "saturation"
|
|
ATTR_TRADFRI_GATEWAY = "Gateway"
|
|
ATTR_TRADFRI_GATEWAY_MODEL = "E1526"
|
|
ATTR_TRADFRI_MANUFACTURER = "IKEA of Sweden"
|
|
ATTR_TRANSITION_TIME = "transition_time"
|
|
ATTR_MODEL = "model"
|
|
CONF_ALLOW_TRADFRI_GROUPS = "allow_tradfri_groups"
|
|
CONF_IDENTITY = "identity"
|
|
CONF_IMPORT_GROUPS = "import_groups"
|
|
CONF_GATEWAY_ID = "gateway_id"
|
|
CONF_KEY = "key"
|
|
DEFAULT_ALLOW_TRADFRI_GROUPS = False
|
|
DOMAIN = "tradfri"
|
|
KEY_API = "tradfri_api"
|
|
DEVICES = "tradfri_devices"
|
|
GROUPS = "tradfri_groups"
|
|
SIGNAL_GW = "tradfri.gw_status"
|
|
KEY_SECURITY_CODE = "security_code"
|
|
SUPPORTED_GROUP_FEATURES = SUPPORT_BRIGHTNESS | SUPPORT_TRANSITION
|
|
SUPPORTED_LIGHT_FEATURES = SUPPORT_TRANSITION
|
|
PLATFORMS = [
|
|
Platform.COVER,
|
|
Platform.FAN,
|
|
Platform.LIGHT,
|
|
Platform.SENSOR,
|
|
Platform.SWITCH,
|
|
]
|
|
TIMEOUT_API = 30
|