2018-04-18 14:27:44 +00:00
|
|
|
"""Constants for the deCONZ component."""
|
|
|
|
import logging
|
|
|
|
|
2020-02-01 19:02:57 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
2018-04-18 14:27:44 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "deconz"
|
2018-11-06 09:34:24 +00:00
|
|
|
|
2020-01-17 23:28:34 +00:00
|
|
|
CONF_BRIDGE_ID = "bridgeid"
|
|
|
|
CONF_GROUP_ID_BASE = "group_id_base"
|
2019-09-25 16:56:31 +00:00
|
|
|
|
2018-11-06 09:34:24 +00:00
|
|
|
DEFAULT_PORT = 80
|
2019-04-03 02:23:33 +00:00
|
|
|
DEFAULT_ALLOW_CLIP_SENSOR = False
|
2019-09-05 23:38:00 +00:00
|
|
|
DEFAULT_ALLOW_DECONZ_GROUPS = True
|
2018-05-29 14:09:53 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_ALLOW_CLIP_SENSOR = "allow_clip_sensor"
|
|
|
|
CONF_ALLOW_DECONZ_GROUPS = "allow_deconz_groups"
|
|
|
|
CONF_MASTER_GATEWAY = "master"
|
|
|
|
|
|
|
|
SUPPORTED_PLATFORMS = [
|
|
|
|
"binary_sensor",
|
|
|
|
"climate",
|
|
|
|
"cover",
|
|
|
|
"light",
|
|
|
|
"scene",
|
|
|
|
"sensor",
|
|
|
|
"switch",
|
|
|
|
]
|
|
|
|
|
2019-12-08 15:53:34 +00:00
|
|
|
NEW_GROUP = "groups"
|
|
|
|
NEW_LIGHT = "lights"
|
|
|
|
NEW_SCENE = "scenes"
|
|
|
|
NEW_SENSOR = "sensors"
|
2019-02-18 16:43:22 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_DARK = "dark"
|
|
|
|
ATTR_OFFSET = "offset"
|
|
|
|
ATTR_ON = "on"
|
|
|
|
ATTR_VALVE = "valve"
|
2018-08-01 09:03:08 +00:00
|
|
|
|
2018-10-20 13:13:23 +00:00
|
|
|
DAMPERS = ["Level controllable output"]
|
|
|
|
WINDOW_COVERS = ["Window covering device"]
|
|
|
|
COVER_TYPES = DAMPERS + WINDOW_COVERS
|
2018-09-21 17:59:20 +00:00
|
|
|
|
2020-02-01 16:08:49 +00:00
|
|
|
POWER_PLUGS = ["On/Off light", "On/Off plug-in unit", "Smart plug"]
|
2018-08-10 17:22:12 +00:00
|
|
|
SIRENS = ["Warning device"]
|
|
|
|
SWITCH_TYPES = POWER_PLUGS + SIRENS
|
2020-01-06 11:34:27 +00:00
|
|
|
|
|
|
|
CONF_GESTURE = "gesture"
|