2018-03-30 03:15:40 +00:00
|
|
|
"""Constants for the Hue component."""
|
|
|
|
|
|
|
|
DOMAIN = "hue"
|
2020-01-31 22:47:40 +00:00
|
|
|
|
2021-11-16 19:59:17 +00:00
|
|
|
CONF_API_VERSION = "api_version"
|
2020-02-11 16:50:07 +00:00
|
|
|
|
2021-11-16 19:59:17 +00:00
|
|
|
CONF_SUBTYPE = "subtype"
|
2020-02-11 16:50:07 +00:00
|
|
|
|
2021-11-16 19:59:17 +00:00
|
|
|
ATTR_HUE_EVENT = "hue_event"
|
|
|
|
SERVICE_HUE_ACTIVATE_SCENE = "hue_activate_scene"
|
|
|
|
ATTR_GROUP_NAME = "group_name"
|
|
|
|
ATTR_SCENE_NAME = "scene_name"
|
|
|
|
ATTR_TRANSITION = "transition"
|
|
|
|
ATTR_DYNAMIC = "dynamic"
|
|
|
|
|
|
|
|
|
|
|
|
# V1 API SPECIFIC CONSTANTS ##################
|
2021-02-03 14:42:52 +00:00
|
|
|
|
2021-02-26 16:35:09 +00:00
|
|
|
GROUP_TYPE_LIGHT_GROUP = "LightGroup"
|
|
|
|
GROUP_TYPE_ROOM = "Room"
|
|
|
|
GROUP_TYPE_LUMINAIRE = "Luminaire"
|
|
|
|
GROUP_TYPE_LIGHT_SOURCE = "LightSource"
|
2021-11-16 19:59:17 +00:00
|
|
|
GROUP_TYPE_ZONE = "Zone"
|
|
|
|
GROUP_TYPE_ENTERTAINMENT = "Entertainment"
|
2021-04-13 16:31:23 +00:00
|
|
|
|
2021-11-16 19:59:17 +00:00
|
|
|
CONF_ALLOW_HUE_GROUPS = "allow_hue_groups"
|
|
|
|
DEFAULT_ALLOW_HUE_GROUPS = False
|
|
|
|
|
|
|
|
CONF_ALLOW_UNREACHABLE = "allow_unreachable"
|
|
|
|
DEFAULT_ALLOW_UNREACHABLE = False
|
|
|
|
|
|
|
|
# How long to wait to actually do the refresh after requesting it.
|
|
|
|
# We wait some time so if we control multiple lights, we batch requests.
|
|
|
|
REQUEST_REFRESH_DELAY = 0.3
|