2018-09-19 19:21:43 +00:00
|
|
|
"""Consts used by Tradfri."""
|
2019-12-01 05:23:39 +00:00
|
|
|
from homeassistant.components.light import SUPPORT_BRIGHTNESS, SUPPORT_TRANSITION
|
2021-12-04 13:10:01 +00:00
|
|
|
from homeassistant.const import ( # noqa: F401 pylint: disable=unused-import
|
|
|
|
CONF_HOST,
|
|
|
|
Platform,
|
|
|
|
)
|
2018-09-19 19:21:43 +00:00
|
|
|
|
2021-10-25 06:15:46 +00:00
|
|
|
ATTR_AUTO = "Auto"
|
2019-10-09 19:56:16 +00:00
|
|
|
ATTR_DIMMER = "dimmer"
|
|
|
|
ATTR_HUE = "hue"
|
|
|
|
ATTR_SAT = "saturation"
|
|
|
|
ATTR_TRADFRI_GATEWAY = "Gateway"
|
|
|
|
ATTR_TRADFRI_GATEWAY_MODEL = "E1526"
|
2019-10-21 19:42:17 +00:00
|
|
|
ATTR_TRADFRI_MANUFACTURER = "IKEA of Sweden"
|
2019-10-09 19:56:16 +00:00
|
|
|
ATTR_TRANSITION_TIME = "transition_time"
|
2020-04-09 17:37:55 +00:00
|
|
|
ATTR_MODEL = "model"
|
2019-10-09 19:56:16 +00:00
|
|
|
CONF_ALLOW_TRADFRI_GROUPS = "allow_tradfri_groups"
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_IDENTITY = "identity"
|
2019-10-09 19:56:16 +00:00
|
|
|
CONF_IMPORT_GROUPS = "import_groups"
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_GATEWAY_ID = "gateway_id"
|
2019-10-09 19:56:16 +00:00
|
|
|
CONF_KEY = "key"
|
|
|
|
DEFAULT_ALLOW_TRADFRI_GROUPS = False
|
|
|
|
DOMAIN = "tradfri"
|
|
|
|
KEY_API = "tradfri_api"
|
2020-09-05 21:02:32 +00:00
|
|
|
DEVICES = "tradfri_devices"
|
|
|
|
GROUPS = "tradfri_groups"
|
2021-11-08 17:41:25 +00:00
|
|
|
SIGNAL_GW = "tradfri.gw_status"
|
2019-10-09 19:56:16 +00:00
|
|
|
KEY_SECURITY_CODE = "security_code"
|
|
|
|
SUPPORTED_GROUP_FEATURES = SUPPORT_BRIGHTNESS | SUPPORT_TRANSITION
|
|
|
|
SUPPORTED_LIGHT_FEATURES = SUPPORT_TRANSITION
|
2021-12-04 13:10:01 +00:00
|
|
|
PLATFORMS = [
|
|
|
|
Platform.COVER,
|
|
|
|
Platform.FAN,
|
|
|
|
Platform.LIGHT,
|
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SWITCH,
|
|
|
|
]
|
2021-11-09 12:00:50 +00:00
|
|
|
TIMEOUT_API = 30
|